equal
deleted
inserted
replaced
119 $('li.keyword-'+keyword).find('.curtain').show(); |
119 $('li.keyword-'+keyword).find('.curtain').show(); |
120 iconAction.addClass('circle'); |
120 iconAction.addClass('circle'); |
121 } |
121 } |
122 //map |
122 //map |
123 if($('#map').length){ |
123 if($('#map').length){ |
124 var map = L.map('map').setView([51.505, -0.09], 13); |
124 initmap() |
125 } |
125 } |
|
126 function initmap() { |
|
127 // set up the map |
|
128 map = new L.Map('map'); |
|
129 |
|
130 // create the tile layer with correct attribution |
|
131 var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; |
|
132 var osm = new L.TileLayer(osmUrl, {minZoom: 3, maxZoom: 20}); |
|
133 |
|
134 // start the map in South-East England |
|
135 map.setView(new L.LatLng(48.833, 2.333),4); |
|
136 map.addLayer(osm); |
|
137 |
|
138 // markers |
|
139 var marker1 = L.marker([48.833, 2.333]).addTo(map); |
|
140 marker1.bindPopup("Beaux-Arts de Paris"); |
|
141 var marker2 = L.marker([47.233,-1.583]).addTo(map); |
|
142 marker2.bindPopup("Beaux-Arts de Nantes"); |
|
143 } |
|
144 |
126 });//ready |
145 });//ready |