Questions tagged [google-map]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
1k 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 ...
4
votes
2answers
327 views

Page renders properly only if showHeader=“false”

I have a page that will render properly only when showHeader="false" in the apex:page tag. When it's set to true I get the following... However, when it's set to false, I get a full-page map from ...
4
votes
1answer
3k views

How to display salesforce data on a Google Map?

I am a beginner user here, but I've been tasked with developing maps of our volunteers. There are two types of volunteers (contacts), CDL Drivers and Plain Volunteers. I have researched a few pages ...
3
votes
2answers
9k views

Simple way to generate object from JSON that return from Google Geocode API?

I receive JSON file from Google API Geocoding.Refer to JSON file here.Is there any other easy way to extract the data from this JSON in Apex?I want to retrieve a state value and result status code ...
3
votes
1answer
2k views

google map not showing on Visualforce page

I am trying a very simple exercise to display a google map on visualforce page. But nothing is showing up. Below is my page code - <apex:page controller="SampleLocation"> <head> &...
3
votes
1answer
1k views

Google maps api request from apex batch

everyone. I am trying to run batch, wich will fill the geolocation field on accounts. And for now, i have an issue with http request, that fails. so, here it is public static String[] ...
3
votes
1answer
114 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:/...
3
votes
1answer
2k views

Enable VisualForce Map Component apex:map

I have found to my delight that there is now a standard map component. However, it is apparently not enabled for my org. How do I enable them? Is this feature still in beta? All the listed features ...
3
votes
1answer
850 views

Google Maps with Salesforce VF Page

I created a new VF Page where I have 3 dependent dropdowns of country,state and city. Upon selection of the three dropdowns, I get a list of postal codes of the selected city where I have my installed ...
3
votes
2answers
801 views

Visualforce - Apex - Google maps

I have been trying to get something to work with Google maps in combination with Apex and Visualforce pages, but I can't figure out what I'm doing wrong. What I want is to set different icons with ...
3
votes
0answers
98 views

is it possible to fill address lead fields automatically with geolocalization from within salesforce1? [closed]

I would want customize my salesforce1 app so that we can add a new lead and auto-fill the address lead fields with a location button using the geolocation feature of my mobile device. Would it be ...
2
votes
2answers
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 ...
2
votes
1answer
2k views

Access Javascript variable inside of an Apex:repeat

I am currently trying to add some customer markers to a map. I can add a single marker to the map but when I move that same logic inside of an Apex:repeat I no longer have access to the map variable. ...
2
votes
1answer
2k views

returning distance in soql select

Has anyone found a way to use the DISTANCE function in a SELECT phrase. I've seen how to use it in the WHERE and ORDER BY clauses, but what I'm trying to do is something like... SELECT id, name, ...
2
votes
1answer
523 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....
2
votes
2answers
405 views

Finding geolocations within the bounds in Apex

I am working with Goole map in a VF page.Consider that Account object has Geolocation field. Based on the user location I have mapped the center point in the map and got the bounds of the map using ...
2
votes
1answer
128 views

Simulating containers from VF layout editor on page w/o sObject

(n.b. While the underlying problem described here was originally asked days ago, this posting asks for assistance from a totally different perspective) I have a VF page containing a map that works ...
2
votes
2answers
589 views

apex:mapMarker marker events and color

I'm looking to add some of the new apex:map functionality to one of the orgs I manage. While it's pretty fantastic how they've made it so easy, there's also some basic things I've noticed lacking. ...
2
votes
1answer
945 views

Is it possible to use the setHeader method on HttpRequest Class to set the referer?

Using an Apex callout to Google Maps geocoding API, I want to authorize narrowly within Google to protect the client ID from being reused by anyone else. I believe the referer header needs to match ...
2
votes
1answer
312 views

How to navigate to Salesforce Account record on clicking the Google Map marker

I am displaying all account record close to my current location on Google Maps. I need to navigate a user to the particular account record in Salesforce once he chooses a marker on the map and clicks ...
2
votes
1answer
94 views

Is it possible to have a google map fill the page space while having the salesforce header?

Currently I have a google map displaying in salesforce. If I set showheader="false" in the apex page tag, I can set the map div to 100% height. If I set showheader="true" then I need a specific ...
2
votes
1answer
626 views

Disable Google maps for few pagelayouts/objects

