Load the map manually | Documentation

At times, it is useful to load the map manually, instead of allowing the map to load itself after the page has loaded. For example, your page may contain other scripts that are manipulating the webpage at the same time the map is trying to load. This can cause conflicts, particularly if the map is in responsive mode.

To load the map manually:

  1. Edit the mapdata.js file so that main_settings.auto_load='no';. This prevents the map from loading automatically.

  2. Wait until the webpage (DOM) has loaded. This can be done with jQuery.

  3. Load the map with simplemaps_worldmap.load();

© Simplemaps.com 2010-2017 | Home | License | Privacy Policy | Releases | Testimonials | Resources | Documentation
Formerly FlashUSAmap.com and Flashworldmap.com