Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ordering and formatting #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix ordering and formatting #24

wants to merge 1 commit into from

Conversation

charlienewey
Copy link

The formatting looked like it was encouraging bugs, so I re-jigged the formatting a bit.

This also seemed to fix a couple of other bugs - the objects returned by the library now seem to support Google Maps' default event binding, among other things.

break;

case "Point": case "MultiPoint": case "LineString": case "MultiLineString": case "Polygon": case "MultiPolygon":
obj = geojson.coordinates
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the ternary operator to an if-then-else - it was impacting readability.

Also there was a bug here:

obj = geojson.coordinates ? obj = _geometry...

(There was an extra assignment within the ternary operator, causing it to break)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant