imgElektra.image = "http://www.baimelek.es/public/frontend/img/ico_elektra.gif"; // imgElektra.shadow = "http://www.google.es/mapfiles/shadow50.png"; imgElektra.iconSize = new GSize(22, 22); // imgElektra.shadowSize = new GSize(37, 34); imgElektra.iconAnchor = new GPoint(1, 5); imgElektra.infoWindowAnchor = new GPoint(5, 1); var map32 = new GMap2(document.getElementById("map32")); showAddress(map32, "41.77775270021193,-2.4839508533477783",15,imgElektra,32); var imgElektra = new GIcon();imgElektra.image = "http://www.baimelek.es/public/frontend/img/ico_elektra.gif"; // imgElektra.shadow = "http://www.google.es/mapfiles/shadow50.png"; imgElektra.iconSize = new GSize(22, 22); // imgElektra.shadowSize = new GSize(37, 34); imgElektra.iconAnchor = new GPoint(1, 5); imgElektra.infoWindowAnchor = new GPoint(5, 1); var map56 = new GMap2(document.getElementById("map56")); showAddress(map56, "41.757592,-2.471112",15,imgElektra,56); } } function showAddress(map, address, zoomlevel, icon,codDelegacion) { var geocoder = new GClientGeocoder(); geocoder.getLatLng( address, function(point) { if (!point) { document.getElementById("map"+codDelegacion).innerHTML="
