Questions tagged [google-map]

Google Maps is a desktop and mobile web mapping service application and technology provided by Google, offering satellite imagery, street maps, and Street View perspectives. Also supported are maps embedded on third-party websites via the Google Maps API, and a locator for urban businesses and other organizations in numerous countries around the world.

Filter by
Sorted by
Tagged with
0 votes
1 answer
267 views

How can i install and configure google map on E-commerce Website in Magento 2.4.5?

I have freshly installed magento 2.4.5 on windows, I'm creating Pizza store, now I have to add google map for checkout process and to track the address, can anyone help me out? It will mean a lot to ...
Sachin Bansode's user avatar
0 votes
1 answer
98 views

How to include google map url in custom checkout component js file in Magento 2?

I created a google map popup in checkout page. I want to load the google map script url. currently i am doing like this in my google-map-loader.js define([ ... 'https://maps.googleapis.com/maps/api/js?...
Mujahidh's user avatar
  • 2,791
0 votes
1 answer
561 views

cant load google maps in magento 2.4 nginx

I cant load google maps in magento 2.4. I am using nginx as webserver and running the project in http => port 80 when I add google maps script require([ "http://maps.googleapis.com/maps/...
lazy_coder's user avatar
0 votes
0 answers
234 views

Uncaught ReferenceError: google is not defined magento 2.3.2 in production mode

I am working with magento2.3.2.I am adding Google Maps to the template file. And it is adding successfully in the development environment but facing issues in the production server. I have attached a ...
Masumi's user avatar
  • 1
1 vote
2 answers
697 views

Magento 2 How To add Google Map in Ui Form

I'm facing following issue while adding google map with an api key, This site overrides Array.from() with an implementation that doesn't support iterables, which could cause Google Maps JavaScript ...
Mevada Ketan's user avatar
0 votes
0 answers
273 views

Region is not Updating while Setting Country Name Programmatically. Magento 2

I've created Simple Form where I've set default country Name n Region like <td> <label>Country</label> <div class="field ...
Asad Khan's user avatar
  • 1,486
0 votes
1 answer
217 views

Magento 2: How to work with larger collection of data that the site doesn't load too much?

I'm using this store locator extension in my 2.3.1 local. I have 1000 stores in the backend imported by using CSV. On the frontend, while I search that store address it should find the stores from ...
Mohit Rane's user avatar
  • 1,935
0 votes
0 answers
100 views

How to show the distance using geolocation?

I have an address (with lan,lon) and want to show the distance from current location to that address using geolocation. How can i achieve that? Can anyone please guide me?
Siva's user avatar
  • 1,120
0 votes
1 answer
781 views

How to use Distance Matrix Service in Magento 2?

We have built a rental based website using Magento 2.3. When we create a rental product via admin, we can put the pickup address for that product. Now, we want to show a approximate distance from the ...
Siva's user avatar
  • 1,120
0 votes
1 answer
128 views

How to show distance from user location to destination?

We have a pickup address and google API key. We want to show the approximate location from the user to the destination (pickup address). How can I do that? Looking for help!
Siva's user avatar
  • 1,120
0 votes
1 answer
465 views

Magento 2 : How to focus google map on Tokyo and Yokohama by default

I want focus google map on Tokyo and Yokohama by default. My map like this I want my map like this by default Please help me ! Thanks all
TN98's user avatar
  • 931
0 votes
1 answer
538 views

How can I get the locale inside a requirejs-config file?

I am trying to add a googlemaps path to my requirejs-config file, but I need to put the locale on the end of the string. Here is what my requirejs-config file looks like. I need a way to get the local ...
Metropolis's user avatar
0 votes
0 answers
383 views

how to display Google map on magento 2 admin side

actually, I want to use google map to get latitude and longitude of a place using google map so I need to use google map on backend using UI component form thanks.
Adarsh Shukla's user avatar
0 votes
3 answers
2k views

How to show embedded google map in magento 2 in phtml file

I am trying to add google map in the frontend. I added embedded google map in phtml. here is my code <?php $contacts_config = $this->getConfig('porto_settings/contacts'); $_enable = $...
Bhakti Thakkar's user avatar
0 votes
1 answer
113 views

Store locator not working after updating to https

I updated my website to https yesterday, but today I saw that my Storelocator isn't working anymore. It tells me that the 'store list undefined'. How to fix it?
Maria's user avatar
  • 1
1 vote
2 answers
2k views

Magento 2 include google maps js only on contact page

I have a custom theme based on Luma, I'm trying to include google maps script only on contact page but it's not working. Here is my contact_index_index.xml file under my-theme/Magento_Contact/layout/...
Sylaratty's user avatar
  • 111
1 vote
1 answer
823 views

Adding a map to contact form

How can I add a custom google maps on the custom contact page? I'm using Magento 2.1.9 and I can't find where to do this on the admin panel so I don't know which code should I edit.
Núria's user avatar
  • 133
0 votes
1 answer
501 views

Magento 2.1.10 - Front controller reached 100 router match iterations caused by IWD StoreLocator

I recently updated my Magento version from 2.1.1 to 2.1.10 and the module mentioned in the title is causing that exception. module version is 2.0.6 I contacted their support, and was told it is a ...
sissy's user avatar
  • 524
1 vote
1 answer
374 views

Include google maps libraries through default_head_blocks.xml

When trying to implement the google maps API script in default_head_blocks.xml <script src="https://maps.googleapis.com/maps/api/js?key=mykey&libraries=places" src_type="url"/> it doesn't ...
karthi keyan's user avatar
1 vote
1 answer
1k views

Magento2 : Google map API json file decode using curl

<h1>hello this is phtml file</h1> <?php $address=$_GET['location'];//manhattan $address = str_replace(" ", "+", $address); $url="https://maps.google.com/maps/api/geocode/json?address=$...
sourabh yadav's user avatar
1 vote
0 answers
424 views

how to add google map api in magento2.1

i have google map api i just want get these longitude and latitude my phtml code is <?php $address=$_GET['location'];//location=Manhattan $address = str_replace(" ", "+", $address); $url="https:/...
sourabh yadav's user avatar
0 votes
2 answers
2k views

Magento 1.9 does not render Google Maps Api in template

I am trying to render Google Map on my custom page. I have template that renders smth but it does not render map. But I've discovered strange thing (for me) if echo smth in controller between $this-...
Koiten's user avatar
  • 1
0 votes
2 answers
87 views

Magento contact form disappears

We are facing an usual issue, when you go to https://gullybaba.magemojo.io/contacts/ and perfrom either of the below mention tasks click on any blank area of the page(not on input fields) http://...
Mek's user avatar
  • 91
1 vote
1 answer
1k views

how to add google map as a ui component in magento 2.1

I need to display a coordinated field, coming from the database, currently am displaying it as an input like this: I need to display it as the map like this: I googled a LOT and lot of answers on ...
Zorox's user avatar
  • 206
2 votes
0 answers
249 views

Magento 2.1- How to Integrate Google Maps API in Ui Component Form

I have been looking around to find any good solution, that could help me to integrate Google Map to my admin form, my goal was to get the latitude, longitude and zoom from the drag able marker on the ...
Verdu's user avatar
  • 1,720
2 votes
1 answer
1k views

Filter near by location product collection -magento2

I have thousands of property in my store. I'm trying to write automated related properties. Each property has latitude and longitude. When customer click anyone property, we need to suggest five top ...
Bilal Usean's user avatar
  • 9,947
1 vote
3 answers
5k views

How can i get exact google map latitude and longitude in php? [closed]

How can i get exact Latitude and longitude of user in php, without using IP, Any hope with google api?
user48764's user avatar
1 vote
2 answers
617 views

Oops! Something went wrong on location map at contact us page

I am working on magento-1.9 version. When I am going to contact us page, I got the following error which is Oops! Something went wrong. Please help me on this. Please let me know the requirements ...
Teja Bhagavan Kollepara's user avatar
0 votes
1 answer
454 views

how to set external js dependency for internal js in magento2

In default_head_blocks.xml I've loaded following jquery. <link src="//maps.googleapis.com/maps/api/js"/> <link src="js/main.js" order="101"/> Now my situation I want map js loaded to be ...
Kaushal Suthar's user avatar
1 vote
1 answer
1k views

Why my google map is not showing at contact us page? [closed]

My google map is not displaying and due to script problem. How to resolve this? my script code is as follows function initialize() { var pos = new google.maps.LatLng(, ); var ...
user avatar
0 votes
2 answers
1k views

How To Add A Map For Every Product View Page

I have a coffee store based shop in magento . Now i want to show the map for each coffee shop in the product view every store has its different location for google map. any help would be very ...
Tayyab Gulsher Vohra 's user avatar
4 votes
1 answer
2k views

Embed Google Map

Hi I am trying to embed a google map into a CMS page. I get the string from google and paste it using the CMS editor. When i go the the actual page i only see text and no embedded map.
F Fabbro's user avatar
2 votes
1 answer
75 views

Magento Store locator address not visible on iPhones - Why? [closed]

I am using Google store locator for my extension but address not visible when click the locator icons on iPhones, i don't know what caused this issue.. It is working fine when i tried with ...
Priya Ponnusamy's user avatar
1 vote
1 answer
578 views

Load Google Maps External Javascript Before Skin Javascript

I'm trying to add the Google Maps Javascript API to my Magento module. The problem I'm having is that the core/text block that I am including, that contains the external Javascript inclusion tag, ...
Wildcard27's user avatar
4 votes
1 answer
4k views

Remove render-blocking JavaScript for google maps

The PageSpeed Insights shows me that I to remove the render-blocking for my google maps js. It is added the in cms content and this is the code: <script type="text/javascript" src="https://maps....
Attila Naghi's user avatar
  • 3,963
0 votes
1 answer
6k views

add google map under contact us page in magento

How to add google map under contact us page after submit button this is the code for contact us page -form.phtml = > http://pastebin.com/rSYMpu5X
Baby in Magento's user avatar
1 vote
1 answer
892 views

Map in product detail page

My store sell products of other stores and I would like to know how can i set a map, from Google Maps for example, in product detail page like the image below? Thanks.
Michel's user avatar
  • 11