-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BC: extract loader to extra js file (googleMapApiLoader.js), Add supp…
…ort for custom marker callbacks
- Loading branch information
Showing
2 changed files
with
71 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Created by petr on 26.3.16. | ||
*/ | ||
|
||
|
||
var map; | ||
Array.prototype.forEach.call(document.getElementsByClassName('googleMapAPI'), function(el, i){ | ||
map = new GoogleMap(el); | ||
map.doProportions(); | ||
|
||
if (typeof google === "undefined") { | ||
loadScript(); | ||
} else { | ||
map.initialize(); | ||
} | ||
}); |