Skip to content

kyungjoongo2/leaflet-make-cluster-group

Repository files navigation

This plug-in is a library that can use clusters in react-leaflet.

This is a working version of react-leaflet-markercluster in "react-leaflet": "2.6.3", "leaflet": "1.6.0"

sample

Install "react-leaflet": "2.6.3", "leaflet": "1.6.0"

usage

import MarkerClusterGroup from 'leaflet-make-cluster-group'

import 'leaflet-make-cluster-group/LeafletMakeCluster.css'

<MarkerClusterGroup>

                            <Marker

                                position={[37.2411, 127.1776]}
                                icon={cell_phone}

                            >
                                <Popup>용인 jessica.</Popup>
                            </Marker>
                            <Marker
                                position={[37.5665, 126.9780]}
                                icon={cell_phone}
                            >
                                <Popup>seoul WeWork.</Popup>
                            </Marker>
                            <Marker

                                position={[37.3947, 127.1112]}
                                icon={cell_phone}

                            >
                                <Popup>성남 고경준.</Popup>
                            </Marker>
</MarkerClusterGroup>

made with love ❤ ^^

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published