A PCF control to render a view of records on Google Maps using the location information (lat/long) againt each record.
- The control uses the columns in the view to display an information window when a location marker is clicked.
- The information window also includes a configurable title that will navigate the user to the respective record
- The control also requests your current location to display the map in the correct area. Location data is not transmitted externally. You can choose to deny this permission and the map will load at lat/long 0,0.
NOTE: You will need to provide a Google Maps API Key.
Use the following steps to configure a Google Maps Grid against a view after installing the solution
- Add the desired columns/filters to a view. Reember to include the respective latitude and longitude fields in the view. To keep things clean, the lat/long fields are ignored when displaying the information window
- Click the 'Custom Control' button to add the control
- Select the 'Google Maps Grid' control
- Control parameters (Screenshot below):
- Primary Field - The logical name of the primary field to be used as the title for the information window when a marker is clicked
- Latitude Field - The logical name of the latitude field to be used to pin point the location of a particular record
- Longitude Field - The logical name of the longitude field to be used to pin point the location of a particular record
- Google Maps API Key - The API key to allow Google Maps to load
For convienence, the Releases folder contains a managed solution that can be installed on CDS.