feature/google-maps-in-mapeditor-added #33

Merged
bence merged 9 commits from feature/google-maps-in-mapeditor-added into develop 2021-05-02 13:38:17 +02:00
2 changed files with 16 additions and 23 deletions
Showing only changes of commit 8b9345eb36 - Show all commits

View File

@ -12,11 +12,6 @@
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: #ffffff;
}
#mapSelection img svg {
fill: #28a745;
}
/* modify the cursor for the Leaflet map */

View File

@ -117,7 +117,7 @@
MapEditor.resetSelected();
MapEditor.selectedMarker = marker;
MapEditor.map.invalidateSize(true);
MapEditor.map.resize();
MapEditor.map.panTo(marker.getLatLng());
MapEditor.panorama.setVisible(false);
@ -219,7 +219,7 @@
MapEditor.resetSelected(del);
MapEditor.selectedMarker = null;
MapEditor.map.invalidateSize(true);
MapEditor.map.resize();
},
deletePlace: function () {
@ -455,8 +455,8 @@
LMapWrapper.map.panTo(latLng);
},
invalidateSize: function (invalid) {
LMapWrapper.map.invalidateSize(invalid);
resize: function () {
LMapWrapper.map.invalidateSize(true);
},
changeMarkerIcon: function (marker, icon) {
@ -595,10 +595,8 @@
GMapWrapper.map.panTo(latLng);
},
invalidateSize: function (invalid) {
if (invalid) {
resize: function () {
google.maps.event.trigger(GMapWrapper.map, 'resize');
}
},
changeMarkerIcon: function (marker, icon) {