0

I want to have my map showing the info window with the listview hidden as shown in the diagram. As per the documentation the description should show on click the marker but it does not.

According to this discussion, no solution was proposed.

Any new info on this?

Thanks!

I am using the following code from the documentation.

 mapMarkers = [
        {
            location: {
                // Location Information
                City: 'San Francisco',
                Country: 'USA',
                PostalCode: '94105',
                State: 'CA',
                Street: '50 Fremont St',
            },

            // For onmarkerselect
            value: 'SF1',

            // Extra info for tile in list & info window
            icon: 'standard:account',
            title: 'Julies Kitchen', 
            description: 'This is a long description',
        },
        {
            location: {
                // Location Information
                City: 'San Francisco',
                Country: 'USA',
                PostalCode: '94105',
                State: 'CA',
                Street: '10 Fremont St.',
            },

            // For onmarkerselect
            value: 'SF2',

            // Extra info for tile in list
            
            title: 'Tender Greens', 
            description: 'This is a long description',
        },
    ];

    zoomLevel = 15;
    listView = 'hidden';

    selectedMarkerValue = 'SF1';

And this in the markup

 <lightning-map
                 map-markers={mapMarkers}
                 markers-title="Lunch Gems"
                 zoom-level={zoomLevel}
                 list-view={listView}
                 onmarkerselect={handleMarkerSelect}
                 selected-marker-value={selectedMarkerValue}>
                 </lightning-map>

The desired outcome is below.

map popup

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.