Greenstand/treetracker-web-map-core

A new option to switch between different icon suits.

Closed this issue · 3 comments

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:

  1. the old orange icon for current online version.
  2. The green icon we already support now.
  3. 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.

i'll work on this

@pratikmdhr I think this consideration below is relevant with this issue:

tileServerUrl: 'https://{s}.treetracker.org/tiles/new/',
tileServerSubdomains: ['dev-k8s'],
apiServerUrl: 'https://dev-k8s.treetracker.org/webmap/',
width: window.innerWidth,

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?

yes i agree, i was planning on dynamically changing the URL too..