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

Make OpenLayers display arbitary vector data #25

Closed
kousu opened this issue Jan 20, 2014 · 2 comments
Closed

Make OpenLayers display arbitary vector data #25

kousu opened this issue Jan 20, 2014 · 2 comments

Comments

@kousu
Copy link
Collaborator

kousu commented Jan 20, 2014

I've managed to get OpenLayers to load countries.geojson, which wasn't that surprising since that I stole off of their demos. On the other hand meatplants.geojson, which is a dataset more interesting to us, is being finicky. It's downloading but not displaying. No exceptions, though. I assume something is up with the geoprojection.

What did you do to get the farm polygons to show up? Can you do it again? The meatplant dataset is open data, so it is in the repo now ([[assets/maps/meatplants.geojson]] and sourcefile(s) assets/maps/original/meatplants.zip if the geojson version isn't good enough).

@ghost ghost assigned vchynarov Jan 20, 2014
@vchynarov
Copy link
Contributor

I'm on Windows right now and about to go to sleep, but try removing the first two lines of the meatplans.geojson; the recommendation you gave to me.

Remove this line.
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::4269" } },

@kousu
Copy link
Collaborator Author

kousu commented Jan 20, 2014

Got it. There were two blockers: this, which I never would have remembered myself, and that OL renders point data using different styling than it uses for lines and polygons. I'm going to submit a feature request that attempts to use null renderers trigger a warning on the JavaScript console.

I foresee us finding lotttttts of bugs in OL3, and getting their quality up as a side effect of pushing their library so hard.

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

No branches or pull requests

2 participants