Author: kmorin Date: 2013-07-04 18:11:34 +0200 (Thu, 04 Jul 2013) New Revision: 684 Url: http://nuiton.org/projects/sandbox/repository/revisions/684 Log: use a marker instead of a circle Modified: cartography/trunk/leaflet/src/main/webapp/WEB-INF/city.jsp Modified: cartography/trunk/leaflet/src/main/webapp/WEB-INF/city.jsp =================================================================== --- cartography/trunk/leaflet/src/main/webapp/WEB-INF/city.jsp 2013-07-04 14:46:39 UTC (rev 683) +++ cartography/trunk/leaflet/src/main/webapp/WEB-INF/city.jsp 2013-07-04 16:11:34 UTC (rev 684) @@ -69,11 +69,8 @@ map.fitBounds(bounds); - L.circle([ <%= city.getLatitude() %>, <%= city.getLongitude() %> ], 1000, { - color: 'red', - fillColor: '#f03', - fillOpacity: 0.5 - + L.marker([ <%= city.getLatitude() %>, <%= city.getLongitude() %> ], { + title: "<%= city.getName() %>" }).addTo(map).bindPopup("<%= city.getName() %> (<%= city.getPostCode() %>)").openPopup(); </script>
participants (1)
-
kmorin@users.nuiton.org