Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react leaflet marker onclick

<Marker
  position={[ 50, 30 ]}
  eventHandlers={{
    click: (e) => {
      console.log('Marker clicked', e)
    },
  }}
/>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #leaflet #marker #onclick
ADD COMMENT
Topic
Name
8+5 =