Hi! :)

In an OpenLayers 3 map, when I resize the window, the fixed point of the
map is its center.

By fixed point, I mean the point that will always be visible, even if you
shrink the map to 50x50 pixels.

In the image url below, the fixed point (blue dot) is somewhere in the
Iberian Peninsula.

IMAGE 1 <https://i.stack.imgur.com/GPmtI.png>

Now, if I resize (in this case: shrink) the window (from whatever side of
corner), the map will resize, too. The center of the map (blue dot) is
fixed and is exactly at the same place, relative to the window.

IMAGE 2 <https://i.stack.imgur.com/Hz3bc.png>

What I want is to change that fixed point to the top-left corner of the map
(red dot).

IMAGE 3 <https://i.stack.imgur.com/DG2Oq.png>

I want that point to be always visible, even if I resize the map to 20x20
pixels.

IMAGE 4 <https://i.stack.imgur.com/gJGQ8.png>

In this case, resizing the map would sort of crop it on the right and
bottom sides.

I posted this on StackOverflow
<https://stackoverflow.com/questions/45524456/changing-fixed-point-when-resizing-map>,
in case you prefer to read it there.

How could I achieve this?

Thanks!

João Rodrigues
_______________________________________________
Users mailing list
us...@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to