2

I want to put roads layer (from any source, please recommend some..) on top of my KML polygons and base layer:

baseLayer = new OpenLayers.Layer.WMS("OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers:"basic"});
            map.addLayer(baseLayer);

Is that possible?

1

1 Answer 1

1

You can use setLayerIndex and raiseLayer.

Here are some good examples.

3
  • Great, thank you. Do you know some online source where I can find world roads layer? Commented Aug 22, 2012 at 21:00
  • 1
    You can find this kind of data here: diva-gis.org/gdata
    – drnextgis
    Commented Aug 23, 2012 at 2:07
  • @againstflow Not really, I use the default openstreetmap or google maps layer. the link drnextgis posted looks like it might help.
    – CaptDragon
    Commented Aug 23, 2012 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.