Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [google-map]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Salesforce Field Service google map alternative

Google Maps does not work in China hence to use field service app in china what alternatives available in china ? like Bing , Baidu.?
user avatar
1 vote
0 answers
30 views

Get current location details from reverse Geocoding

I have succeeded in getting the Latitude and longitude of my current location. Then I need to use the lat and long to get the physical address of that particular location. later retrieve the physical ...
user avatar
  • 9
0 votes
0 answers
26 views

Web-to-lead Recaptcha Enterprise support

Does Salesforce Web-to-lead support Google ReCaptcha Enterprise edition? I have done some research and found very little. I know that v2 works, but have not been able to get Enterprise to work. Is ...
user avatar
1 vote
1 answer
127 views

lightning-map Satellite default

I have LWC component lightning-map. How to make the default satellite view? I did not find such an option in the documentation and I can't change it through the code because it's an iframe. By default,...
user avatar
0 votes
1 answer
59 views

Can I customize "Maps and Location Services (powered by Google)" locale when searching for an address?

Below you'll see the result of auto-complete operation by using the Google Location Service: After typing "mokotowska 1" I got a correct result, choosing which resulted in filling all the ...
user avatar
1 vote
0 answers
75 views

How to localize the country that will show when searching address using show-address-lookup on LWC?

I have a lightning-input-address element on my LWC and the show-lookup-address is set to true. How would I localize the address/ country that will be shown on the dropdown? Currently the lookup search ...
user avatar
  • 11
1 vote
0 answers
353 views

LWC Input Address not populating Province [closed]

I'm trying to implement a standard lwc input address in a custom LWC component. https://developer.salesforce.com/docs/component-library/bundle/lightning-input-address/example. When I search an Italian ...
user avatar
0 votes
1 answer
529 views

Get latitude and longitude from a zip code without using Google API?

Is there a method to obtain the latitude and longitude from a zip code input without requiring a Google API key? I tried to use this MapAnything enpoint method but it didn't work: https://help....
user avatar
  • 35
0 votes
2 answers
622 views

Named Credentials - Google API Key

As google required to pass API key in the URL, I am trying to use Named Credentials, however, I am not how to figure out how to pass the key in the URL using a secure way. Named Credentails: I tried ...
user avatar
  • 1,393
0 votes
1 answer
254 views

I have trouble creating Map location hyper link using geolocation fields

We have a requirement to create hyperlink which will take the user to the google maps page of the address. I followed the salesforce standard solution on creating the link. as per the below link https:...
user avatar
1 vote
1 answer
2k views

Using Google Maps API with Lightning Web Components to retrieve Latitude and Longitude - CORS issue

I need to get latitude and longitude results from a text input that takes an address or zipcode. I am trying to do this with Lightning Web Components either using a LWC input with loadScript or ...
user avatar
  • 66
0 votes
1 answer
69 views

Uncaught Action when setting mapMarkers for Aura Component Map

Please note this question is about the Aura Component Map not about a collection of key/value pairs. Specifically, I'm getting an error when trying to set the required mapMarkers attribute on an Aura ...
user avatar
  • 11
1 vote
0 answers
721 views

Lightning-map select marker

I have a lightning-map component in my LWC component. I hide the list of markers as I do not like what the component has and provide my own. If user clicks on a marker in the map, I can handle and ...
user avatar
  • 1,576
1 vote
0 answers
505 views

CORS Policy Error with Third Party Javascript Library

I'm trying to build my own Google Maps LWC. I understand and am aware that there is a native Lightning Map component, but I am wishing to build my own, and utilizing my own billing independent of ...
user avatar
  • 213
0 votes
1 answer
355 views

Lightning-map is not getting updated as I am updating the map-marker through JS in LWC

On a click of a button I am setting the latitude and longitude in the map-marker but lightning-map is updating/refreshing. Here is the code: HTML: <template> <lightning-button label='Click' ...
user avatar
3 votes
1 answer
2k views

How to use Google API related javascript inside an LWC

Is there any way we can use Google Address plugin related javascript inside an LWC component like we have used inside the Visual force pages like below, <apex:component > <script src="https:/...
user avatar
1 vote
1 answer
434 views

Google geocoder status is OVER_QUERY_LIMIT Lightning Map

I have an aura lightning component that uses Lightning:Map. When i have more than 10 addresses, i get the message Google geocoder status is OVER_QUERY_LIMIT. 1) Are there any limits on how many ...
user avatar
0 votes
1 answer
223 views

