Topic on Extension talk:Maps

Cluster zoom not working

4
Summary by Jeroen De Dauw

Fixed in Map 7.12.0

71.202.172.3 (talkcontribs)

Brand new user...

I'm trying to get clustered points on a map of my city, but clusters never form -- even zoomed way out, I still have individual points.


What am I doing wrong?


Here is the markup


<display_map height="600px" service=leaflet geojson="TestBerkeley" markercluster=on>

  Berkeley, California~The city Berkeley~Berkeley is a really nice city

</display_map>


and here is the GeoJSON I made on GeoJson.io


{

    "type": "FeatureCollection",

    "features": [

        {

            "type": "Feature",

            "properties": {},

            "geometry": {

                "type": "Point",

                "coordinates": [

                    -122.27607250213622,

                    37.86702776467238

                ]

            }

        },

        {

            "type": "Feature",

            "properties": {},

            "geometry": {

                "type": "Point",

                "coordinates": [

                    -122.2758150100708,

                    37.867231038273935

                ]

            }

        },

        {

            "type": "Feature",

            "properties": {},

            "geometry": {

                "type": "Point",

                "coordinates": [

                    -122.27632999420166,

                    37.866824490510076

                ]

            }

        },

        {

            "type": "Feature",

            "properties": {},

            "geometry": {

                "type": "Point",

                "coordinates": [

                    -122.27422714233397,

                    37.87370162153638

                ]

            }

        },

        {

            "type": "Feature",

            "properties": {},

            "geometry": {

                "type": "Point",

                "coordinates": [

                    -122.28903293609619,

                    37.870584971740065

                ]

            }

        },

        {

            "type": "Feature",

            "properties": {},

            "geometry": {

                "type": "Point",

                "coordinates": [

                    -122.26929187774658,

                    37.85981118852664

                ]

            }

        }

    ]

}


71.202.172.3 (talkcontribs)

It appears to work if I don't use GeoJson.

Jeroen De Dauw (talkcontribs)

Indeed, clustering is not supported for data added via GeoJson.

Jeroen De Dauw (talkcontribs)