Skip to content

Commit 4e88075

Browse files
committed
add GeoJSON feature 'properties' to eventData
1 parent f7f3190 commit 4e88075

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/traces/choropleth/event_data.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
109
'use strict';
1110

12-
module.exports = function eventData(out, pt) {
11+
module.exports = function eventData(out, pt, trace, cd, pointNumber) {
1312
out.location = pt.location;
1413
out.z = pt.z;
1514

15+
var cdi = cd[pointNumber];
16+
if(cdi.fIn) {
17+
out.properties = cdi.fIn.properties;
18+
}
19+
1620
return out;
1721
};

0 commit comments

Comments
 (0)