Skip to content Skip to sidebar Skip to footer

Googlemaps Api3, Demogallery Example "Custom Small Navigation Control"

This may not be the best place for this question but here goes: I'm a beginner in googlemaps and javascript and found this example for something I'm working on. http://search.misso

Solution 1:

It's appending the control to the global variable(or namespace?) 'window', so that you can instantiate it using:

 var ZoomPanControl = new missouristate.web.ZoomPanControl(map);

The Google Maps API loader does the same thing, namely:

window.google = window.google || {};
google.maps = google.maps || {};

Post a Comment for "Googlemaps Api3, Demogallery Example "Custom Small Navigation Control""