Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var officeIcon = L.icon({
- iconUrl: 'iconoffice.png',
- iconSize: [32,32], // size of the icon
- iconAnchor: [20,32], // point of the icon which will correspond to marker's location
- popupAnchor: [0,-18], // point from which the popup should open relative to the iconAnchor
- shadowUrl: 'bikeiconshadow.png',
- shadowSize: [40,32], // size of the shadow
- shadowAnchor: [4,62] // the same for the shadow
- });
- function cargarMarkers()
- {
- paradas_ant = paradas.slice();
- for(var i = 0; i < paradas.length;i++)
- {
- parada = paradas[i];
- var lat = parseFloat(parada[1]);
- var lng = parseFloat(parada[2]);
- if (parada[4] == -1)
- {
- desc = "<b><centre>" + parada[0] + "</centre></b>" + "<br>" +
- "Calle Alzáibar 1321" + "<br>" +
- "Lunes a Viernes: 9:00 a 18:00 hs. Sábados: 10:00 a 14:00 hs";
- marker = L.marker([lat,lng], {icon: officeIcon, title: 'Oficina central'}).addTo(mapa).bindPopup(desc);
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement