Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Collection geojson properties on click #383

Merged
merged 8 commits into from
Dec 5, 2016
Merged

Conversation

jbeezley
Copy link

@dorukozturk This is about half the work required to get geojson property information to display on click. There are two blocks of code here:

  1. Enables the selection api on geojson feature layers with some hackery that is necessary until Refactor GL line rendering OpenGeoscience/geojs#649 shows up in a release.
  2. Connects to the existing click handler to call the pointSearch method on all features created for the dataset. Because all of data is assumed to be geojson, getting the properties is straightforward. After the underscore pipeline, I just print out the property array to the console.

What I'm leaving for you is merging these property objects with those returned from the REST API for WMS layers further down in the function. Let me know if you have any questions.

@dorukozturk
Copy link
Contributor

@jbeezley Can you review this whenever you have time? I think it is almost ready. When clicked on boundaries it is not inspecting (for geojson only). Other than that everything works as expected.

@jbeezley
Copy link
Author

jbeezley commented Dec 5, 2016

My last commit should fix the boundary issue. Everything else LGTM.

@dorukozturk
Copy link
Contributor

Yes, it is fixed now. Thanks !!!

@dorukozturk dorukozturk merged commit c5dd88b into master Dec 5, 2016
@dorukozturk dorukozturk deleted the select-geojson branch December 5, 2016 18:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants