jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
42 stars 16 forks source link

Hide or change pins shown in Directions visualisation #146

Open jcarlos314 opened 3 years ago

jcarlos314 commented 3 years ago

Hello. I have a query that shows the driver, the restaurant and the client and I put icons on each one to identify them. When I change the mode from Pins to Directions, the pins from google are overlapping my pins. How can I hide those pins?

image Map with my pins

image Map overlapping my pins

jeffreykemp commented 3 years ago

Thanks for this question.

The plugin currently does not provide any access to the directions renderer object so these cannot be changed. I will add this as an enhancement in a future release.

Note to self: relevant code is in jk64reportmap_r1.js, function showDirections - need to provide options to customise this.directionsDisplay.DirectionsRendererOptions including markerOptions, infoWindow, etc. https://developers.google.com/maps/documentation/javascript/reference/directions#DirectionsRendererOptions

jcarlos314 commented 3 years ago

Thanks for answer!