angularjs - ngMap javascript maps v3 : Prevent map from panning outside world edges -
my problem pretty simple. how avoid user panning outside world edges (both east , west, north , south).
in android, happens automatically. in javascript, able pan outisde world edge. east / west, shows repetitive map. north / south, shows grey area.
reproducing problem
https://developers.google.com/maps/documentation/javascript/adding-a-google-map
on these sites, if zoom out example maps maximum , try panning beyond eadge, displays grey area.
what want
https://maps.google.com/ here cannot pan out beyond edge
what have read
i have tried searching through number of questions :
can prevent panning leaflet map out of world's edge? : not using leaflet. don't know is.
how limit panning in google maps api v3? : feel problem should have simpler solution.
please help.
edit please note looking ngmap related solution
Comments
Post a Comment