Overview
Google Maps Component Plugin provides support for displaying interactive maps, directions, and markers in a SAIL interface.
Pre-requisites:
Can someone paste the sample code for the googleMapsDisplayField() function. I am able to connect to the GMaps and also use the googleMapsDirectionsField() which is pretty straight forward. However, for googleMapsDisplayField. we need to pass the markers eg:
mapMarkers: { name: "MyPoint", content: "", lat: 25.7617, lng: 80.1918 },
Would appreciate if someone already tried this and working could help here.
Thanks in adv.
Regards,
Raghu
Is the jar included in the download package? Cannot seem to find it
Hi Josh, setting the new fitBounds parameter to true will auto-zoom and auto-center the markers on the map.
Hi Josh, I will look at updating the plugin and post an update soon. I had updated directions component to auto-zoom when using both directions and markers together, but it seems that the marker only component needs an update as well. Stay tuned!
Any chance this component could be updated so that upon initial load, the map is auto-zoomed to the appropriate level so that the provided map markers are within view? We're trying to come up with a formula that would provide the right zoom value, but not having much success. Seems like this would be a fairly simple task by using the fitBounds method. Although a bit dated, I found a code sample on stack overflow: https://stackoverflow.com/questions/3897744/automatically-adjust-zoom-to-accommodate-all-marker-in-a-google-map
Hello,
Has one of you used the googleMapsDisplayField component and could post a sample of the code ?
I don't find a detailled documentation of this plugin. I would like to have some more details on :
- onMarkerSelected (List of Save): Saves user marker clicks metadata : how can I get the value ?
- mapMarkers (List of Dictionary): An AnyType Array of markers : what value can I put to the propertie content: MARKER_CONTENT ?
Thank you
Hello; There are a lot of "API Key" types available in google. Which one is the one to use this component? https://developers.google.com/maps/documentation/api-pickerThank you.
Hi priyankag0001 - you can create a user input field that uses the Google Maps Connected System Plug-in to convert addresses/locations to coordinates that will display a pin on the map
Hi, Can we search in map using address or can we select place in map like google map?