Using Google Maps and other layers
Getting other layers to play nicely with these third party layers involve three things, two of which we've already done:
Set up the correct map projection properties.
Make sure
sphericalMercator
is set totrue
on the third party map layer.Ensure all raster layers (any non-Vector or Image layer), such as WMS, are in the map's projection. In this case, we'll need to make sure we ask our WMS server for map tiles in the
EPSG:900913
projection.
Using what we learned so far, let's make a mashup. We'll use a Google Maps layer as the base layer, and WMS and Vector layers as overlay layers.