How to place a div on an openlayers map with specific lat/long bounds?

This can be easily achieved in google maps with an OverlayView, like this:

https://developers.google.com/maps/documentation/javascript/customoverlays

I want to achieve the same thing in OpenLayers, simply place a div at specific coordinates, and the div scales to fit the specified lat/long bounds.

Can anyone point me in the right direction to achieve the same thing with openlayers?



Read more here: https://stackoverflow.com/questions/68462368/how-to-place-a-div-on-an-openlayers-map-with-specific-lat-long-bounds

Content Attribution

This content was originally published by danthony at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: