Newer
Older
/* $Id: markerloader_static.js,v 1.3 2009/02/11 19:30:22 bdragon Exp $ */
* GMap Marker Loader
* Static markers.
* This is a simple marker loader to read markers from the map settings array.
* Commonly used with macros.
*/
var obj = this;
var marker, i;
if (obj.vars.markers) {
// Inject markers as soon as the icon loader is ready.
obj.bind('iconsready', function () {
for (i = 0; i < obj.vars.markers.length; i++) {
// Pass around the object, bindings can change it if necessary.