removed unused css declarations; renamed invalidateSize to resize
This commit is contained in:
parent
2799b19b14
commit
aee146ba62
@ -12,11 +12,6 @@
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
vertical-align: -0.15em;
|
vertical-align: -0.15em;
|
||||||
fill: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mapSelection img svg {
|
|
||||||
fill: #28a745;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* modify the cursor for the Leaflet map */
|
/* modify the cursor for the Leaflet map */
|
||||||
|
@ -117,7 +117,7 @@
|
|||||||
MapEditor.resetSelected();
|
MapEditor.resetSelected();
|
||||||
MapEditor.selectedMarker = marker;
|
MapEditor.selectedMarker = marker;
|
||||||
|
|
||||||
MapEditor.map.invalidateSize(true);
|
MapEditor.map.resize();
|
||||||
MapEditor.map.panTo(marker.getLatLng());
|
MapEditor.map.panTo(marker.getLatLng());
|
||||||
|
|
||||||
MapEditor.panorama.setVisible(false);
|
MapEditor.panorama.setVisible(false);
|
||||||
@ -219,7 +219,7 @@
|
|||||||
MapEditor.resetSelected(del);
|
MapEditor.resetSelected(del);
|
||||||
MapEditor.selectedMarker = null;
|
MapEditor.selectedMarker = null;
|
||||||
|
|
||||||
MapEditor.map.invalidateSize(true);
|
MapEditor.map.resize();
|
||||||
},
|
},
|
||||||
|
|
||||||
deletePlace: function () {
|
deletePlace: function () {
|
||||||
@ -455,8 +455,8 @@
|
|||||||
LMapWrapper.map.panTo(latLng);
|
LMapWrapper.map.panTo(latLng);
|
||||||
},
|
},
|
||||||
|
|
||||||
invalidateSize: function (invalid) {
|
resize: function () {
|
||||||
LMapWrapper.map.invalidateSize(invalid);
|
LMapWrapper.map.invalidateSize(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
changeMarkerIcon: function (marker, icon) {
|
changeMarkerIcon: function (marker, icon) {
|
||||||
@ -595,10 +595,8 @@
|
|||||||
GMapWrapper.map.panTo(latLng);
|
GMapWrapper.map.panTo(latLng);
|
||||||
},
|
},
|
||||||
|
|
||||||
invalidateSize: function (invalid) {
|
resize: function () {
|
||||||
if (invalid) {
|
|
||||||
google.maps.event.trigger(GMapWrapper.map, 'resize');
|
google.maps.event.trigger(GMapWrapper.map, 'resize');
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
changeMarkerIcon: function (marker, icon) {
|
changeMarkerIcon: function (marker, icon) {
|
||||||
|
Loading…
Reference in New Issue
Block a user