Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [google-map]

The tag has no usage guidance.

0
votes
2answers
126 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 {...
1
vote
1answer
114 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 ...
2
votes
1answer
38 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....
1
vote
0answers
18 views

Error Unable to geoloc when using lightning:map aura component

I am struggling with an "Unable to geoloc" error when using the lightning:map aura component. Although all my account records are correctly geocoded using Salesforce geocode engine, I am still getting ...
0
votes
1answer
28 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 ...
0
votes
0answers
100 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 ...
0
votes
1answer
225 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 ...
0
votes
1answer
87 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 ...
0
votes
1answer
202 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 ...
0
votes
1answer
1k 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 ...
1
vote
0answers
239 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
2answers
158 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 ...
0
votes
0answers
46 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 ...
0
votes
0answers
272 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:...
0
votes
1answer
42 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 ...
1
vote
0answers
26 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 ...
0
votes
1answer
40 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" ...
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 ...
1
vote
1answer
732 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 ...
-1
votes
2answers
298 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://...
0
votes
1answer
257 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 ...
2
votes
2answers
168 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 ...
1
vote
1answer
899 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 ...
0
votes
0answers
270 views

Visualforce <apex:map> create <apex:mapmarker> on click

I want to be able to capture the location when the user clicks on the window. I just need to store the coordinates, then I can display a map marker. VisualForce Map Code: <apex:map height="...
1
vote
2answers
588 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 ...
3
votes
1answer
654 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 ...
0
votes
1answer
467 views

Google Maps position with postal codes

Is it possible to show a pin on google map for a postal code? I have only the country name, state name and city name with postal code. Is it possible to show a pin for such postal code? Or do we need ...
3
votes
0answers
89 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 ...
1
vote
1answer
644 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
550 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
762 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 ...
0
votes
2answers
679 views

Geocoding - get lat/long for 110,000 address

What I have: List of 110,000 address (street + city+ state+ zip code) all address are from US What I am looking for: get "geocodes" (latitude/longitude) of all address. using a opensource API, or a ...
0
votes
2answers
237 views

Issues With my VF Google Map Page

I have a VF page, integrating with Google Map. I have to load the Google Map with Washington DC. Also need to display a list of Person Accounts coming from my controller(after some search operation). ...
0
votes
0answers
119 views

How to place the Google map Zoom Controller to the Top Right position

I have created a Google Map VF page, using apex:map tag. In the Map, I need to place the Zoom control to the Top Right position(currently its in Top Left position) due to some visibility issue. Is ...
0
votes
1answer
588 views

Google Static Map API specifically for HTML Email?

Has anybody ever tried using Google Static Map API or something similar to generate dynamic map images to be used within HTML emails? There's over 2k store locations and I'm wanting to avoid ...
0
votes
0answers
293 views

Multiple marker on google map not working

Vf Page <apex:page standardController="Hotel__c" extensions="HotelList" sidebar="false"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title&...
0
votes
0answers
760 views

Display Near by leads Contacts Accounts on visualforce google map?

Visualforce Page: <apex:page controller="mapController" tabStyle="Contact" action="{!find}" id="page"> <head> <style> div #map_canvas { height: ...
1
vote
2answers
390 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 ...
0
votes
1answer
480 views

Turns address into latitude and longitude coordinates

How to retrieve or get the lat/lon by providing the address?, I'm using Google places auto-complete API and you typed the address in the auto-complete text-box and you select the address and the ...
-1
votes
2answers
509 views

How to Retreive Standard Google Map Lat/Lng

I have my VFP where user can search the address as shown in the attached screen shot and the marker pops-up once it selected the address, this is all good but my question is: How can I get the lat/...
0
votes
2answers
3k views

How to place the google map address in account object?

I have created visual force pages for Google map using auto complete functionality. It's working fine in visual force page only but I need to place the account object in billing and shipping address. ...
2
votes
1answer
533 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
3answers
5k 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. ...
2
votes
1answer
92 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
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. ...
1
vote
1answer
66 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!
0
votes
1answer
759 views

Google Map on salesforce custom object detail page [closed]

I am not able to view the map on the Custom object detail page. I am able to save the page, and also I am not getting any errors, but still unable to view anything Please help me with the possible ...
1
vote
1answer
640 views

Google Maps - How do I Add Info Window to Marker? [closed]

I am developing a page where a user can press a button on an account and a map will display with markers created for each nearby account. I have been able to create the markers for each account, ...
2
votes
1answer
1k 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
110 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 ...