Question
Virtusa
US
Last activity: 21 Jul 2018 13:42 EDT
Showing different markers on Address Map Control
Hello,
We have a requirement to show multiple locations with different marker for each location on maps.
Pega OOB feature in Address Map Control uses 'pyDefaultMarkerIcon' binary by default and applies to all locations on the map.
Tried customizing as suggested in google API, but this is not working in Pega. Showing blank screen by not rendering the map and observed no errors on console. Please check below URL for your reference.
https://developers.google.com/maps/documentation/javascript/custom-markers
Any suggestions?
-
Like (0)
Nagarjuna Pichani -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Learning
IN
Hello Kiran,
I am able the include the map in my local. Kindly check the below screen shot for your reference:-
Kindly follow the steps in the attached document to include the same at your end.
Let us know the update after trying the suggested changes
Thanks,
Hari
Learning
IN
Hello Kiran,
Thanks for posting your query in PSC. Just wanted to confirm few things from your side. Hope you have API Key applied for the google maps and kindly let us know the Pega Version that you are using at your end.
Thanks,
Hari.
Virtusa
US
Hi Hari,
Yes, I applied API Key and it is working fine with OOTB Address map control. Since I am trying to show different markers, I tried the custom solution suggested in google api in which also I am passing API key. I don't see any issue with API key.
Btw, I am using PRPC 7.4 PE.
Thanks
Kiran
-
Subramanyam Kolipakula
Accepted Solution
Learning
IN
Hello Kiran,
I am able the include the map in my local. Kindly check the below screen shot for your reference:-
Kindly follow the steps in the attached document to include the same at your end.
Let us know the update after trying the suggested changes
Thanks,
Hari
Virtusa
US
Thanks, Hari. It is working now.
Bits In Glass
GB
Thank you Hari
DXC
SA
Hi,
How can we use this to a moving vehicle scenario? I have to use a vehicle icon other that the default Marker icon and also that vehicle will move time to time.
Appreciate your quick response.
Virtusa
US
Hi,
Please refer below link for custom markers.You need to refresh the map with latest lat, lang values to show vehicle's current position.
https://collaborate.pega.com/question/custom-marker-and-marker-label-address-control-pega-74
Thanks
Kiran
CollabPartnerz
IN
Please find below link about maps
https://developers.google.com/maps/documentation/javascript/custom-markers