Questions tagged [google-map]

The tag has no usage guidance.

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
2answers
354 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 ...
2
votes
1answer
96 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
0answers
360 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
645 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
877 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
0answers
317 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 ...
1
vote
0answers
259 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 ...
1
vote
0answers
67 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
748 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
330 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
34 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
0answers
896 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
0answers
531 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
0answers
37 views

Info window does not show when listview is hidden on Lighning map LWC

I want to have my map showing the info window with the listview hidden as shown in the diagram. As per the documentation the description should show on click the marker but it does not. According to ...
0
votes
1answer
33 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
1answer
194 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
3answers
180 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
0answers
178 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
413 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
0answers
115 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
296 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
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 ...
0
votes
1answer
52 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
1answer
347 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
0answers
342 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
2answers
277 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
139 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
0answers
334 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
855 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
0answers
405 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 ...