-
Notifications
You must be signed in to change notification settings - Fork 78
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
Osm landfill mine quarry #94
Conversation
8f347be
to
91c0f0c
Compare
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) + "]"; |
There was a problem hiding this comment.
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'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 🎉 !
a7535c3
to
f5e3b90
Compare
Oops, needs a rebase, i guess! Then should be ready to go! Thank you!! |
Add Quarry and Mines and colors Add comments and remove console.logs Fix spinner Refactor and add clearOutsideBounds
f5e3b90
to
dba1dd1
Compare
Sorry about that. It should be fixed now. |
Awesome 👍 ! Merging , THANK YOU 🎉 ! |
This PR is breaking the code somewhere .
|
Fixed in PR #106 😄 ! |
fantastic. This is great!
…On Tue, Dec 18, 2018 at 5:45 AM Sagarpreet Chadha ***@***.***> wrote:
Fixed in PR #106
<#106> 😄 !
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ5Pwov-oRG2GlM6QFQ4hcb9oO02xks5u6MdDgaJpZM4Y91jF>
.
|
Fixes #56
I have added a layer for landfills, mines, and quarries through OSM:
![osmlandsminesquarriescoloredfast](https://user-images.githubusercontent.com/44309027/49352377-3c6e3300-f67d-11e8-8161-82478708af88.gif)
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