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

Osm landfill mine quarry #94

Merged

Conversation

kevinzluo
Copy link
Contributor

Fixes #56

I have added a layer for landfills, mines, and quarries through OSM:
osmlandsminesquarriescoloredfast

Currently the colors are:
Red for Landfills,
Blue for Mines,
Green for Quarries

As I stated here, I decided to parse the XML instead as the JSON output didn't provided the longitude latitude coordinates.

Currently the map is very slow, as you can see from the gif. It is possible I may have been above the quota. I am not too sure.

I have set the minimum zoom to 7 and clearOutsideBounds to false for now.

Please let me know if you would like me to change anything.

Also, thank you @sagarpreet-chadha . The spinner is super helpful when testing.

Thank you,
Kevin Luo

@kevinzluo kevinzluo force-pushed the osm-landfill-mine-quarry branch 3 times, most recently from 8f347be to 91c0f0c Compare December 3, 2018 04:10
var countLayers = 0;
for (var key in self._colorOptions) {
//Generate URL for each type
var LMQ_url = "http://www.overpass-api.de/api/xapi?*[landuse=" + key + "][bbox=" + (southwest.lng) + "," + (southwest.lat) + "," + (northeast.lng) + "," + (northeast.lat) + "]";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Awesome !

var id = $(this).attr('id'); //Use id as the key
var nodeLat = $(this).attr('lat');
var nodeLng = $(this).attr('lon');

Copy link
Collaborator

Choose a reason for hiding this comment

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

Great 🎉 !

@jywarren
Copy link
Member

jywarren commented Dec 7, 2018

Oops, needs a rebase, i guess! Then should be ready to go! Thank you!!

kevinzluo and others added 3 commits December 7, 2018 17:17
Add Quarry and Mines and colors

Add comments and remove console.logs
Fix spinner

Refactor and add clearOutsideBounds
@kevinzluo
Copy link
Contributor Author

Sorry about that. It should be fixed now.

@sagarpreet-chadha
Copy link
Collaborator

Awesome 👍 ! Merging , THANK YOU 🎉 !

@sagarpreet-chadha sagarpreet-chadha merged commit 22ff2e5 into publiclab:master Dec 18, 2018
@sagarpreet-chadha
Copy link
Collaborator

This PR is breaking the code somewhere .

TypeError: L.layerGroup.toxicReleaseLayer is not a function[Learn More]

@sagarpreet-chadha
Copy link
Collaborator

Fixed in PR #106 😄 !

@jywarren
Copy link
Member

jywarren commented Dec 18, 2018 via email

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.

3 participants