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

You can use setLayerIndex and raiseLayer.

Here are some good examples.

  • Great, thank you. Do you know some online source where I can find world roads layer? – againstflow Aug 22 '12 at 21:00
  • 1
    You can find this kind of data here: diva-gis.org/gdata – drnextgis Aug 23 '12 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 Aug 23 '12 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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