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

Adding legends #104

Merged
merged 1 commit into from
Feb 20, 2019
Merged

Adding legends #104

merged 1 commit into from
Feb 20, 2019

Conversation

kevinzluo
Copy link
Contributor

Fixes #103 .

I have implemented a general control for the layers along with other functionality. Now any legend may be added with the syntax addLayerNameURLPair( layer_var, img_url ). The layer_var must be conistent with the one used in index.html.

image

I have placed my src files in a new folder called util since they were not really layers.

Example of working:
showlegends

@kevinzluo
Copy link
Contributor Author

@sagarpreet-chadha How does this look?

Copy link
Collaborator

@sagarpreet-chadha sagarpreet-chadha left a comment

Choose a reason for hiding this comment

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

AWESOME 😄 !

Can you update the Readme as well ?

@sagarpreet-chadha
Copy link
Collaborator

@jywarren ...what do you think ?

Also i have approved this task on GCI dashboard .

@grvsachdeva
Copy link
Member

Hi @kevinzluo @sagarpreet-chadha as it's near completion, how about resolving conflicts and getting it merged. Thanks!

@kevinzluo
Copy link
Contributor Author

@gauravano Resolved now 😄

@kevinzluo kevinzluo changed the title Adding legends for Justice Maps Adding legends Dec 22, 2018
@jywarren
Copy link
Member

jywarren commented Jan 3, 2019

Oh, i'm sorry - needs one more rebase as we've merged in some new material. Apologies!!!

@jywarren
Copy link
Member

Sorry this took me so long! Rebasing and getting ready to merge!

General solution with image links hosted from own repo
@jywarren jywarren merged commit 91d8c6a into publiclab:master Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants