return false;
}
- var map = createMap("small_map");
+ var map = createMap("small_map", {
+ layerControl: false,
+ panZoomControl: false,
+ attributionControl: false
+ });
var params = $("#small_map").data();
if (params.type == "changeset") {
$("#object_edit").show();
var centre = extent.getCenter();
- updatelinks(centre.lng, centre.lat, 16, null, extent.left, extent.bottom, extent.right, extent.top, object);
+ updatelinks(centre.lng,
+ centre.lat,
+ 16, null,
+ extent.getWestLng(),
+ extent.getSouthLat(),
+ extent.getEastLng(),
+ extent.getNorthLat(),
+ object);
} else {
$("#small_map").hide();
}