Skip to content

Commit

Permalink
Merge pull request #12500 from apache/fix-geo-name-property
Browse files Browse the repository at this point in the history
fix(geo): fix default name property when parsing GeoJSON
  • Loading branch information
pissang committed Apr 26, 2020
2 parents 911bd4b + 1360a8e commit 043ff9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coord/geo/parseGeoJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function (geoJson, nameProperty) {
}

var region = new Region(
properties[nameProperty],
properties[nameProperty || 'name'],
geometries,
properties.cp
);
Expand Down

0 comments on commit 043ff9e

Please sign in to comment.