A new option to switch between different icon suits.
Closed this issue · 3 comments
dadiorchen commented
We need to use an option to set the icon style (switch between icons suits), it could be like:
new Map({
iconSuite: 'old' | 'green',
}
In the near future, we at least have three suites of icon:
- the old orange icon for current online version.
- The green icon we already support now.
- A eclipse green version for destop (big screen side)
In the future, it's possible we are going to design a new icon for our VIP partner.
Some hints:
- Please read our readme for more information/guide/tutorial.
- Here is an engineering book in Greenstand.
- To know more about our organization, visit our website.
- If you want to join the slack community (some resources need the community member's permission), please leave your email address.
pratikmdhr commented
i'll work on this
dadiorchen commented
@pratikmdhr I think this consideration below is relevant with this issue:
treetracker-web-map-core/src/Map.js
Lines 36 to 39 in 2bde9cb
I'm thinking that we shouldn't change the icon by setting the tile URL directly, we should modify the URL on the fly, I mean by appending the /new/
into the URL according to the option.
what do you think?
pratikmdhr commented
yes i agree, i was planning on dynamically changing the URL too..