Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

How to set the Latitude and Longitude range that focuses on a specific region in Mercator Projection when the layer loads in OpenLayers API ? Is there any way to put image over the layer?

share|improve this question
add comment

1 Answer 1

You want to overlay a image(raster) over the vector layer. This will hide the vector data because of the layer order preference used in OL

you can add images using OpenLayers.Layer.Image

var imgLayer = new OpenLayers.Layer.Image("img",http://myserver.com/images/img.png"); map.addLayers([imgLayer]);

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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