Right now you can enable or disable the google maps feature by going to Customize > Maps and Locations > Settings -> Enable Maps and Location Services This will either enable or disable for all ...
2
votes
0answers
326 views

Draw on Google Map within Visualforce

I'm wanting to be able to free-form draw on top of a map within a Salesforce page if possible. I believe this can be done but am having a hard time getting the code to work. Any help is appreciated. ...
2
votes
1answer
597 views

Nested <apex:repeat> in an <apex:map>

I'm running into some odd errors with a nested apex:repeat inside of an apex:map (on API 34.0). My code looks like this: <apex:map width="500px" height="500px" center="53704"> <...
1
vote
1answer
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 ...
1
vote
1answer
903 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 ...
1
vote
3answers
6k views

Google Maps not rendering with 100% height

I have a simple page with a search that shows the results throught the Google Maps API. The problem is, when I put on CSS height:100%, the map dont shows up. If I change it to 500px, it works fine. ...
1
vote
1answer
2k views

How to display Google Map based on Latitude and Longitude?

I am using google map based on billing address field its works fine. But now i need to display the map based on Latitude and Longitude value, when i given using the latitude and longitude value it is ...
1
vote
2answers
799 views

Finding the distance between two accounts in salesforce using google map integration [closed]

We are currently working on finding distance between two accounts using Google map integration. So, we are unable to find the solution for this. Can any one please help me out. We are able to display ...
1
vote
2answers
458 views

Create a map showing all town locations

I have a custom object on SalesForce called clients. This object contains address line 1, town and postcode fields. I am looking for a way to show all the towns on one map as we would like to be able ...
1
vote
1answer
56 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 ...
1
vote
1answer
529 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 ...
1
vote
2answers
308 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 ...
1
vote
1answer
1k views

How to geocode in Lightning?

Anyone know if its possible to use the google geocoder API from a Lightning component? Using visual force and javascript I have can make use of google maps goecoder API to get the geolocation of ...
1
vote
1answer
617 views

Google Map in Visualforce Modalpopup

Hy i am new to salesforce and I am trying to display the google map in Bootstrap modal when the row is clicked . The modal shows up but google map does not display but when i click on Inspect element ...
1
vote
1answer
69 views

Adding Apex pages to lead layout page

I'm trying to add a Google Map to my lead page layout. I've made the page in Apex, how do I insert into my lead page layout? Alongside my custom fields, etc? Thanks!
1
vote
1answer
598 views

Autocomplete in google map

I had wrote a script to use the Google map in Vf page. I want to use i want to use the auto complete city text box. Can you help me out Guys. Here is my script:- <script> var marker=null ; ...
1
vote
1answer
163 views

Google Maps… What about Google Earth Code

I have this code which only shows the google map. I would like to have another code that shows "EARTH" and a seperate code for "Tilt View" So I will have 3 different maps. An example is like this......
1
vote
1answer
462 views

Geo location not visible

Hi I have used the below code but the map not showing in visualforce page. Code: <apex:page> <html> <head> <title>Geolocation</title> <style> ...
1
vote
1answer
323 views

How to find whether Google Maps API is licensed or not? [closed]

I am using Google maps API in my salesforce application. I am using this javascript file https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places to integrate my application with google ...
1
vote
1answer
1k views

Salesforce1/Google maps tutorial example now shows blank page

About two months back, I was tinkering with the Salesforce1 warehouse tutorial ( Salesforce1 Mobile Workbook. It's the one where you show the location of your warehouses (Salesforce data) on a Google ...
1
vote
1answer
405 views

generate signature in apex to call Google Geocoding API but Signature not valid on certain postal code

I hope the title is correctly defined.I am passing postal code to Google Geocoding API and required to generate signature with private key provided.I successfully generate the key based on reference ...
1
vote
0answers
49 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 ...
1
vote
1answer
397 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 ...
1
vote
0answers
28 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 ...
1
vote
0answers
36 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: ...
1
vote
0answers
286 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://...
1
vote
0answers
32 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 ...
1
vote
1answer
698 views

Display/Rerender google map with the updated list of addresses

i have displayed google map for accounts(lets say 10 accounts) I have a accounts differentiated by segments. i want to filter out accounts using segment, and based on the result i want to rerender ...
1
vote
1answer
840 views

Get a location's latitude and longitude [closed]

I tried this code getting latitude and longitude from google map. But the field is not updating. public class LocationCallouts { @future (callout=true) // future method needed to run callouts ...