As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [google-map]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
2 answers
514 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://...
Ravindar Admin's user avatar
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 ...
Harish Chauhan's user avatar
2 votes
2 answers
750 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 ...
wAitIng dOg's user avatar
1 vote
1 answer
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 ...
monkeyhandz's user avatar
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="...
developer__c's user avatar
  • 1,297
1 vote
2 answers
1k 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 ...
user1672012's user avatar
3 votes
1 answer
1k 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 ...
Nagashruthi Chakilam's user avatar
0 votes
1 answer
782 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 ...
Nagashruthi Chakilam's user avatar
3 votes
0 answers
109 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 ...
Jaime Ruiz Pallarés's user avatar
1 vote
1 answer
821 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 ...
Gauri Gaikwad's user avatar
1 vote
1 answer
700 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 ...
Muhammad Sheheryar Afsar's user avatar
0 votes
2 answers
963 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 ...
Murali Mohan Mandadi's user avatar
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). ...
Reshmi Smiju's user avatar
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 ...
Reshmi Smiju's user avatar
0 votes
1 answer
875 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 ...
Nolan Maratas's user avatar
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&...
SFDC shaikh's user avatar
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: ...
Teja's user avatar
  • 1,412
1 vote
2 answers
527 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 ...
Chris's user avatar
  • 37
0 votes
1 answer
710 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 ...
Nick's user avatar
  • 6,844
-1 votes
2 answers
786 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/...
Nick's user avatar
  • 6,844
0 votes
2 answers
4k 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. ...
Nikitha's user avatar
  • 141
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"> <...
Christian Carter's user avatar
1 vote
3 answers
9k 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. ...
danielpm's user avatar
  • 133
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 ...
Ronan's user avatar
  • 65
2 votes
1 answer
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. ...
Sam Maton's user avatar
  • 175
1 vote
1 answer
74 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!
t56k's user avatar
  • 833
0 votes
1 answer
1k 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 ...
happy's user avatar
  • 363
1 vote
1 answer
729 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, ...
Ryan Werner's user avatar
2 votes
1 answer
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, ...
sberley's user avatar
  • 534
2 votes
1 answer
171 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 ...
sberley's user avatar
  • 534
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 ...
sberley's user avatar
  • 534
2 votes
1 answer
895 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 ...
sfdc's user avatar
  • 13.5k
2 votes
2 answers
694 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. ...
sberley's user avatar
  • 534
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 ...
IT.Beaulieu's user avatar
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. ...
Sesaco Admin's user avatar
1 vote
1 answer
684 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 ; ...
Anurag Pareek's user avatar
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 ...
Anurag Pareek's user avatar
0 votes
1 answer
81 views

How to populate multiple coordinates on map

I have two custom objects in Master-Detail relationship, there is a GeoLocation field on child object, now I have to display pin all the location of child record on the Master object page. I am able ...
MJain's user avatar
  • 45
1 vote
1 answer
178 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......
Ninja King's user avatar
3 votes
1 answer
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 ...
Adrian Larson's user avatar
  • 148k
3 votes
1 answer
2k 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[] ...
Igor H's user avatar
  • 39
1 vote
1 answer
517 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> ...
Alex's user avatar
  • 422
0 votes
1 answer
152 views

Googlemap Not visible in Vf Page

I have used the below code and it is worked fine while runing as HTMl file. But if I used with the Visualforce page. the map not visible. Map not showing please look the below image. Googlemap code ...
Alex's user avatar
  • 422
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 ...
Stephen McKitrick's user avatar
1 vote
1 answer
362 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 ...
LazyBones's user avatar
  • 319
2 votes
1 answer
1k 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 ...
Bradley Thomas's user avatar
1 vote
1 answer
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 ...
Jagular's user avatar
  • 3,336
2 votes
1 answer
376 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 ...
Roger Francis's user avatar
3 votes
1 answer
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> &...
apn's user avatar
  • 1,712
0 votes
1 answer
157 views

Page lifecycle reading query parameters and executing

I have a working view and controller. I've added a custom link to accounts/leads that passes the id and type in the query string to an page and here the controller should then load some data according ...
Camathon's user avatar
  • 125