Cannot Display exact adress on the map (LWC)

I seem unable to display exact adress of an account shipping adress on a google map! import { LightningElement, api,track ,wire} from 'lwc'; import getRecentModifiedAccounts from "@salesforce/...
user avatar
  • 35
0 votes
1 answer
901 views

How to define size and zoom out of a google map in LWC?

HTML : <label for="pays">Pays</label> <lightning-output-field field-name="Country__c" variant="label-hidden" id="pays" ></lightning-output-field> </br> <...
user avatar
  • 35
0 votes
2 answers
212 views

Not able to get Distance from google distance matrix JSON format

Hi I am working on calculating distance from one location to another. I got the JSON format from the response but further I am not able to get the distance from JSON in my apex code. I have also taken ...
user avatar
0 votes
1 answer
91 views

Need to get distance between source (latitude and longitude) and destination (latitude and longitude) using google API

Hi I need to calculate the distance of the first location to the second location using google MAP API but I am getting this Error [System.HttpResponse[Status=OK, StatusCode=200]]. I have tried the ...
user avatar
0 votes
1 answer
265 views

Google Map static map not working in Visualforce pdf

I have a page which is being rendered as pdf and in it there is a google static maps image which is not being displayed. This used to work fine but for some reason seems to have stopped working. The ...
user avatar
5 votes
1 answer
4k views

Google Map API in LWC [closed]

As we know that standard base component lightning-map has limited customizations, so I am planning to use a custom map using Google Maps API. I know that we can import the JS file and use it as ...
user avatar
  • 1,393
0 votes
2 answers
1k views

lightning-map does not show markers

I've got a parent-child-relationship where the parent is called portfolio and the child called property object. All child objects have geolocation and address information. I am implementing a ...
user avatar
1 vote
0 answers
108 views

Do you have to pay for the Google Maps API in order to use lightning:map feature?

My company has directly used the Google Maps API before and once we got above a certain number of API calls we had to start paying for the service. I've noticed that the lightning:map feature of Aura ...
user avatar
  • 617
1 vote
1 answer
932 views

lightning:map Account Locator Map markers not showing on map

I created an Account Locator application similar to the one found in the Trailhead example. I altered min slightly as I am using a custom object instead of the account object. I was able to ...
user avatar
  • 21
1 vote
0 answers
154 views

Google Map full-screen control is not visible on chrome [closed]

I have implement a web page that include a google map component. In the map all other map controls(zoom, satellite, and etc.) are properly visible except the full screen control. The issue recreates ...
user avatar
0 votes
1 answer
179 views

Typeahead google api on flows

I currently have a custom page that accepts addresses as user input. This addresses use Google API in the back-end and gives user suggestions as they type. Due to some changes in the process, we ...
user avatar
  • 2,146
1 vote
0 answers
43 views

Google Direction api is giving bad response [closed]

From today morning we are receiving bad response from direction api in Salesforce: Here is the response : // normal response waypoint_order: Array(23) 0: 3 1: 9 2: 8 3: 10 4: 19 5: 21 6: 22 7: 1 8: ...
user avatar
0 votes
3 answers
261 views

Alternative for google maps api?

We use geocodes(google map APIs) in our healthcare application to locate how far doctors and clinics are located from the patient. The locations are pointed on the map embedded into salesforce and ...
user avatar
  • 1,144
2 votes
3 answers
32k views

LWC - Cannot read property * of undefined

I'm trying to implement a Google map using LWC, the component is on the record page called Project__c, I want to use Address__c as an input: import { LightningElement, api, wire } from 'lwc'; import {...
user avatar
  • 1,431
1 vote
1 answer
2k views

Lightning Web Components - how to customize a map? [closed]

It is easy to create a Google Map control with the standard Salesforce Lightning Web Components map control, but how can you set the Google Maps control options that allow you to make configuration ...
user avatar
  • 57
2 votes
2 answers
3k views

Account Address search(Powered by Google) in Salesforce

I am trying to implement Address Search in Account Mailing and Shipping Address. I went through the following documentation https://help.salesforce.com/articleView?id=customize_maps_autocomplete....
user avatar
  • 1,071
0 votes
1 answer
1k views

How to call java script function without refreshing page?

When I'm trying to solve witout refresh page (Map should not blink on increasing of list index). I have tried it , but it's not happening without refreshing and i want to solve this problem with java ...
user avatar
0 votes
0 answers
189 views

