Questions tagged [google-map]
The google-map tag has no usage guidance.
37
questions with no upvoted or accepted answers
4
votes
2
answers
400
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
1
answer
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 ...
2
votes
0
answers
1k
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 ...
2
votes
0
answers
792
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 ...
2
votes
1
answer
98
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
0
answers
404
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
1
answer
703
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
0
answers
618
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 ...
1
vote
0
answers
202
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 ...
1
vote
1
answer
3k
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 ...
1
vote
0
answers
227
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
1
answer
1k
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
0
answers
411
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
0
answers
53
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
0
answers
947
views
How to set a popup window on markers with Google Maps API?
I have this code where I display and set all my markers. Right now when clicking on a marker, a new tab is opened with the information which is another visualforce page. How can I have this new window ...
1
vote
0
answers
542
views
Google Map Issues!
Using VF i am displaying google map based on geolocation field which is a formula field(Lat_Long_Values__c) contain latitude and longitude value. When i run this VF page if there is no value in ...
0
votes
0
answers
41
views
OmniSript Type Ahead Blck Google Maps Autocomplete does not work
I have created an OmniScript which includes a Type Ahead Block with Google Maps Autocomplete. The component works as expected when I preview the OmniScript and it is capable of displaying matching ...
0
votes
1
answer
43
views
Google Maps in VisualForce problem
I am new using VisualForce and this is the first time I'm using this technology. I have to use the google maps api in VF because of the limitations of LWC lightning-map.
My VisualForce looks like this:...
0
votes
0
answers
45
views
Draw circule icon in lightning map LWC
Hello I have the followed json that shows a location in lightning-map:
mapMarkers = [
{
location: {
City: 'San Francisco',
Country: 'USA',
PostalCode: '...
0
votes
0
answers
99
views
Issues loading Google JS library in LWC
I am trying to load the google places library into an LWC.
I ripped the js from the src url(below) for a normal google script tag and loaded it as a static resource.
https://maps.googleapis.com/maps/...
0
votes
1
answer
1k
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....
0
votes
1
answer
555
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:...
0
votes
1
answer
374
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 ...
0
votes
3
answers
364
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 ...
0
votes
0
answers
278
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
1
answer
578
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
0
answers
186
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
0
answers
355
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
1
answer
52
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 ...
0
votes
1
answer
72
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" ...
0
votes
1
answer
410
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 ...
0
votes
0
answers
392
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="...
0
votes
2
answers
314
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
0
answers
162
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
0
answers
342
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
0
answers
905
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: ...
0
votes
0
answers
416
views
Search button google map is not working on my vf page
`i am newbie in sales force .I am integrating Google map and there is a field city . along with search button. Google map is showing but search button is not working ..
I just want to perform ...