You need to sign in to do that
Don't have an account?
Ola Bamidele
How can I make this kind of list dynamic
Hi everyone,
I have this code to pin point a certain location on a map however, it is very static meaning that I will have to enter all the account locations manually into the code for it to show.
So i was wondering, is there a way to make it more dynamic? So it will automatcially pull the location number from the account location field in Salesforce for each account?
Im really not sure so please if you know how to do it hen let me know please!
Thanks!
I have this code to pin point a certain location on a map however, it is very static meaning that I will have to enter all the account locations manually into the code for it to show.
So i was wondering, is there a way to make it more dynamic? So it will automatcially pull the location number from the account location field in Salesforce for each account?
Im really not sure so please if you know how to do it hen let me know please!
Thanks!
L.marker([37.7851430, -122.4034050]).addTo(map) .bindPopup('Marriott Marquis') .openPopup(); L.marker([37.7941570, -122.3963110]).addTo(map) .bindPopup('Hyatt') .openPopup();
Thanks for th reply. I tried your code in the AccountMap controller but i got an error - probably because i put it in the wrong place.
Could you please point out to me when i need to put the code you sent please?
This is my code:
Thanks very much!