You need to sign in to do that
Don't have an account?
prasanth sfdc
Lightning:map tag not showing all addresses on map
I am trying to display 100 locations address from cutom object to Lightning:map tag, its showing only first 11 addresses plotting on the map. Is there any limitation for this lightning:map tag ?
Please help to solve this.
I have followed this link to create component.
http://sfdcmonkey.com/2018/09/16/mark-locations-google-map-salesforce-lightning/
Please help to solve this.
I have followed this link to create component.
http://sfdcmonkey.com/2018/09/16/mark-locations-google-map-salesforce-lightning/
Yes, there is a limitation with lightning:map tag. You can specify a maximum of 10 geocoded address lookups per map while if you use longitude and latitude pair for addresses then you can draw 100 markers or more.
So if you are using following format i.e. address format to prepare list of markers for attribute 'mapMarkers' then it will be limited to 10 : To display more markers you should use following format :
For more details please refer the documentation :
https://developer.salesforce.com/docs/component-library/bundle/lightning:map/documentation
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks
All Answers
Yes, there is a limitation with lightning:map tag. You can specify a maximum of 10 geocoded address lookups per map while if you use longitude and latitude pair for addresses then you can draw 100 markers or more.
So if you are using following format i.e. address format to prepare list of markers for attribute 'mapMarkers' then it will be limited to 10 : To display more markers you should use following format :
For more details please refer the documentation :
https://developer.salesforce.com/docs/component-library/bundle/lightning:map/documentation
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks
I have understood your problem and got a solution for you.
There are no limits in showing map locations.
I have gone through this link also-
http://sfdcmonkey.com/2018/09/16/mark-locations-google-map-salesforce-lightning/
But the solution available there is for only one location.
You should check this link also.you will get the complete documentation with codes by this link.
For multiple locations, the solution also available there.
https://developer.salesforce.com/docs/component-library/bundle/lightning:map/example
If you still have more queries, feel free to ask.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com
Thank you so much...
Could u please help me to solve this problem related lightning map tag. not able to get the users clicked location name n JS controller.
https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Lightning&criteria=OPENQUESTIONS&id=9062I000000XnQCQA0