Skip to content

Loading…

Zooming out when map is constrained with coordinates #174

Open
cyrilchandelier opened this Issue · 0 comments

1 participant

@cyrilchandelier

RMMap behavior when constrained by the setConstraintsSW:NE: method is not really good. When using a small map, it's impossible to zoom out if you are not near the center of the constrained map. This message: "Zooming will move map out of bounds: no zoom" appears too often.

canZoom= zoomDelta > 0 || !(zRect.origin.northing < SWconstraint.northing ||
zRect.origin.northing+zRect.size.height> NEconstraint.northing ||
zRect.origin.easting < SWconstraint.easting ||
zRect.origin.easting+zRect.size.width > NEconstraint.easting);

This condition use the actual center of the map. Shouldn't it be recentering the map while zooming out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.