Comments (6)
But GeoJSON geometry objects don't need a properties member do they? Are you thinking of a Feature?
from geojson-google-maps.
Looks like this might be a "feature" of TopoJSON, which doesn't support GeoJSON features. The topojson.object function attaches properties to GeoJSON geometry objects.
For context, as a proof of concept, I'm generating GeoJSON from Esri Shapefiles (Natural Earth) using GDAL, converting the GeoJSON to TopoJSON for serving, converting back to GeoJSON in the browser, and using GeoJSON.js to generate the google.maps.Polygons for rendering.
Perhaps better to fork for this use case?
from geojson-google-maps.
Interesting. I'd be interested in seeing the exact files you're working with. Can you easily set up something reproducible with JSFiddle or something like http://bl.ocks.org/4554134 ?
from geojson-google-maps.
Code at:
https://github.com/saxman/google_maps/tree/master/natural_earth
If you take a look at the ne_10m_admin_0_countries.topojson.js file, you can see the properties in the GeometryCollection.
More context on why topojson does this:
topojson/topojson#7
from geojson-google-maps.
Yeah, I guess I just have reservations about honoring something that's not in the GeoJSON spec here. If we start checking for a properties
member of a geometry, what's keeping us from honoring any other random key value pairs in a geometry?
from geojson-google-maps.
Or maybe I'm not looking at things correctly and topojson/topojson#7 puts these properties in a proper Feature
and not the geometry.
from geojson-google-maps.
Related Issues (16)
- invert HOT 1
- Polygon with hole not showing hole - only boundary HOT 3
- Could be the populating of options of Points in GeometryCollection extended? HOT 1
- No MapCenter or FitBounds feature
- package.json for npm HOT 10
- Just a suggestion: for GeoJson's linear rings in polygons, remove the last vertex
- Event binding doesn't seem to work
- Handle GeometryCollection as a geometry member
- v2 for handling Google Maps -> GeoJSON HOT 2
- hi, I've remake a geojson to gmap based on this project with better api.
- Why no provide center function ? HOT 3
- _ccw function doesn't work correctly...
- Problem with adding Multipolygon in GeometryCollection object HOT 9
- Please License Under Something Permissive HOT 3
- 'Donut' geometries missing the holes HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geojson-google-maps.