Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

How to add multiple map marker #1364

Open
amitsarkerr opened this issue Aug 27, 2022 · 1 comment
Open

How to add multiple map marker #1364

amitsarkerr opened this issue Aug 27, 2022 · 1 comment

Comments

@amitsarkerr
Copy link

Hello,
I want to use 3 different marker icons for 3 different locations. How I can do it?

@ashwin3197
Copy link

<ReactMapGL

      initialViewState={{
      
        zoom: 3.6,
        scrollZoom: false,
        boxZoom: false,
        doubleClickZoom: false,
      }}
      
      style={{ width: 600, height: 420 }}
      mapStyle="mapbox://styles/mapbox/streets-v10"
    >
  
      <Marker longitude="1233" latitude="324"></Marker>
    
      <Marker longitude="324" latitude="2442"></Marker> 

      <Marker longitude="324.23" latitude="133.33"></Marker>
   
    </ReactMapGL>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants