Current behavior:
When using options.preferences.gestureBounds, if the difference between the most extreme coordinates of the given points is greater than 180, the viewport centers on the shortest path between these extremes. In addition to that, points added to the options.preferences.gestureBounds will be ignored if they are not an extreme (cf. extend method of LatLngBounds object here)
Example :
const max = new LatLng(-10, -82);
const max = new LatLng(70, 100);
const middle = new LatLng(30, 9);
return GoogleMaps.create(element, {
preferences: {
gestureBounds: [max, min, middle]
}
});
Expected behavior:
There should be a way to bypass the "normalization" of these extremes and define each corner of the viewport boundary specifically.
Or is there another way to limit the viewport scroll by defining points that should always be visible (like defining a center) ?
Example :
const max = new LatLng(-10, -82);
const max = new LatLng(70, 100);
return GoogleMaps.create(element, {
preferences: {
gestureBounds: {southwest: min, northeast: max}
}
});
I'm submitting a ... (check one with "x")
OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior: When using
options.preferences.gestureBounds
, if the difference between the most extreme coordinates of the given points is greater than 180, the viewport centers on the shortest path between these extremes. In addition to that, points added to theoptions.preferences.gestureBounds
will be ignored if they are not an extreme (cf. extend method of LatLngBounds object here)Example :
Expected behavior: There should be a way to bypass the "normalization" of these extremes and define each corner of the viewport boundary specifically. Or is there another way to limit the viewport scroll by defining points that should always be visible (like defining a center) ?
Example :