Activity › Forums › Salesforce® Discussions › How do you use the map in the lightning component? Salesforce® Discussions How do you use the map in the lightning component? Posted by Marziya on December 10, 2020 at 2:47 PM How do you use the map in the lightning component? Anjali replied 5 years, 5 months ago 2 Members · 1 Reply 1 Reply Anjali Member December 11, 2020 at 12:42 PM ({ doInit: function(component, event, helper) { var action = component. get(‘c.getMyMap’); action. … var state = response. getState(); if (state === “SUCCESS”) { //set response value(map) in myMap attribute on component. component. set(‘v.myMap’,response. … }); $A. enqueueAction(action); Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me