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 the possibility to add an array of other layers to compare. #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kent1D
Copy link

@kent1D kent1D commented Mar 6, 2018

Should fix kosmtik/kosmtik#279

The option is compareUrls, maybe should be renamed.

Adding the possibility to add an array of other layers to compare.

The option is `compareUrls`, maybe should be renamed.
Copy link
Member

@yohanboniface yohanboniface left a comment

Choose a reason for hiding this comment

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

Sounds good :)
One suggestion: instead of having a new option, maybe just check the type of the value, and accept either a string or an array of strings.
Also a quick note on the README would be cool :)

* a string (just the URL to a layer)
* a simple Array (Url => Name)
* an Array of Arrays (Url => Name)
@kent1D
Copy link
Author

kent1D commented Jul 9, 2018

We accept a string (just the Url), a simple Array [URL, Name], an array of Arrays [[URL,Name], [URL2,Name2]] ....

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.

[kosmtik-map-compare] Being able to add several layer to compare with
2 participants