We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ff0ba2 commit 21fe12fCopy full SHA for 21fe12f
1 file changed
web/client/components/map/leaflet/Map.jsx
@@ -99,8 +99,14 @@ let LeafletMap = React.createClass({
99
this.map.on('singleclick', (event) => {
100
if (this.props.onClick) {
101
this.props.onClick({
102
- pixel: event.containerPoint,
103
- latlng: event.latlng
+ pixel: {
+ x: event.containerPoint.x,
104
+ y: event.containerPoint.y
105
+ },
106
+ latlng: {
107
+ lat: event.latlng.lat,
108
+ lng: event.latlng.lng
109
+ }
110
});
111
}
112
@@ -269,7 +275,10 @@ let LeafletMap = React.createClass({
269
275
x: pos.lng,
270
276
y: pos.lat,
271
277
crs: "EPSG:4326",
272
- pixel: event.containerPoint
278
279
280
+ y: event.containerPoint.x
281
273
282
274
283
},
284
registerHooks() {
0 commit comments