react-leaflet-d3 0.1.4 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license React
3
+ * react-dom.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
package/docs/App.jsx ADDED
@@ -0,0 +1,184 @@
1
+ import React, { useEffect, useRef, useState } from 'react';
2
+ import { createRoot } from 'react-dom/client';
3
+ import { MapContainer, TileLayer, useMap } from 'react-leaflet';
4
+
5
+ const randomCoordinates = [
6
+ [101.448205, 2.935403],
7
+ [139.16909728, 27.42601622],
8
+ [171.39610621, 35.19390889],
9
+ [73.8571851, 36.91240205],
10
+ [27.92490639, 35.33129399],
11
+ [21.59706067, -24.43763408],
12
+ [33.69895129, 28.65576877],
13
+ [98.02207926, -26.04906535],
14
+ [83.99359384, -11.10758864],
15
+ [60.95785004, 9.92946478],
16
+ [92.34819791, 31.25754795]
17
+ ];
18
+
19
+ function PingRequest({ request, pingRef }) {
20
+ const map = useMap();
21
+
22
+ useEffect(() => {
23
+ if (!request) return;
24
+
25
+ map.setView(
26
+ [request.latitude, request.longitude],
27
+ Math.min(map.getZoom(), 6)
28
+ );
29
+ pingRef.current.ping([request.longitude, request.latitude]);
30
+ }, [map, request, pingRef]);
31
+
32
+ return null;
33
+ }
34
+
35
+ function App() {
36
+ const [HexbinLayer, setHexbinLayer] = useState(null);
37
+ const [PingLayer, setPingLayer] = useState(null);
38
+ const [loadError, setLoadError] = useState('');
39
+ const [latitude, setLatitude] = useState('2.935403');
40
+ const [longitude, setLongitude] = useState('101.448205');
41
+ const [pingError, setPingError] = useState('');
42
+ const [pingRequest, setPingRequest] = useState(null);
43
+ const pingRef = useRef(null);
44
+
45
+ useEffect(() => {
46
+ import('react-leaflet-d3')
47
+ .then((module) => {
48
+ if (!module.HexbinLayer || !module.PingLayer) {
49
+ throw new Error('The package must export both HexbinLayer and PingLayer.');
50
+ }
51
+
52
+ setHexbinLayer(() => module.HexbinLayer);
53
+ setPingLayer(() => module.PingLayer);
54
+ })
55
+ .catch((error) => {
56
+ console.error('Failed to load react-leaflet-d3.', error);
57
+ setLoadError(error.message || String(error));
58
+ });
59
+ }, []);
60
+
61
+ const options = {
62
+ radius: 12,
63
+ opacity: 0.5,
64
+ duration: 200,
65
+ colorScaleExtent: [1, undefined],
66
+ radiusScaleExtent: [1, undefined],
67
+ colorDomain: null,
68
+ radiusDomain: null,
69
+ colorRange: ['#f7fbff', '#08306b'],
70
+ radiusRange: [5, 12],
71
+ pointerEvents: 'all'
72
+ };
73
+
74
+ const pingOptions = {
75
+ colorScaleExtent: [1, undefined],
76
+ radiusScaleExtent: [1, undefined],
77
+ colorRange: ['#f7fbff', '#ff0000'],
78
+ radiusRange: [3, 50]
79
+ };
80
+
81
+ function chooseRandomCoordinate() {
82
+ const [randomLongitude, randomLatitude] =
83
+ randomCoordinates[Math.floor(Math.random() * randomCoordinates.length)];
84
+ setLatitude(String(randomLatitude));
85
+ setLongitude(String(randomLongitude));
86
+ setPingError('');
87
+ }
88
+
89
+ function ping(event) {
90
+ event.preventDefault();
91
+
92
+ const parsedLatitude = Number(latitude);
93
+ const parsedLongitude = Number(longitude);
94
+ if (
95
+ latitude.trim() === '' ||
96
+ longitude.trim() === '' ||
97
+ !Number.isFinite(parsedLatitude) ||
98
+ parsedLatitude < -90 ||
99
+ parsedLatitude > 90 ||
100
+ !Number.isFinite(parsedLongitude) ||
101
+ parsedLongitude < -180 ||
102
+ parsedLongitude > 180
103
+ ) {
104
+ setPingError('Enter a latitude from -90 to 90 and a longitude from -180 to 180.');
105
+ return;
106
+ }
107
+
108
+ setPingError('');
109
+ setPingRequest({
110
+ latitude: parsedLatitude,
111
+ longitude: parsedLongitude
112
+ });
113
+ }
114
+
115
+ return (
116
+ <div>
117
+ <form className="ping-controls" onSubmit={ping}>
118
+ <div className="coordinate-fields">
119
+ <div className="coordinate-field">
120
+ <label htmlFor="latitude">Latitude</label>
121
+ <input
122
+ id="latitude"
123
+ type="number"
124
+ min="-90"
125
+ max="90"
126
+ step="any"
127
+ required
128
+ value={latitude}
129
+ onChange={(event) => setLatitude(event.target.value)}
130
+ />
131
+ </div>
132
+ <div className="coordinate-field">
133
+ <label htmlFor="longitude">Longitude</label>
134
+ <input
135
+ id="longitude"
136
+ type="number"
137
+ min="-180"
138
+ max="180"
139
+ step="any"
140
+ required
141
+ value={longitude}
142
+ onChange={(event) => setLongitude(event.target.value)}
143
+ />
144
+ </div>
145
+ </div>
146
+ <div className="ping-actions">
147
+ <button type="button" className="button-secondary" onClick={chooseRandomCoordinate}>
148
+ Random coordinate
149
+ </button>
150
+ <button type="submit" disabled={!PingLayer || Boolean(loadError)}>
151
+ Ping
152
+ </button>
153
+ </div>
154
+ {pingError && <p className="ping-error" role="alert">{pingError}</p>}
155
+ </form>
156
+ <div className="map-frame">
157
+ {loadError ? (
158
+ <div className="load-error" role="alert">
159
+ Unable to load the demo layers. Check that the package version in the import map is published and available. {loadError}
160
+ </div>
161
+ ) : HexbinLayer && PingLayer ? (
162
+ <MapContainer
163
+ center={[2.935403, 101.448205]}
164
+ zoom={10}
165
+ minZoom={1}
166
+ maxZoom={22}
167
+ >
168
+ <TileLayer
169
+ attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
170
+ url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
171
+ />
172
+ <HexbinLayer {...options} data={window.data} />
173
+ <PingLayer {...pingOptions} ref={pingRef} />
174
+ <PingRequest request={pingRequest} pingRef={pingRef} />
175
+ </MapContainer>
176
+ ) : (
177
+ <p role="status">Loading map...</p>
178
+ )}
179
+ </div>
180
+ </div>
181
+ );
182
+ }
183
+
184
+ createRoot(document.getElementById('container')).render(<App />);
package/docs/data.js ADDED
@@ -0,0 +1 @@
1
+ var data = {"type":"FeatureCollection","crs":{"type":"name","properties":{"name":"EPSG:4326"}},"features":[{"type":"Feature","id":1,"geometry":{"type":"Point","coordinates":[101.42543266259499,3.0025787832936639]},"properties":{"OBJECTID":1}},{"type":"Feature","id":2,"geometry":{"type":"Point","coordinates":[101.46500992020044,2.9883127702352756]},"properties":{"OBJECTID":2}},{"type":"Feature","id":3,"geometry":{"type":"Point","coordinates":[101.48239755382531,2.9946743949262387]},"properties":{"OBJECTID":3}},{"type":"Feature","id":4,"geometry":{"type":"Point","coordinates":[101.4241176296071,3.1696731620275047]},"properties":{"OBJECTID":4}},{"type":"Feature","id":5,"geometry":{"type":"Point","coordinates":[101.43150836993046,3.175659965626155]},"properties":{"OBJECTID":5}},{"type":"Feature","id":6,"geometry":{"type":"Point","coordinates":[101.45207603069254,3.1750647966103127]},"properties":{"OBJECTID":6}},{"type":"Feature","id":7,"geometry":{"type":"Point","coordinates":[101.47012851296343,3.053430579053392]},"properties":{"OBJECTID":7}},{"type":"Feature","id":8,"geometry":{"type":"Point","coordinates":[101.48008096001452,3.0589695390696319]},"properties":{"OBJECTID":8}},{"type":"Feature","id":9,"geometry":{"type":"Point","coordinates":[101.4850418424855,3.0582201268452667]},"properties":{"OBJECTID":9}},{"type":"Feature","id":10,"geometry":{"type":"Point","coordinates":[101.47012851296343,3.053430579053392]},"properties":{"OBJECTID":10}},{"type":"Feature","id":11,"geometry":{"type":"Point","coordinates":[101.48008096001452,3.0589695390696319]},"properties":{"OBJECTID":11}},{"type":"Feature","id":12,"geometry":{"type":"Point","coordinates":[101.4850418424855,3.0582201268452667]},"properties":{"OBJECTID":12}},{"type":"Feature","id":13,"geometry":{"type":"Point","coordinates":[101.48488750866029,3.0617611753989911]},"properties":{"OBJECTID":13}},{"type":"Feature","id":14,"geometry":{"type":"Point","coordinates":[101.48931709739487,3.0656776390559188]},"properties":{"OBJECTID":14}},{"type":"Feature","id":15,"geometry":{"type":"Point","coordinates":[101.48598272047781,3.0618363006258664]},"properties":{"OBJECTID":15}},{"type":"Feature","id":16,"geometry":{"type":"Point","coordinates":[101.47799042902064,3.0579346923449306]},"properties":{"OBJECTID":16}},{"type":"Feature","id":17,"geometry":{"type":"Point","coordinates":[101.75637818722825,2.6986727814670357]},"properties":{"OBJECTID":17}},{"type":"Feature","id":18,"geometry":{"type":"Point","coordinates":[101.75206732526507,2.6931705585064147]},"properties":{"OBJECTID":18}},{"type":"Feature","id":19,"geometry":{"type":"Point","coordinates":[101.75716190802329,2.6992493932575168]},"properties":{"OBJECTID":19}},{"type":"Feature","id":20,"geometry":{"type":"Point","coordinates":[101.75580597558788,2.700141887505759]},"properties":{"OBJECTID":20}},{"type":"Feature","id":21,"geometry":{"type":"Point","coordinates":[101.75206732526507,2.6931705585064147]},"properties":{"OBJECTID":21}},{"type":"Feature","id":22,"geometry":{"type":"Point","coordinates":[101.7503718210623,2.684867952674364]},"properties":{"OBJECTID":22}},{"type":"Feature","id":23,"geometry":{"type":"Point","coordinates":[101.50701443455996,2.8171692065182867]},"properties":{"OBJECTID":23}},{"type":"Feature","id":24,"geometry":{"type":"Point","coordinates":[101.44151696527332,2.7621161950705826]},"properties":{"OBJECTID":24}},{"type":"Feature","id":25,"geometry":{"type":"Point","coordinates":[101.49357803525774,2.8121251610431282]},"properties":{"OBJECTID":25}},{"type":"Feature","id":26,"geometry":{"type":"Point","coordinates":[101.45354547528365,2.8706781722688612]},"properties":{"OBJECTID":26}},{"type":"Feature","id":27,"geometry":{"type":"Point","coordinates":[101.49043004147887,2.9318585619039563]},"properties":{"OBJECTID":27}},{"type":"Feature","id":28,"geometry":{"type":"Point","coordinates":[101.48981148294025,2.7922925899538935]},"properties":{"OBJECTID":28}},{"type":"Feature","id":29,"geometry":{"type":"Point","coordinates":[101.64558918218424,3.4675654444632174]},"properties":{"OBJECTID":29}},{"type":"Feature","id":30,"geometry":{"type":"Point","coordinates":[101.63383479999895,3.4509438468786477]},"properties":{"OBJECTID":30}},{"type":"Feature","id":31,"geometry":{"type":"Point","coordinates":[101.79387791965826,3.092100656046088]},"properties":{"OBJECTID":31}},{"type":"Feature","id":32,"geometry":{"type":"Point","coordinates":[101.76237630218546,2.9754854586749397]},"properties":{"OBJECTID":32}},{"type":"Feature","id":33,"geometry":{"type":"Point","coordinates":[101.78186723277818,2.9011303390774268]},"properties":{"OBJECTID":33}},{"type":"Feature","id":34,"geometry":{"type":"Point","coordinates":[101.78067089462891,3.1292818208538251]},"properties":{"OBJECTID":34}},{"type":"Feature","id":35,"geometry":{"type":"Point","coordinates":[101.78197675227131,3.1273384840306293]},"properties":{"OBJECTID":35}},{"type":"Feature","id":36,"geometry":{"type":"Point","coordinates":[101.86316073815583,2.9196857972068329]},"properties":{"OBJECTID":36}},{"type":"Feature","id":37,"geometry":{"type":"Point","coordinates":[101.84742489079011,3.1636491887273688]},"properties":{"OBJECTID":37}},{"type":"Feature","id":38,"geometry":{"type":"Point","coordinates":[101.8347109111144,3.1349840670283999]},"properties":{"OBJECTID":38}},{"type":"Feature","id":39,"geometry":{"type":"Point","coordinates":[101.78814025533873,2.9606175921881652]},"properties":{"OBJECTID":39}},{"type":"Feature","id":40,"geometry":{"type":"Point","coordinates":[101.47205279081051,3.3188564301543177]},"properties":{"OBJECTID":40}},{"type":"Feature","id":41,"geometry":{"type":"Point","coordinates":[101.53644722064681,3.3127176466280166]},"properties":{"OBJECTID":41}},{"type":"Feature","id":42,"geometry":{"type":"Point","coordinates":[101.67027911643912,3.2377365816580022]},"properties":{"OBJECTID":42}},{"type":"Feature","id":43,"geometry":{"type":"Point","coordinates":[101.71846898374363,3.013154012073648]},"properties":{"OBJECTID":43}},{"type":"Feature","id":44,"geometry":{"type":"Point","coordinates":[101.53387656983702,3.1983617912346691]},"properties":{"OBJECTID":44}},{"type":"Feature","id":45,"geometry":{"type":"Point","coordinates":[101.58804037338888,3.0093165319646018]},"properties":{"OBJECTID":45}},{"type":"Feature","id":46,"geometry":{"type":"Point","coordinates":[101.52633493253954,3.1923897574386491]},"properties":{"OBJECTID":46}},{"type":"Feature","id":47,"geometry":{"type":"Point","coordinates":[101.51433705812906,3.2108234225991934]},"properties":{"OBJECTID":47}},{"type":"Feature","id":48,"geometry":{"type":"Point","coordinates":[101.60332388125836,3.0465634545466043]},"properties":{"OBJECTID":48}},{"type":"Feature","id":49,"geometry":{"type":"Point","coordinates":[101.55348814727736,3.0751458245672429]},"properties":{"OBJECTID":49}},{"type":"Feature","id":50,"geometry":{"type":"Point","coordinates":[101.55589087259514,3.0709548238581497]},"properties":{"OBJECTID":50}},{"type":"Feature","id":51,"geometry":{"type":"Point","coordinates":[101.70684006240161,3.011018492082187]},"properties":{"OBJECTID":51}},{"type":"Feature","id":52,"geometry":{"type":"Point","coordinates":[100.85671756594236,3.7859515333386562]},"properties":{"OBJECTID":52}},{"type":"Feature","id":53,"geometry":{"type":"Point","coordinates":[100.93851745467624,3.7288774083182221]},"properties":{"OBJECTID":53}},{"type":"Feature","id":54,"geometry":{"type":"Point","coordinates":[101.43789115140935,3.3939090328316643]},"properties":{"OBJECTID":54}},{"type":"Feature","id":55,"geometry":{"type":"Point","coordinates":[101.12243123612068,3.4745631417555418]},"properties":{"OBJECTID":55}},{"type":"Feature","id":56,"geometry":{"type":"Point","coordinates":[101.11953406269643,3.4842566983082941]},"properties":{"OBJECTID":56}},{"type":"Feature","id":57,"geometry":{"type":"Point","coordinates":[101.11410142590829,3.4845426492070319]},"properties":{"OBJECTID":57}},{"type":"Feature","id":58,"geometry":{"type":"Point","coordinates":[101.11499476815742,3.4883356221798838]},"properties":{"OBJECTID":58}},{"type":"Feature","id":59,"geometry":{"type":"Point","coordinates":[101.11801619976409,3.4871323832247576]},"properties":{"OBJECTID":59}},{"type":"Feature","id":60,"geometry":{"type":"Point","coordinates":[101.12226323306695,3.4800204011015339]},"properties":{"OBJECTID":60}},{"type":"Feature","id":61,"geometry":{"type":"Point","coordinates":[101.25450476442313,3.4264038465505489]},"properties":{"OBJECTID":61}},{"type":"Feature","id":62,"geometry":{"type":"Point","coordinates":[101.44972542132582,3.1361282696540305]},"properties":{"OBJECTID":62}},{"type":"Feature","id":63,"geometry":{"type":"Point","coordinates":[101.47434026487029,3.0255928813371842]},"properties":{"OBJECTID":63}},{"type":"Feature","id":64,"geometry":{"type":"Point","coordinates":[101.48488292308663,3.0617571315917922]},"properties":{"OBJECTID":64}},{"type":"Feature","id":65,"geometry":{"type":"Point","coordinates":[101.48488292308663,3.0617571315917922]},"properties":{"OBJECTID":65}},{"type":"Feature","id":66,"geometry":{"type":"Point","coordinates":[101.46760125141624,3.1555588463222506]},"properties":{"OBJECTID":66}},{"type":"Feature","id":67,"geometry":{"type":"Point","coordinates":[101.46707723034835,3.1548704996378469]},"properties":{"OBJECTID":67}},{"type":"Feature","id":68,"geometry":{"type":"Point","coordinates":[101.47318702281811,3.1506311690444311]},"properties":{"OBJECTID":68}},{"type":"Feature","id":69,"geometry":{"type":"Point","coordinates":[101.53436534909979,3.0336735188844837]},"properties":{"OBJECTID":69}},{"type":"Feature","id":70,"geometry":{"type":"Point","coordinates":[101.46500536110973,2.9883088230902426]},"properties":{"OBJECTID":70}},{"type":"Feature","id":71,"geometry":{"type":"Point","coordinates":[101.44461954705751,3.1361143316273346]},"properties":{"OBJECTID":71}},{"type":"Feature","id":72,"geometry":{"type":"Point","coordinates":[101.48488292308663,3.0617571315917922]},"properties":{"OBJECTID":72}},{"type":"Feature","id":73,"geometry":{"type":"Point","coordinates":[101.44972542132582,3.1361282696540305]},"properties":{"OBJECTID":73}},{"type":"Feature","id":74,"geometry":{"type":"Point","coordinates":[101.44461954705751,3.1361143316273346]},"properties":{"OBJECTID":74}},{"type":"Feature","id":75,"geometry":{"type":"Point","coordinates":[101.48488292308663,3.0617571315917922]},"properties":{"OBJECTID":75}},{"type":"Feature","id":76,"geometry":{"type":"Point","coordinates":[101.4823929721565,2.994670440623953]},"properties":{"OBJECTID":76}},{"type":"Feature","id":77,"geometry":{"type":"Point","coordinates":[101.46500536110973,2.9883088230902426]},"properties":{"OBJECTID":77}},{"type":"Feature","id":78,"geometry":{"type":"Point","coordinates":[101.39630162817306,3.005326247281082]},"properties":{"OBJECTID":78}},{"type":"Feature","id":79,"geometry":{"type":"Point","coordinates":[101.46547628321782,3.022086736955234]},"properties":{"OBJECTID":79}},{"type":"Feature","id":80,"geometry":{"type":"Point","coordinates":[101.36126091735737,3.1317261599747384]},"properties":{"OBJECTID":80}},{"type":"Feature","id":81,"geometry":{"type":"Point","coordinates":[101.48383541174084,2.9941707153964479]},"properties":{"OBJECTID":81}},{"type":"Feature","id":82,"geometry":{"type":"Point","coordinates":[101.46409699560114,2.9912759886911435]},"properties":{"OBJECTID":82}},{"type":"Feature","id":83,"geometry":{"type":"Point","coordinates":[101.47615705535196,2.9790612463613191]},"properties":{"OBJECTID":83}},{"type":"Feature","id":84,"geometry":{"type":"Point","coordinates":[101.50355389953117,2.9948782107818608]},"properties":{"OBJECTID":84}},{"type":"Feature","id":85,"geometry":{"type":"Point","coordinates":[101.5222897918128,3.0036609127955893]},"properties":{"OBJECTID":85}},{"type":"Feature","id":86,"geometry":{"type":"Point","coordinates":[101.55552421510532,3.0744688599602457]},"properties":{"OBJECTID":86}},{"type":"Feature","id":87,"geometry":{"type":"Point","coordinates":[101.55319524312891,3.07405651226266]},"properties":{"OBJECTID":87}},{"type":"Feature","id":88,"geometry":{"type":"Point","coordinates":[101.55818751841765,3.0777460358729312]},"properties":{"OBJECTID":88}},{"type":"Feature","id":89,"geometry":{"type":"Point","coordinates":[101.71830789861568,3.0126093553377258]},"properties":{"OBJECTID":89}},{"type":"Feature","id":90,"geometry":{"type":"Point","coordinates":[101.60331913878656,3.0465594320964149]},"properties":{"OBJECTID":90}},{"type":"Feature","id":91,"geometry":{"type":"Point","coordinates":[101.55301724429511,3.0750986898873784]},"properties":{"OBJECTID":91}},{"type":"Feature","id":92,"geometry":{"type":"Point","coordinates":[101.59547157432249,3.0242808500865497]},"properties":{"OBJECTID":92}},{"type":"Feature","id":93,"geometry":{"type":"Point","coordinates":[101.70643669443952,3.0103178154592136]},"properties":{"OBJECTID":93}},{"type":"Feature","id":94,"geometry":{"type":"Point","coordinates":[101.70748320976438,3.0186632421728046]},"properties":{"OBJECTID":94}},{"type":"Feature","id":95,"geometry":{"type":"Point","coordinates":[101.70775296857417,3.0132584885940137]},"properties":{"OBJECTID":95}},{"type":"Feature","id":96,"geometry":{"type":"Point","coordinates":[101.71636676988638,3.0229784816631202]},"properties":{"OBJECTID":96}},{"type":"Feature","id":97,"geometry":{"type":"Point","coordinates":[101.55581597480722,2.9942691501629168]},"properties":{"OBJECTID":97}},{"type":"Feature","id":98,"geometry":{"type":"Point","coordinates":[101.58699452223536,2.9810416176524241]},"properties":{"OBJECTID":98}},{"type":"Feature","id":99,"geometry":{"type":"Point","coordinates":[101.58878908483435,3.0105376418450644]},"properties":{"OBJECTID":99}},{"type":"Feature","id":100,"geometry":{"type":"Point","coordinates":[101.58165422488877,2.9946714564664205]},"properties":{"OBJECTID":100}},{"type":"Feature","id":101,"geometry":{"type":"Point","coordinates":[101.532837941046,3.1623020299291413]},"properties":{"OBJECTID":101}},{"type":"Feature","id":102,"geometry":{"type":"Point","coordinates":[101.59193085355574,3.0866472828995741]},"properties":{"OBJECTID":102}},{"type":"Feature","id":103,"geometry":{"type":"Point","coordinates":[101.70388967081412,3.0384391492647613]},"properties":{"OBJECTID":103}},{"type":"Feature","id":104,"geometry":{"type":"Point","coordinates":[101.55552421510532,3.0744688599602457]},"properties":{"OBJECTID":104}},{"type":"Feature","id":105,"geometry":{"type":"Point","coordinates":[101.55319524312891,3.07405651226266]},"properties":{"OBJECTID":105}},{"type":"Feature","id":106,"geometry":{"type":"Point","coordinates":[101.55818751841765,3.0777460358729312]},"properties":{"OBJECTID":106}},{"type":"Feature","id":107,"geometry":{"type":"Point","coordinates":[101.71830789861568,3.0126093553377258]},"properties":{"OBJECTID":107}},{"type":"Feature","id":108,"geometry":{"type":"Point","coordinates":[101.60331913878656,3.0465594320964149]},"properties":{"OBJECTID":108}},{"type":"Feature","id":109,"geometry":{"type":"Point","coordinates":[101.55301724429511,3.0750986898873784]},"properties":{"OBJECTID":109}},{"type":"Feature","id":110,"geometry":{"type":"Point","coordinates":[101.59547157432249,3.0242808500865497]},"properties":{"OBJECTID":110}},{"type":"Feature","id":111,"geometry":{"type":"Point","coordinates":[101.70643669443952,3.0103178154592136]},"properties":{"OBJECTID":111}},{"type":"Feature","id":112,"geometry":{"type":"Point","coordinates":[101.70748320976438,3.0186632421728046]},"properties":{"OBJECTID":112}},{"type":"Feature","id":113,"geometry":{"type":"Point","coordinates":[101.70775296857417,3.0132584885940137]},"properties":{"OBJECTID":113}},{"type":"Feature","id":114,"geometry":{"type":"Point","coordinates":[101.71636676988638,3.0229784816631202]},"properties":{"OBJECTID":114}},{"type":"Feature","id":115,"geometry":{"type":"Point","coordinates":[101.55581597480722,2.9942691501629168]},"properties":{"OBJECTID":115}},{"type":"Feature","id":116,"geometry":{"type":"Point","coordinates":[101.58699452223536,2.9810416176524241]},"properties":{"OBJECTID":116}},{"type":"Feature","id":117,"geometry":{"type":"Point","coordinates":[101.58878908483435,3.0105376418450644]},"properties":{"OBJECTID":117}},{"type":"Feature","id":118,"geometry":{"type":"Point","coordinates":[101.58165422488877,2.9946714564664205]},"properties":{"OBJECTID":118}},{"type":"Feature","id":119,"geometry":{"type":"Point","coordinates":[101.532837941046,3.1623020299291413]},"properties":{"OBJECTID":119}},{"type":"Feature","id":120,"geometry":{"type":"Point","coordinates":[101.59193085355574,3.0866472828995741]},"properties":{"OBJECTID":120}},{"type":"Feature","id":121,"geometry":{"type":"Point","coordinates":[101.70388967081412,3.0384391492647613]},"properties":{"OBJECTID":121}},{"type":"Feature","id":122,"geometry":{"type":"Point","coordinates":[101.56025986637823,3.0761605191125474]},"properties":{"OBJECTID":122}},{"type":"Feature","id":123,"geometry":{"type":"Point","coordinates":[101.58761049361031,3.0019862397765245]},"properties":{"OBJECTID":123}},{"type":"Feature","id":124,"geometry":{"type":"Point","coordinates":[101.58355326659846,2.9878999243949371]},"properties":{"OBJECTID":124}},{"type":"Feature","id":125,"geometry":{"type":"Point","coordinates":[101.480965368333,3.02358011060665]},"properties":{"OBJECTID":125}},{"type":"Feature","id":126,"geometry":{"type":"Point","coordinates":[101.54702394923392,3.0347101877335958]},"properties":{"OBJECTID":126}},{"type":"Feature","id":127,"geometry":{"type":"Point","coordinates":[101.72214767849366,2.8905929449129575]},"properties":{"OBJECTID":127}},{"type":"Feature","id":128,"geometry":{"type":"Point","coordinates":[101.75624709171682,2.8922060983176094]},"properties":{"OBJECTID":128}},{"type":"Feature","id":129,"geometry":{"type":"Point","coordinates":[101.73836883673542,2.8472292364023213]},"properties":{"OBJECTID":129}},{"type":"Feature","id":130,"geometry":{"type":"Point","coordinates":[101.74998118275819,2.7889669200398082]},"properties":{"OBJECTID":130}},{"type":"Feature","id":131,"geometry":{"type":"Point","coordinates":[101.75138525458371,2.7801422394233644]},"properties":{"OBJECTID":131}},{"type":"Feature","id":132,"geometry":{"type":"Point","coordinates":[101.72214767849366,2.8905929449129575]},"properties":{"OBJECTID":132}},{"type":"Feature","id":133,"geometry":{"type":"Point","coordinates":[101.73311862760126,2.8920770080710869]},"properties":{"OBJECTID":133}},{"type":"Feature","id":134,"geometry":{"type":"Point","coordinates":[101.63383683301576,3.4510038783807677]},"properties":{"OBJECTID":134}},{"type":"Feature","id":135,"geometry":{"type":"Point","coordinates":[101.42928219274391,3.7433837977181099]},"properties":{"OBJECTID":135}},{"type":"Feature","id":136,"geometry":{"type":"Point","coordinates":[101.65988143722097,3.4648124641907727]},"properties":{"OBJECTID":136}},{"type":"Feature","id":137,"geometry":{"type":"Point","coordinates":[101.6710124595303,3.2534474557761404]},"properties":{"OBJECTID":137}},{"type":"Feature","id":138,"geometry":{"type":"Point","coordinates":[101.72508995010961,3.2450109724329659]},"properties":{"OBJECTID":138}},{"type":"Feature","id":139,"geometry":{"type":"Point","coordinates":[101.66989426449909,3.2490545493977701]},"properties":{"OBJECTID":139}},{"type":"Feature","id":140,"geometry":{"type":"Point","coordinates":[101.53909665204131,3.311881310780509]},"properties":{"OBJECTID":140}},{"type":"Feature","id":141,"geometry":{"type":"Point","coordinates":[101.57587463615762,3.3212194102313823]},"properties":{"OBJECTID":141}},{"type":"Feature","id":142,"geometry":{"type":"Point","coordinates":[101.53909665204131,3.311881310780509]},"properties":{"OBJECTID":142}},{"type":"Feature","id":143,"geometry":{"type":"Point","coordinates":[101.57587463615762,3.3212194102313823]},"properties":{"OBJECTID":143}},{"type":"Feature","id":144,"geometry":{"type":"Point","coordinates":[101.53245177687606,3.3170048914219681]},"properties":{"OBJECTID":144}},{"type":"Feature","id":145,"geometry":{"type":"Point","coordinates":[101.57587463615762,3.3212194102313823]},"properties":{"OBJECTID":145}},{"type":"Feature","id":146,"geometry":{"type":"Point","coordinates":[101.53245177687606,3.3170048914219681]},"properties":{"OBJECTID":146}},{"type":"Feature","id":147,"geometry":{"type":"Point","coordinates":[101.57587463615762,3.3212194102313823]},"properties":{"OBJECTID":147}},{"type":"Feature","id":148,"geometry":{"type":"Point","coordinates":[101.71589620060635,3.2404355387451598]},"properties":{"OBJECTID":148}},{"type":"Feature","id":149,"geometry":{"type":"Point","coordinates":[101.51347744493916,3.2842204647067534]},"properties":{"OBJECTID":149}},{"type":"Feature","id":150,"geometry":{"type":"Point","coordinates":[101.73769799076872,3.2511762935945026]},"properties":{"OBJECTID":150}},{"type":"Feature","id":151,"geometry":{"type":"Point","coordinates":[101.51347744493916,3.2842204647067534]},"properties":{"OBJECTID":151}},{"type":"Feature","id":152,"geometry":{"type":"Point","coordinates":[101.68158309862818,3.260171054002281]},"properties":{"OBJECTID":152}},{"type":"Feature","id":153,"geometry":{"type":"Point","coordinates":[101.58875795765675,3.3084260492109889]},"properties":{"OBJECTID":153}},{"type":"Feature","id":154,"geometry":{"type":"Point","coordinates":[101.56121783670241,3.3204991928135801]},"properties":{"OBJECTID":154}},{"type":"Feature","id":155,"geometry":{"type":"Point","coordinates":[101.6810323367269,3.2465076747290817]},"properties":{"OBJECTID":155}},{"type":"Feature","id":156,"geometry":{"type":"Point","coordinates":[101.66554611419996,3.2508722485048374]},"properties":{"OBJECTID":156}},{"type":"Feature","id":157,"geometry":{"type":"Point","coordinates":[101.50427919256842,2.9085245522655776]},"properties":{"OBJECTID":157}},{"type":"Feature","id":158,"geometry":{"type":"Point","coordinates":[101.48348781514839,2.9206410049655815]},"properties":{"OBJECTID":158}},{"type":"Feature","id":159,"geometry":{"type":"Point","coordinates":[101.49269584804544,2.8150843048600191]},"properties":{"OBJECTID":159}},{"type":"Feature","id":160,"geometry":{"type":"Point","coordinates":[101.49274600786772,2.8150102579486882]},"properties":{"OBJECTID":160}},{"type":"Feature","id":161,"geometry":{"type":"Point","coordinates":[101.66211841384194,2.8186404663624485]},"properties":{"OBJECTID":161}},{"type":"Feature","id":162,"geometry":{"type":"Point","coordinates":[101.50335629709379,2.8143588824293104]},"properties":{"OBJECTID":162}},{"type":"Feature","id":163,"geometry":{"type":"Point","coordinates":[101.50266187735517,2.8128959975927139]},"properties":{"OBJECTID":163}},{"type":"Feature","id":164,"geometry":{"type":"Point","coordinates":[101.77537837377602,3.0483063335599105]},"properties":{"OBJECTID":164}},{"type":"Feature","id":165,"geometry":{"type":"Point","coordinates":[101.79154033546173,2.9919672008850848]},"properties":{"OBJECTID":165}},{"type":"Feature","id":166,"geometry":{"type":"Point","coordinates":[101.7932394026669,3.0909930933160266]},"properties":{"OBJECTID":166}},{"type":"Feature","id":167,"geometry":{"type":"Point","coordinates":[101.79426184131181,3.090294804353233]},"properties":{"OBJECTID":167}},{"type":"Feature","id":168,"geometry":{"type":"Point","coordinates":[101.79010954168028,2.9055840734607341]},"properties":{"OBJECTID":168}},{"type":"Feature","id":169,"geometry":{"type":"Point","coordinates":[101.77453877937479,2.9649620456565535]},"properties":{"OBJECTID":169}},{"type":"Feature","id":170,"geometry":{"type":"Point","coordinates":[101.79154033546173,2.9919672008850848]},"properties":{"OBJECTID":170}},{"type":"Feature","id":171,"geometry":{"type":"Point","coordinates":[101.79219851144049,3.0046626274620145]},"properties":{"OBJECTID":171}},{"type":"Feature","id":172,"geometry":{"type":"Point","coordinates":[101.79430553223601,3.0903452251778569]},"properties":{"OBJECTID":172}},{"type":"Feature","id":173,"geometry":{"type":"Point","coordinates":[101.79154033546173,2.9919672008850848]},"properties":{"OBJECTID":173}},{"type":"Feature","id":174,"geometry":{"type":"Point","coordinates":[101.43949218884725,3.1362998448396864]},"properties":{"OBJECTID":174}},{"type":"Feature","id":175,"geometry":{"type":"Point","coordinates":[101.40939057560146,3.0091789725562044]},"properties":{"OBJECTID":175}},{"type":"Feature","id":176,"geometry":{"type":"Point","coordinates":[101.47263295083745,2.9929941767474642]},"properties":{"OBJECTID":176}},{"type":"Feature","id":177,"geometry":{"type":"Point","coordinates":[101.48383541174084,2.9941707153964479]},"properties":{"OBJECTID":177}},{"type":"Feature","id":178,"geometry":{"type":"Point","coordinates":[101.47798585248577,3.0579306530275119]},"properties":{"OBJECTID":178}},{"type":"Feature","id":179,"geometry":{"type":"Point","coordinates":[101.43422841149008,3.0265953938319261]},"properties":{"OBJECTID":179}},{"type":"Feature","id":180,"geometry":{"type":"Point","coordinates":[101.5222897918128,3.0036609127955893]},"properties":{"OBJECTID":180}},{"type":"Feature","id":181,"geometry":{"type":"Point","coordinates":[101.49019074142055,3.0479768495322102]},"properties":{"OBJECTID":181}},{"type":"Feature","id":182,"geometry":{"type":"Point","coordinates":[101.4110781672542,3.0280954542695575]},"properties":{"OBJECTID":182}},{"type":"Feature","id":183,"geometry":{"type":"Point","coordinates":[101.53369752511854,2.9716345372269313]},"properties":{"OBJECTID":183}},{"type":"Feature","id":184,"geometry":{"type":"Point","coordinates":[101.46648091347222,3.049543561758743]},"properties":{"OBJECTID":184}},{"type":"Feature","id":185,"geometry":{"type":"Point","coordinates":[101.47012394727298,3.053426546030193]},"properties":{"OBJECTID":185}},{"type":"Feature","id":186,"geometry":{"type":"Point","coordinates":[101.43150385422724,3.1756557723813374]},"properties":{"OBJECTID":186}},{"type":"Feature","id":187,"geometry":{"type":"Point","coordinates":[101.46409699560114,2.9912759886911435]},"properties":{"OBJECTID":187}},{"type":"Feature","id":188,"geometry":{"type":"Point","coordinates":[101.48597813310062,3.0618322577280233]},"properties":{"OBJECTID":188}},{"type":"Feature","id":189,"geometry":{"type":"Point","coordinates":[101.43597806227534,3.0427312077975168]},"properties":{"OBJECTID":189}},{"type":"Feature","id":190,"geometry":{"type":"Point","coordinates":[101.49390222521748,3.0135923230464274]},"properties":{"OBJECTID":190}},{"type":"Feature","id":191,"geometry":{"type":"Point","coordinates":[101.53434546761096,3.033652193584695]},"properties":{"OBJECTID":191}},{"type":"Feature","id":192,"geometry":{"type":"Point","coordinates":[101.43949218884725,3.1362998448396864]},"properties":{"OBJECTID":192}},{"type":"Feature","id":193,"geometry":{"type":"Point","coordinates":[101.46708653296218,3.1549674786718374]},"properties":{"OBJECTID":193}},{"type":"Feature","id":194,"geometry":{"type":"Point","coordinates":[101.48867971463245,3.0346702776910157]},"properties":{"OBJECTID":194}},{"type":"Feature","id":195,"geometry":{"type":"Point","coordinates":[101.43383850816221,3.0439213419934998]},"properties":{"OBJECTID":195}},{"type":"Feature","id":196,"geometry":{"type":"Point","coordinates":[101.5222897918128,3.0036609127955893]},"properties":{"OBJECTID":196}},{"type":"Feature","id":197,"geometry":{"type":"Point","coordinates":[101.45910918994352,3.0297916328869769]},"properties":{"OBJECTID":197}},{"type":"Feature","id":198,"geometry":{"type":"Point","coordinates":[101.44532175249169,3.0142715461787892]},"properties":{"OBJECTID":198}},{"type":"Feature","id":199,"geometry":{"type":"Point","coordinates":[101.46147321559258,3.0567971567070202]},"properties":{"OBJECTID":199}},{"type":"Feature","id":200,"geometry":{"type":"Point","coordinates":[101.43383850816221,3.0439213419934998]},"properties":{"OBJECTID":200}},{"type":"Feature","id":201,"geometry":{"type":"Point","coordinates":[101.46147321559258,3.0567971567070202]},"properties":{"OBJECTID":201}},{"type":"Feature","id":202,"geometry":{"type":"Point","coordinates":[101.48597813310062,3.0618322577280233]},"properties":{"OBJECTID":202}},{"type":"Feature","id":203,"geometry":{"type":"Point","coordinates":[101.48931250548996,3.0656735916523687]},"properties":{"OBJECTID":203}},{"type":"Feature","id":204,"geometry":{"type":"Point","coordinates":[101.41509349143443,3.0798614970211511]},"properties":{"OBJECTID":204}},{"type":"Feature","id":205,"geometry":{"type":"Point","coordinates":[101.41524131362776,3.0839852266340602]},"properties":{"OBJECTID":205}},{"type":"Feature","id":206,"geometry":{"type":"Point","coordinates":[101.37870881945129,3.0974471861113071]},"properties":{"OBJECTID":206}},{"type":"Feature","id":207,"geometry":{"type":"Point","coordinates":[101.43949218884725,3.1362998448396864]},"properties":{"OBJECTID":207}},{"type":"Feature","id":208,"geometry":{"type":"Point","coordinates":[101.39855114104991,3.161227435100165]},"properties":{"OBJECTID":208}},{"type":"Feature","id":209,"geometry":{"type":"Point","coordinates":[101.3877716062667,3.1473726417055574]},"properties":{"OBJECTID":209}},{"type":"Feature","id":210,"geometry":{"type":"Point","coordinates":[101.43388834502184,3.0695561928069846]},"properties":{"OBJECTID":210}},{"type":"Feature","id":211,"geometry":{"type":"Point","coordinates":[101.43815255043027,3.1350452645040412]},"properties":{"OBJECTID":211}},{"type":"Feature","id":212,"geometry":{"type":"Point","coordinates":[101.43464637794304,3.1334410755966915]},"properties":{"OBJECTID":212}},{"type":"Feature","id":213,"geometry":{"type":"Point","coordinates":[101.44003280593654,3.0318079900691188]},"properties":{"OBJECTID":213}},{"type":"Feature","id":214,"geometry":{"type":"Point","coordinates":[101.47615705535196,2.9790612463613191]},"properties":{"OBJECTID":214}},{"type":"Feature","id":215,"geometry":{"type":"Point","coordinates":[101.44003280593654,3.0318079900691188]},"properties":{"OBJECTID":215}},{"type":"Feature","id":216,"geometry":{"type":"Point","coordinates":[101.38358508836212,3.0310225256042971]},"properties":{"OBJECTID":216}},{"type":"Feature","id":217,"geometry":{"type":"Point","coordinates":[101.43383850816221,3.0439213419934998]},"properties":{"OBJECTID":217}},{"type":"Feature","id":218,"geometry":{"type":"Point","coordinates":[101.48597813310062,3.0618322577280233]},"properties":{"OBJECTID":218}},{"type":"Feature","id":219,"geometry":{"type":"Point","coordinates":[101.43949218884725,3.1362998448396864]},"properties":{"OBJECTID":219}},{"type":"Feature","id":220,"geometry":{"type":"Point","coordinates":[101.53434546761096,3.033652193584695]},"properties":{"OBJECTID":220}},{"type":"Feature","id":221,"geometry":{"type":"Point","coordinates":[101.47615705535196,2.9790612463613191]},"properties":{"OBJECTID":221}},{"type":"Feature","id":222,"geometry":{"type":"Point","coordinates":[101.5222897918128,3.0036609127955893]},"properties":{"OBJECTID":222}},{"type":"Feature","id":223,"geometry":{"type":"Point","coordinates":[101.50355389953117,2.9948782107818608]},"properties":{"OBJECTID":223}},{"type":"Feature","id":224,"geometry":{"type":"Point","coordinates":[101.53434546761096,3.033652193584695]},"properties":{"OBJECTID":224}},{"type":"Feature","id":225,"geometry":{"type":"Point","coordinates":[101.420841893342,3.0673069594281039]},"properties":{"OBJECTID":225}},{"type":"Feature","id":226,"geometry":{"type":"Point","coordinates":[101.36048013846725,3.1291650957605559]},"properties":{"OBJECTID":226}},{"type":"Feature","id":227,"geometry":{"type":"Point","coordinates":[101.4241131238567,3.1696689759835097]},"properties":{"OBJECTID":227}},{"type":"Feature","id":228,"geometry":{"type":"Point","coordinates":[101.40305212659885,3.1820296567605415]},"properties":{"OBJECTID":228}},{"type":"Feature","id":229,"geometry":{"type":"Point","coordinates":[101.47615705535196,2.9790612463613191]},"properties":{"OBJECTID":229}},{"type":"Feature","id":230,"geometry":{"type":"Point","coordinates":[101.47263295083745,2.9929941767474642]},"properties":{"OBJECTID":230}},{"type":"Feature","id":231,"geometry":{"type":"Point","coordinates":[101.43815255043027,3.1350452645040412]},"properties":{"OBJECTID":231}},{"type":"Feature","id":232,"geometry":{"type":"Point","coordinates":[101.43464637794304,3.1334410755966915]},"properties":{"OBJECTID":232}},{"type":"Feature","id":233,"geometry":{"type":"Point","coordinates":[101.48597813310062,3.0618322577280233]},"properties":{"OBJECTID":233}},{"type":"Feature","id":234,"geometry":{"type":"Point","coordinates":[101.47012394727298,3.053426546030193]},"properties":{"OBJECTID":234}},{"type":"Feature","id":235,"geometry":{"type":"Point","coordinates":[101.47798585248577,3.0579306530275119]},"properties":{"OBJECTID":235}},{"type":"Feature","id":236,"geometry":{"type":"Point","coordinates":[101.47012394727298,3.053426546030193]},"properties":{"OBJECTID":236}},{"type":"Feature","id":237,"geometry":{"type":"Point","coordinates":[101.49019074142055,3.0479768495322102]},"properties":{"OBJECTID":237}},{"type":"Feature","id":238,"geometry":{"type":"Point","coordinates":[101.53369752511854,2.9716345372269313]},"properties":{"OBJECTID":238}},{"type":"Feature","id":239,"geometry":{"type":"Point","coordinates":[101.47263295083745,2.9929941767474642]},"properties":{"OBJECTID":239}},{"type":"Feature","id":240,"geometry":{"type":"Point","coordinates":[101.48383541174084,2.9941707153964479]},"properties":{"OBJECTID":240}},{"type":"Feature","id":241,"geometry":{"type":"Point","coordinates":[101.46409699560114,2.9912759886911435]},"properties":{"OBJECTID":241}},{"type":"Feature","id":242,"geometry":{"type":"Point","coordinates":[101.5222897918128,3.0036609127955893]},"properties":{"OBJECTID":242}},{"type":"Feature","id":243,"geometry":{"type":"Point","coordinates":[101.43949218884725,3.1362998448396864]},"properties":{"OBJECTID":243}},{"type":"Feature","id":244,"geometry":{"type":"Point","coordinates":[101.4241131238567,3.1696689759835097]},"properties":{"OBJECTID":244}},{"type":"Feature","id":245,"geometry":{"type":"Point","coordinates":[101.5222897918128,3.0036609127955893]},"properties":{"OBJECTID":245}},{"type":"Feature","id":246,"geometry":{"type":"Point","coordinates":[101.47012394727298,3.053426546030193]},"properties":{"OBJECTID":246}},{"type":"Feature","id":247,"geometry":{"type":"Point","coordinates":[101.47798585248577,3.0579306530275119]},"properties":{"OBJECTID":247}},{"type":"Feature","id":248,"geometry":{"type":"Point","coordinates":[101.55695434487092,3.0647436541669939]},"properties":{"OBJECTID":248}},{"type":"Feature","id":249,"geometry":{"type":"Point","coordinates":[101.55992699297126,3.0757783401291197]},"properties":{"OBJECTID":249}},{"type":"Feature","id":250,"geometry":{"type":"Point","coordinates":[101.5288453779784,3.319298283810983]},"properties":{"OBJECTID":250}},{"type":"Feature","id":251,"geometry":{"type":"Point","coordinates":[101.7163194866574,3.0235498639889]},"properties":{"OBJECTID":251}},{"type":"Feature","id":252,"geometry":{"type":"Point","coordinates":[101.5326061301684,3.1590316737761781]},"properties":{"OBJECTID":252}},{"type":"Feature","id":253,"geometry":{"type":"Point","coordinates":[101.56118028073787,3.075150677426338]},"properties":{"OBJECTID":253}},{"type":"Feature","id":254,"geometry":{"type":"Point","coordinates":[101.52739646512501,3.1919733854591779]},"properties":{"OBJECTID":254}},{"type":"Feature","id":255,"geometry":{"type":"Point","coordinates":[101.5591211619772,3.0733671877571949]},"properties":{"OBJECTID":255}},{"type":"Feature","id":256,"geometry":{"type":"Point","coordinates":[101.46709784591621,3.1549380559856157]},"properties":{"OBJECTID":256}},{"type":"Feature","id":257,"geometry":{"type":"Point","coordinates":[101.60707131918264,3.0693980807227002]},"properties":{"OBJECTID":257}},{"type":"Feature","id":258,"geometry":{"type":"Point","coordinates":[101.7047776168921,3.0258801308467378]},"properties":{"OBJECTID":258}},{"type":"Feature","id":259,"geometry":{"type":"Point","coordinates":[101.5448635058822,3.0862436133257471]},"properties":{"OBJECTID":259}},{"type":"Feature","id":260,"geometry":{"type":"Point","coordinates":[101.55894800782153,3.0777572919650744]},"properties":{"OBJECTID":260}},{"type":"Feature","id":261,"geometry":{"type":"Point","coordinates":[101.48923407250989,3.0656341461948564]},"properties":{"OBJECTID":261}},{"type":"Feature","id":262,"geometry":{"type":"Point","coordinates":[101.44598554553521,3.2295468198310986]},"properties":{"OBJECTID":262}},{"type":"Feature","id":263,"geometry":{"type":"Point","coordinates":[101.35953378468345,3.2639262357875811]},"properties":{"OBJECTID":263}},{"type":"Feature","id":264,"geometry":{"type":"Point","coordinates":[101.46228169145138,3.2608516513988608]},"properties":{"OBJECTID":264}},{"type":"Feature","id":266,"geometry":{"type":"Point","coordinates":[101.35953378468345,3.2639262357875811]},"properties":{"OBJECTID":266}},{"type":"Feature","id":267,"geometry":{"type":"Point","coordinates":[101.46228169145138,3.2608516513988608]},"properties":{"OBJECTID":267}},{"type":"Feature","id":268,"geometry":{"type":"Point","coordinates":[101.7563732435729,2.698669218095723]},"properties":{"OBJECTID":268}},{"type":"Feature","id":269,"geometry":{"type":"Point","coordinates":[101.75044532967802,2.7694155208277791]},"properties":{"OBJECTID":269}},{"type":"Feature","id":270,"geometry":{"type":"Point","coordinates":[101.7511016598492,2.7536808511496167]},"properties":{"OBJECTID":270}},{"type":"Feature","id":271,"geometry":{"type":"Point","coordinates":[101.67614455753551,2.8456821781100774]},"properties":{"OBJECTID":271}},{"type":"Feature","id":272,"geometry":{"type":"Point","coordinates":[101.69640147359996,2.8704123223722617]},"properties":{"OBJECTID":272}},{"type":"Feature","id":273,"geometry":{"type":"Point","coordinates":[101.6364268895224,2.9624486477164611]},"properties":{"OBJECTID":273}},{"type":"Feature","id":274,"geometry":{"type":"Point","coordinates":[101.74250872958392,2.7966237269394685]},"properties":{"OBJECTID":274}},{"type":"Feature","id":275,"geometry":{"type":"Point","coordinates":[101.6796705173263,2.6687096486418764]},"properties":{"OBJECTID":275}},{"type":"Feature","id":276,"geometry":{"type":"Point","coordinates":[101.72069797104446,2.6423151404750107]},"properties":{"OBJECTID":276}},{"type":"Feature","id":277,"geometry":{"type":"Point","coordinates":[101.6364268895224,2.9624486477164611]},"properties":{"OBJECTID":277}},{"type":"Feature","id":278,"geometry":{"type":"Point","coordinates":[101.72940324275638,2.9101524684467086]},"properties":{"OBJECTID":278}},{"type":"Feature","id":279,"geometry":{"type":"Point","coordinates":[101.75044532967802,2.7694155208277791]},"properties":{"OBJECTID":279}},{"type":"Feature","id":280,"geometry":{"type":"Point","coordinates":[101.7563732435729,2.698669218095723]},"properties":{"OBJECTID":280}},{"type":"Feature","id":281,"geometry":{"type":"Point","coordinates":[101.7511016598492,2.7536808511496167]},"properties":{"OBJECTID":281}},{"type":"Feature","id":282,"geometry":{"type":"Point","coordinates":[101.75044532967802,2.7694155208277791]},"properties":{"OBJECTID":282}},{"type":"Feature","id":283,"geometry":{"type":"Point","coordinates":[101.7563732435729,2.698669218095723]},"properties":{"OBJECTID":283}},{"type":"Feature","id":284,"geometry":{"type":"Point","coordinates":[101.7511016598492,2.7536808511496167]},"properties":{"OBJECTID":284}},{"type":"Feature","id":285,"geometry":{"type":"Point","coordinates":[101.75044532967802,2.7694155208277791]},"properties":{"OBJECTID":285}},{"type":"Feature","id":286,"geometry":{"type":"Point","coordinates":[101.75037216977979,2.7834246691056954]},"properties":{"OBJECTID":286}},{"type":"Feature","id":287,"geometry":{"type":"Point","coordinates":[101.75237387892108,2.7789270609452799]},"properties":{"OBJECTID":287}},{"type":"Feature","id":288,"geometry":{"type":"Point","coordinates":[101.75044532967802,2.7694155208277791]},"properties":{"OBJECTID":288}},{"type":"Feature","id":289,"geometry":{"type":"Point","coordinates":[101.7511016598492,2.7536808511496167]},"properties":{"OBJECTID":289}},{"type":"Feature","id":290,"geometry":{"type":"Point","coordinates":[101.72371025580328,2.7960874985822581]},"properties":{"OBJECTID":290}},{"type":"Feature","id":291,"geometry":{"type":"Point","coordinates":[101.6833480023905,2.8548178289351926]},"properties":{"OBJECTID":291}},{"type":"Feature","id":292,"geometry":{"type":"Point","coordinates":[101.7511016598492,2.7536808511496167]},"properties":{"OBJECTID":292}},{"type":"Feature","id":293,"geometry":{"type":"Point","coordinates":[101.63383725201369,3.450942629019214]},"properties":{"OBJECTID":293}},{"type":"Feature","id":294,"geometry":{"type":"Point","coordinates":[101.54623986822337,3.6545594882057229]},"properties":{"OBJECTID":294}},{"type":"Feature","id":295,"geometry":{"type":"Point","coordinates":[101.61173146939414,3.3729545762694526]},"properties":{"OBJECTID":295}},{"type":"Feature","id":296,"geometry":{"type":"Point","coordinates":[101.57036221113513,3.3542749997837529]},"properties":{"OBJECTID":296}},{"type":"Feature","id":297,"geometry":{"type":"Point","coordinates":[101.38675913408258,3.6818935545254279]},"properties":{"OBJECTID":297}},{"type":"Feature","id":298,"geometry":{"type":"Point","coordinates":[101.43444460552048,3.7077578986708324]},"properties":{"OBJECTID":298}},{"type":"Feature","id":299,"geometry":{"type":"Point","coordinates":[101.66781148159636,3.5665374351758707]},"properties":{"OBJECTID":299}},{"type":"Feature","id":300,"geometry":{"type":"Point","coordinates":[101.63383947057386,3.4502962371609955]},"properties":{"OBJECTID":300}},{"type":"Feature","id":301,"geometry":{"type":"Point","coordinates":[101.6584470385674,3.4603373265232857]},"properties":{"OBJECTID":301}},{"type":"Feature","id":302,"geometry":{"type":"Point","coordinates":[101.58082085633545,3.3025898465655805]},"properties":{"OBJECTID":302}},{"type":"Feature","id":303,"geometry":{"type":"Point","coordinates":[101.58082085633545,3.3025898465655805]},"properties":{"OBJECTID":303}},{"type":"Feature","id":304,"geometry":{"type":"Point","coordinates":[101.64614414896155,3.2624875616671467]},"properties":{"OBJECTID":304}},{"type":"Feature","id":305,"geometry":{"type":"Point","coordinates":[101.52324028999348,3.2628388385383813]},"properties":{"OBJECTID":305}},{"type":"Feature","id":306,"geometry":{"type":"Point","coordinates":[101.52324028999348,3.2628388385383813]},"properties":{"OBJECTID":306}},{"type":"Feature","id":307,"geometry":{"type":"Point","coordinates":[101.68086557145764,3.2401062634009477]},"properties":{"OBJECTID":307}},{"type":"Feature","id":308,"geometry":{"type":"Point","coordinates":[101.71589478202215,3.2403944375996274]},"properties":{"OBJECTID":308}},{"type":"Feature","id":309,"geometry":{"type":"Point","coordinates":[101.51243621746521,3.2835224122250195]},"properties":{"OBJECTID":309}},{"type":"Feature","id":310,"geometry":{"type":"Point","coordinates":[101.51243621746521,3.2835224122250195]},"properties":{"OBJECTID":310}},{"type":"Feature","id":311,"geometry":{"type":"Point","coordinates":[101.51243621746521,3.2835224122250195]},"properties":{"OBJECTID":311}},{"type":"Feature","id":312,"geometry":{"type":"Point","coordinates":[101.74396339047314,3.2590091552381657]},"properties":{"OBJECTID":312}},{"type":"Feature","id":313,"geometry":{"type":"Point","coordinates":[101.59715702306481,3.2070834217917699]},"properties":{"OBJECTID":313}},{"type":"Feature","id":314,"geometry":{"type":"Point","coordinates":[101.67085431373269,3.2551085965795523]},"properties":{"OBJECTID":314}},{"type":"Feature","id":315,"geometry":{"type":"Point","coordinates":[101.70870807441911,3.2301726951167686]},"properties":{"OBJECTID":315}},{"type":"Feature","id":316,"geometry":{"type":"Point","coordinates":[101.76291725058469,3.2000572928487494]},"properties":{"OBJECTID":316}},{"type":"Feature","id":317,"geometry":{"type":"Point","coordinates":[101.65791965213617,3.2428642764351379]},"properties":{"OBJECTID":317}},{"type":"Feature","id":318,"geometry":{"type":"Point","coordinates":[101.68535797465233,3.2556228971736103]},"properties":{"OBJECTID":318}},{"type":"Feature","id":319,"geometry":{"type":"Point","coordinates":[101.55517690539823,3.2621688026851685]},"properties":{"OBJECTID":319}},{"type":"Feature","id":320,"geometry":{"type":"Point","coordinates":[101.56063453868495,3.3110431477980962]},"properties":{"OBJECTID":320}},{"type":"Feature","id":321,"geometry":{"type":"Point","coordinates":[101.67973722851356,3.2468807079873945]},"properties":{"OBJECTID":321}},{"type":"Feature","id":322,"geometry":{"type":"Point","coordinates":[101.65098299883972,3.2654139076625421]},"properties":{"OBJECTID":322}},{"type":"Feature","id":323,"geometry":{"type":"Point","coordinates":[101.57587463615762,3.3212194102313823]},"properties":{"OBJECTID":323}},{"type":"Feature","id":324,"geometry":{"type":"Point","coordinates":[101.72586589128687,3.2543099697543276]},"properties":{"OBJECTID":324}},{"type":"Feature","id":325,"geometry":{"type":"Point","coordinates":[101.68029290999908,3.251638319723571]},"properties":{"OBJECTID":325}},{"type":"Feature","id":326,"geometry":{"type":"Point","coordinates":[101.67087926085696,3.2551393765632688]},"properties":{"OBJECTID":326}},{"type":"Feature","id":327,"geometry":{"type":"Point","coordinates":[101.51243621746521,3.2835224122250195]},"properties":{"OBJECTID":327}},{"type":"Feature","id":328,"geometry":{"type":"Point","coordinates":[101.55517690539823,3.2621688026851685]},"properties":{"OBJECTID":328}},{"type":"Feature","id":329,"geometry":{"type":"Point","coordinates":[101.57587463615762,3.3212194102313823]},"properties":{"OBJECTID":329}},{"type":"Feature","id":330,"geometry":{"type":"Point","coordinates":[101.71522545836623,3.2377080776598093]},"properties":{"OBJECTID":330}},{"type":"Feature","id":331,"geometry":{"type":"Point","coordinates":[101.67341680354156,3.2604320551615928]},"properties":{"OBJECTID":331}},{"type":"Feature","id":332,"geometry":{"type":"Point","coordinates":[101.57574956277412,3.3212013716949045]},"properties":{"OBJECTID":332}},{"type":"Feature","id":333,"geometry":{"type":"Point","coordinates":[101.70775285217717,3.2186308696716504]},"properties":{"OBJECTID":333}},{"type":"Feature","id":334,"geometry":{"type":"Point","coordinates":[101.57574956997145,3.3212013653632106]},"properties":{"OBJECTID":334}},{"type":"Feature","id":335,"geometry":{"type":"Point","coordinates":[101.66593664745182,3.2452553651361513]},"properties":{"OBJECTID":335}},{"type":"Feature","id":336,"geometry":{"type":"Point","coordinates":[101.51243621746521,3.2835224122250195]},"properties":{"OBJECTID":336}},{"type":"Feature","id":337,"geometry":{"type":"Point","coordinates":[101.53553041737673,3.2323306920413883]},"properties":{"OBJECTID":337}},{"type":"Feature","id":338,"geometry":{"type":"Point","coordinates":[101.7239451346951,3.2341374493523269]},"properties":{"OBJECTID":338}},{"type":"Feature","id":339,"geometry":{"type":"Point","coordinates":[101.52378521863666,3.2625887196934946]},"properties":{"OBJECTID":339}},{"type":"Feature","id":340,"geometry":{"type":"Point","coordinates":[101.52884716682158,3.3193239811786328]},"properties":{"OBJECTID":340}},{"type":"Feature","id":341,"geometry":{"type":"Point","coordinates":[101.5384189348013,3.311564259269443]},"properties":{"OBJECTID":341}},{"type":"Feature","id":342,"geometry":{"type":"Point","coordinates":[101.63808216985377,3.2906452331667282]},"properties":{"OBJECTID":342}},{"type":"Feature","id":343,"geometry":{"type":"Point","coordinates":[101.59715702306481,3.2070834217917699]},"properties":{"OBJECTID":343}},{"type":"Feature","id":344,"geometry":{"type":"Point","coordinates":[101.53552749486416,3.2323295312951155]},"properties":{"OBJECTID":344}},{"type":"Feature","id":345,"geometry":{"type":"Point","coordinates":[101.51243621746521,3.2835224122250195]},"properties":{"OBJECTID":345}},{"type":"Feature","id":346,"geometry":{"type":"Point","coordinates":[101.64277991385424,2.8075487815763625]},"properties":{"OBJECTID":346}},{"type":"Feature","id":347,"geometry":{"type":"Point","coordinates":[101.65716127076257,2.823263921787897]},"properties":{"OBJECTID":347}},{"type":"Feature","id":348,"geometry":{"type":"Point","coordinates":[101.48428486473053,2.9200931161773687]},"properties":{"OBJECTID":348}},{"type":"Feature","id":349,"geometry":{"type":"Point","coordinates":[101.57768246205676,2.927902109727722]},"properties":{"OBJECTID":349}},{"type":"Feature","id":350,"geometry":{"type":"Point","coordinates":[101.58518057643016,2.9037579326129803]},"properties":{"OBJECTID":350}},{"type":"Feature","id":351,"geometry":{"type":"Point","coordinates":[101.50898246742652,2.9019166783498451]},"properties":{"OBJECTID":351}},{"type":"Feature","id":352,"geometry":{"type":"Point","coordinates":[101.50015986511163,2.8120988696563507]},"properties":{"OBJECTID":352}},{"type":"Feature","id":353,"geometry":{"type":"Point","coordinates":[101.4925285599075,2.8126341413921292]},"properties":{"OBJECTID":353}},{"type":"Feature","id":354,"geometry":{"type":"Point","coordinates":[101.64277991385424,2.8075487815763625]},"properties":{"OBJECTID":354}},{"type":"Feature","id":355,"geometry":{"type":"Point","coordinates":[101.86409102717276,2.9833326486520435]},"properties":{"OBJECTID":355}},{"type":"Feature","id":356,"geometry":{"type":"Point","coordinates":[101.74787540697166,3.0310308183793087]},"properties":{"OBJECTID":356}},{"type":"Feature","id":357,"geometry":{"type":"Point","coordinates":[101.77296421808333,3.1325866645014759]},"properties":{"OBJECTID":357}},{"type":"Feature","id":358,"geometry":{"type":"Point","coordinates":[101.79579850421304,3.0921477200280134]},"properties":{"OBJECTID":358}},{"type":"Feature","id":359,"geometry":{"type":"Point","coordinates":[101.75863491611827,2.9217557924655639]},"properties":{"OBJECTID":359}},{"type":"Feature","id":360,"geometry":{"type":"Point","coordinates":[101.75673682101862,2.9710255371738086]},"properties":{"OBJECTID":360}},{"type":"Feature","id":361,"geometry":{"type":"Point","coordinates":[101.80452093938283,3.1044763109587232]},"properties":{"OBJECTID":361}},{"type":"Feature","id":362,"geometry":{"type":"Point","coordinates":[101.81715904666147,3.1190927893068117]},"properties":{"OBJECTID":362}},{"type":"Feature","id":363,"geometry":{"type":"Point","coordinates":[101.7922277216507,2.991387608585486]},"properties":{"OBJECTID":363}},{"type":"Feature","id":364,"geometry":{"type":"Point","coordinates":[101.77983233149418,3.0524434161375984]},"properties":{"OBJECTID":364}},{"type":"Feature","id":365,"geometry":{"type":"Point","coordinates":[101.8000041892568,3.0100553840902671]},"properties":{"OBJECTID":365}},{"type":"Feature","id":366,"geometry":{"type":"Point","coordinates":[101.7808217637694,3.0083856346403111]},"properties":{"OBJECTID":366}},{"type":"Feature","id":367,"geometry":{"type":"Point","coordinates":[101.78236994969441,2.9936086536810542]},"properties":{"OBJECTID":367}},{"type":"Feature","id":368,"geometry":{"type":"Point","coordinates":[101.76748374917632,3.0591654920865059]},"properties":{"OBJECTID":368}},{"type":"Feature","id":369,"geometry":{"type":"Point","coordinates":[101.85927602805924,2.8699614003486178]},"properties":{"OBJECTID":369}},{"type":"Feature","id":370,"geometry":{"type":"Point","coordinates":[101.78955087312661,2.9908006751988934]},"properties":{"OBJECTID":370}},{"type":"Feature","id":371,"geometry":{"type":"Point","coordinates":[101.78873229541031,3.0032480969712747]},"properties":{"OBJECTID":371}},{"type":"Feature","id":372,"geometry":{"type":"Point","coordinates":[101.76152660773859,2.9685386584266791]},"properties":{"OBJECTID":372}},{"type":"Feature","id":373,"geometry":{"type":"Point","coordinates":[101.75480513394932,2.9757316802072373]},"properties":{"OBJECTID":373}},{"type":"Feature","id":374,"geometry":{"type":"Point","coordinates":[101.75673682101862,2.9710255371738086]},"properties":{"OBJECTID":374}}]};
@@ -0,0 +1,175 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="description" content="A live demo of react-leaflet-d3">
7
+ <meta name="author" content="M. Hasbie">
8
+
9
+ <title>react-leaflet-d3 Demo</title>
10
+
11
+ <script type="importmap">
12
+ {
13
+ "imports": {
14
+ "react": "https://esm.sh/react@19.2.3/",
15
+ "react-dom": "https://esm.sh/react-dom@19.2.3/?external=react",
16
+ "react-dom/client": "https://esm.sh/react-dom@19.2.3/client?external=react",
17
+ "react-leaflet": "https://esm.sh/react-leaflet@5.0.0?external=react,react-dom,leaflet,@react-leaflet/core",
18
+ "@react-leaflet/core": "https://esm.sh/@react-leaflet/core@3.0.0?external=react,react-dom,leaflet",
19
+ "leaflet": "https://esm.sh/leaflet@1.9.4/",
20
+ "d3": "https://esm.sh/d3@7.9.2",
21
+ "d3-hexbin": "https://esm.sh/d3-hexbin@0.2.2?external=d3",
22
+ "react-leaflet-d3": "https://esm.sh/react-leaflet-d3@3.0.0/?external=react,react-dom,react-leaflet,leaflet,d3,d3-hexbin,@react-leaflet/core"
23
+ }
24
+ }
25
+ </script>
26
+
27
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.css">
28
+ <style>
29
+ * {
30
+ box-sizing: border-box;
31
+ }
32
+
33
+ body {
34
+ margin: 0;
35
+ color: #212529;
36
+ font-family: Arial, sans-serif;
37
+ }
38
+
39
+ header,
40
+ footer {
41
+ background: #212529;
42
+ color: #fff;
43
+ }
44
+
45
+ header {
46
+ padding: 2rem max(1.25rem, calc((100% - 1120px) / 2));
47
+ }
48
+
49
+ header h1 {
50
+ margin: 0 0 0.75rem;
51
+ }
52
+
53
+ header p {
54
+ color: #ced4da;
55
+ line-height: 1.5;
56
+ }
57
+
58
+ header a {
59
+ color: #fff;
60
+ }
61
+
62
+ main {
63
+ max-width: 1120px;
64
+ margin: 2rem auto;
65
+ padding: 0 1.25rem;
66
+ }
67
+
68
+ .ping-controls {
69
+ display: flex;
70
+ flex-wrap: wrap;
71
+ align-items: flex-end;
72
+ justify-content: space-between;
73
+ gap: 1rem;
74
+ margin-bottom: 1rem;
75
+ padding: 1rem;
76
+ border: 1px solid #dee2e6;
77
+ background: #f8f9fa;
78
+ }
79
+
80
+ .coordinate-fields,
81
+ .ping-actions {
82
+ display: flex;
83
+ flex-wrap: wrap;
84
+ align-items: flex-end;
85
+ gap: 0.75rem;
86
+ }
87
+
88
+ .coordinate-field {
89
+ display: grid;
90
+ gap: 0.35rem;
91
+ }
92
+
93
+ .coordinate-field label {
94
+ font-weight: 600;
95
+ }
96
+
97
+ .coordinate-field input {
98
+ width: 12rem;
99
+ max-width: 100%;
100
+ padding: 0.55rem;
101
+ border: 1px solid #adb5bd;
102
+ border-radius: 0.25rem;
103
+ font: inherit;
104
+ }
105
+
106
+ .ping-actions button {
107
+ padding: 0.6rem 0.9rem;
108
+ border: 1px solid #0d6efd;
109
+ border-radius: 0.25rem;
110
+ background: #0d6efd;
111
+ color: #fff;
112
+ font: inherit;
113
+ cursor: pointer;
114
+ }
115
+
116
+ .ping-actions .button-secondary {
117
+ border-color: #6c757d;
118
+ background: #6c757d;
119
+ }
120
+
121
+ .ping-actions button:disabled {
122
+ opacity: 0.6;
123
+ cursor: not-allowed;
124
+ }
125
+
126
+ .ping-error {
127
+ flex-basis: 100%;
128
+ margin: 0;
129
+ color: #842029;
130
+ }
131
+
132
+ .map-frame {
133
+ height: min(70vh, 640px);
134
+ min-height: 400px;
135
+ border: 1px solid #dee2e6;
136
+ }
137
+
138
+ .leaflet-container {
139
+ width: 100%;
140
+ height: 100%;
141
+ }
142
+
143
+ .load-error {
144
+ padding: 1rem;
145
+ color: #842029;
146
+ background: #f8d7da;
147
+ }
148
+
149
+ footer {
150
+ padding: 1.25rem;
151
+ text-align: center;
152
+ }
153
+ </style>
154
+ </head>
155
+ <body>
156
+ <header>
157
+ <h1>react-leaflet-d3</h1>
158
+ <p>
159
+ React wrappers for <a href="https://github.com/bluehalo/leaflet-d3">@bluehalo/leaflet-d3</a>,
160
+ a collection of D3.js visualizations for Leaflet. Requires D3 v7.
161
+ </p>
162
+ <a href="https://github.com/mhasbie/react-leaflet-d3">GitHub</a>
163
+ &middot;
164
+ <a href="https://www.npmjs.com/package/react-leaflet-d3">npm</a>
165
+ </header>
166
+ <main>
167
+ <div id="container"></div>
168
+ </main>
169
+ <footer>&copy; M. Hasbie 2026</footer>
170
+
171
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.26.10/babel.min.js"></script>
172
+ <script src="./data.js"></script>
173
+ <script type="text/babel" data-type="module" src="App.jsx"></script>
174
+ </body>
175
+ </html>