I need to put image which should be in middle top of openlayers 3 map. So, it should be defined with map canvas and pixels. Is that possible to do? This is my code:

 var arrow = new ol.layer.Image({
        source: new ol.source.ImageStatic({
            imageExtent: bounds,
            url: imageUrl,
            imageSize: size


1 Answer 1


I figured it out, solution would be to get bounds coords from pixels:


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.