$(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.control.zoom({position: 'topright'})
+ .addTo(map);
+
+ $("#map").on("resized", function () {
+ map.invalidateSize();
});
if (OSM.home) {
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);
}
});
}