Skip to content

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

Open
kent1D wants to merge 2 commits intokosmtik:masterfrom
kent1D:master
Open

Adding the possibility to add an array of other layers to compare.#4
kent1D wants to merge 2 commits intokosmtik:masterfrom
kent1D:master

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