Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow either feature.properties.centroid or feature.centroid

Fixes broken markers
  • Loading branch information...
commit cc3b990221fdbf29502ea23b3234f46ae897fc41 1 parent 6495eab
@geary authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  code/polygonzo.js
View
3  code/polygonzo.js
@@ -296,7 +296,8 @@ PolyGonzo = {
offsetY = featureOffset.y;
if( geo.markers && feature.marker ) {
- var marker = feature.marker, c = feature.centroid;
+ var marker = feature.marker,
+ c = feature.properties.centroid || feature.centroid;
var centroid = ( feature.centroids = feature.centroids || [] )[zoom];
if( ! centroid ) {
if( mercator ) {
Please sign in to comment.
Something went wrong with that request. Please try again.