diff --git a/composer.json b/composer.json index 5c2dfcf..61b6d08 100644 --- a/composer.json +++ b/composer.json @@ -2,10 +2,10 @@ "name": "mageplaza/module-google-maps", "description": "Magento 2 Google Maps Extension", "require": { - "mageplaza/module-core": "^1.4.5" + "mageplaza/module-core": "^1.5.4" }, "type": "magento2-module", - "version": "4.0.2", + "version": "4.0.3", "license": "proprietary", "authors": [ { diff --git a/etc/config.xml b/etc/config.xml index 6bd2eba..0e86311 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -1,43 +1,43 @@ - - - - - - - 1 - - - 1 - 1 - 1 - - - roadmap - default - 1 - 0 - 20 - - - - + + + + + + + 1 + + + 1 + 1 + top + + + roadmap + default + 1 + 0 + 20 + + + + diff --git a/view/frontend/templates/map.phtml b/view/frontend/templates/map.phtml index 080ca53..4890dfe 100644 --- a/view/frontend/templates/map.phtml +++ b/view/frontend/templates/map.phtml @@ -52,10 +52,17 @@ $position = $block->getPosition(); }; var map = new google.maps.Map(document.getElementById("mpgooglemaps_map_getNameInLayout() ?>"), mapOptions); + var icon = { + url: mapMarkerIcon, + scaledSize: new google.maps.Size(40, 40), + origin: new google.maps.Point(0,0), + anchor: new google.maps.Point(0, 0) + }; + var marker = new google.maps.Marker({ draggable: !!(parseInt(isDraggable)), position: mapLatLng, - icon: mapMarkerIcon, + icon: icon, animation: google.maps.Animation.DROP }); marker.setMap(map);