$(document).ready(function () {
- var map = createMap("map", {
- zoomControl: true,
- panZoomControl: false
- });
+ var map = L.map("map", {
+ attributionControl: false,
+ zoomControl: false
+ }).addLayer(new L.OSM.Mapnik());
+
+ L.OSM.zoom()
+ .addTo(map);
if (OSM.home) {
map.setView([OSM.home.lat, OSM.home.lon], 12);
var user = $(this).data('user');
if (user.lon && user.lat) {
L.marker([user.lat, user.lon], {icon: getUserIcon(user.icon)}).addTo(map)
- .bindPopup(user.description, {offset: L.point(-1, -20)});
+ .bindPopup(user.description);
}
});
}