Lightning Map Markers not getting populated

I have used lightning:map in one of my lightning component. It is working fine in my laptop but while opening the same in other laptops markers are not getting populated. I have checked location ...
user avatar
1 vote
1 answer
873 views

Plotting a map(poly-shaped) area dynamically?

I am trying to implement a Lightning component/VF page that could render a shape/layer on a Map(may be a Google Map) after successfully capturing the plotting. Initially the end user submits a ...
user avatar
  • 1,490
0 votes
1 answer
1k views

Geolocation location fields in Contacts/Account

I know Salesforce has some custom hidden fields that stored geolocation coordinates based on the Mailing and Billing address fields. (and I believe this is how the plot Markers in the inline Google ...
user avatar
0 votes
1 answer
470 views

lightning:recordForm display addresses fields as google maps reference with image

I'm working with lightning:recordForm and when adding an address field it displays like this: And that text is a redirection to the google maps page: But what I really want is that field to have the ...
user avatar
  • 771
0 votes
1 answer
3k views

How do use Google Maps Places Autocomplete REST API in Salesforce

Does anyone have any example Apex code or Salesforce Lightning JavaScript code for using the Google Maps Places Autocomplete REST API within Salesforce? Specifically to perform a GET request to end ...
user avatar
  • 8,223
1 vote
0 answers
365 views

Enabling CSP unsafe-eval support on other origins

I'm trying to build a component utilising lightning:component (external build) which has a dependency that loads code on init via a script tag. Specifically I'm trying to load content from https://...
user avatar
1 vote
2 answers
384 views

OVER_QUERY_LIMIT and ZERO_RESULTS error when address passes from apex class

I am passing an array of address from my apex class. The addresses are coming over fine in JavaScript but I get an error mentioned below. The marker works fine when I hardcode the same address in the ...
user avatar
  • 2,551
0 votes
0 answers
140 views

Whitelist MyDomain Sandboxes

Now that I'm using MyDomain, I am noticing that sandboxes have a silly domain name associated with them (e.g., mydomain--sandbox.cs43.my.salesforce.com). I'd like to whitelist production and all ...
user avatar
0 votes
0 answers
314 views

How to convert latitude and longitude, received from Google Maps API, to N, S, E, and W coordinates, to be sent to GeoNames webservice?

The requirement is to track a list of Earthquakes after the user inputs the City name. I'm able to successfully send the City (and state + country etc.) name to the Google Maps API of GeoCoding (https:...
user avatar
0 votes
1 answer
50 views

How to display mapMarkers eventhough lat and log is same for multiple records

I am displaying the Accounts in google Maps with Latitude and longitude. But Most of the records has same latitude and logitude. If Suppose latitude and longitude is same for 10 records but in Maps ...
user avatar
  • 43
1 vote
0 answers
40 views

changing the language in the mailing address field into a local language

I have enabled the Map and location settings in my organization to get the address searched. Is there a way to return the address in the local language(just for the address fields) on the detail page ...
user avatar
0 votes
1 answer
53 views

Render google map in Page Block Section

My Vf page have 3 steps. And I'm try to show google map in step 3. <apex:PageBlockSection title="Google Maps" columns="2"> <body> <input id="pac-input" ...
user avatar
  • 360
2 votes
2 answers
2k views

Content security policy error

I developed a Visualforce page with an integration that visualizes a Google Map, but when the page is opened, in the console browser I can see the errors: -Unrecognized Content-Security-Policy ...
user avatar
1 vote
1 answer
1k views

Visualforce Google Maps has stopped working [closed]

The code has not been amended for more than 4 years and now Google maps does not load, say: This page has not loaded Google Maps correctly. See the details technical of the problem in the console of ...
user avatar
-1 votes
2 answers
460 views

Hi, I am trying Execute the following code in Visualforce page to get the current Location, But output is not coming. Please check & provide solution

Link of the code: http://www.aspsnippets.com/Articles/Get-Current-Location-Latitude-and-Longitude-using-JavaScript-and-HTML5.aspx Code: <apex:page> <script type="text/javascript" src="http://...
user avatar
0 votes
1 answer
370 views

Setting up map markers and Info windows using javaScript remoting call

I need to populate a map on visualforce page for the custom object records. I use Javascript Remoting method to get data from the controller and then on basis of the records I create addresses. Once ...
user avatar