I am currently stuck with google maps v3. I am trying to add borders manually this way, but this will not work !?
map.fitBounds((53.399999, 9.73215099999993), (53.717145, 10.123491999999942));
fitBounds expects an object of type LatLngBounds , which, in turn, initializes two LatLng objects.
fitBounds
LatLngBounds
LatLng
This should work:
sw = new LatLng(53.399999, 9.73215099999993); ne = new LatLng(53.717145, 10.123491999999942); bounds = new LatLngBounds(sw, ne) map.fitBounds(bounds);
Link:
fitBounds()
Source: https://habr.com/ru/post/1205030/More articles:google maps V3 fitBounds inaccurate - google-mapsHow to use ActiveJob with Rails 4.1? - ruby-on-railsCannot get the latest version of NPM - node.jsNot enough memory with matrix transposition only - databaseGoogle Maps API v3 - fitBounds only centers one marker - javascriptgoogle maps fitBounds () broken or ..? - google-mapshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1205032/trying-to-get-google-maps-fitbounds-to-work&usg=ALkJrhi57-_nmMNE2fXNtOmpu9ZljOYrMQGoogle Maps V3 is suitable for visible markers - google-maps-api-3Google Maps V3 API - fitBounds randomly works, but sometimes ignores mid-ocean boundaries and loads - jsonFacing the new iOS positioning feature - iosAll Articles