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.

I use OpenLayers to show Map , when im creating the map, i want to show map image with an ImageLayer and VectorLayers, the image is non Geo-referenced.

The use case: i receiving a map image url from the server and entities layers , the entities positions on the layers represented by pixels on the image that i'm holding.

from the image url i'm creating a ImageLayer and then creating VectorLayer and want to put the features on the VectorLayer with the pixels positions.

I tried to create the map in EPSG:4326 projection and then to convert the pixels point with getLonLatFromPixel(px,py), this is not helping because the pixels that the method receives are refers to the map container pixels and not to the image pixels.

there is a way to put features on the map by using the pixels (x,y) of the image itself ?

Thanks.

share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.