You need to sign in to do that
Don't have an account?
Ola Bamidele
Changing Map Icon
Hi everyone,
I am trying to change the map icon for a particular location (located using Latitude and Longitude) however, the map icon is only easily changable when hard coding the Latitude and Longitude manual into the page i.e.:
However, I am pulling the account location from a Latitude and Longitude field in Salesforce via this line:
How can i how change the icon on the map for the accounts on the map whiles using this method of pulling Latitude and Longitude? Please if anyone know how to do so then please let me know.
Thanks very much!
I am trying to change the map icon for a particular location (located using Latitude and Longitude) however, the map icon is only easily changable when hard coding the Latitude and Longitude manual into the page i.e.:
L.marker([51.5, -0.09], {icon: greenIcon}).addTo(map);
However, I am pulling the account location from a Latitude and Longitude field in Salesforce via this line:
.bindPopup(account.Name);
How can i how change the icon on the map for the accounts on the map whiles using this method of pulling Latitude and Longitude? Please if anyone know how to do so then please let me know.
Thanks very much!
Thanks for the response, this is my code:
Thanks very much!