function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Stéphane CStéphane C 

Documentation for the new lightning:map ?

Hey !

In the new Winter 19  I see a new tag called lightning:map that automatically show a google map. I wanted to try it on a test organisation, but I didn't find any documentation or clear example about how use it (how to add a marker for example). I have just achieved to display the map.

If any of you got something ! ^^
Best Answer chosen by Stéphane C
Raj VakatiRaj Vakati
URL for documenet 

​<YOUR_DOMINA>/docs/component-library/bundle/lightning:map/example

All Answers

Raj VakatiRaj Vakati
Event i am also waiting for same .. Looks like its not GA yet and its preview so not able to get the details .. 

Wait for the updates to component librarey .. may be couple of weeks 
Raj VakatiRaj Vakati
FOund it for you 
 
<aura:component>
    <!-- attributes -->
    <aura:attribute name="mapMarkers" type="Object"/>
    <aura:attribute name="zoomLevel" type="Integer" />

    <!-- handlers-->
    <aura:handler name="init" value="{! this }" action="{! c.init }"/>

    <!-- the map component -->
    <lightning:map 
        mapMarkers="{! v.mapMarkers }" 
        zoomLevel="{!v.zoomLevel}" />
</aura:component>
 
({
    init: function (cmp, event, helper) {
        cmp.set('v.mapMarkers', [
            {
                location: {
                    Street: '1600 Pennsylvania Ave NW',
                    City: 'Washington',
                    State: 'DC'
                },

                title: 'The White House',
                description: 'Landmark, historic home & office of the United States president, with tours for visitors.'
            }
        ]);
        cmp.set('v.zoomLevel', 16);
    }
})

 
Raj VakatiRaj Vakati
URL for documenet 

​<YOUR_DOMINA>/docs/component-library/bundle/lightning:map/example
This was selected as the best answer