shramov / leaflet-plugins

Plugins for Leaflet library
http://psha.org.ru/b/leaflet-plugins.html
MIT License
722 stars 289 forks source link

With correct Google Maps loading bug when the app is offline and then go online with the Ionic platform #245

Closed ivanssa closed 7 years ago

ivanssa commented 8 years ago

The vast majority of Google Maps integration implementations with ionic start with the inclusion of the script called <script src = 'https://maps.googleapis.com/maps/api/js?key=API_KEY&sensor=true'> < / script> in the index.html

The problem is that I am having a big problem when someone opens your application while offline, then wander cellular or Wi-Fi range and is online again? Your maps will stop working even if they are now online, since the Maps API could not be loaded when the application has been opened!

The right thing to do is load the Google Maps API when you are online, not using a Githubissues.

  • Githubissues is a development platform for aggregating issues.