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

[mobile & web] Add option to change the theme #20

Open
JulianBissekkou opened this issue Nov 29, 2022 · 0 comments
Open

[mobile & web] Add option to change the theme #20

JulianBissekkou opened this issue Nov 29, 2022 · 0 comments

Comments

@JulianBissekkou
Copy link
Collaborator

JulianBissekkou commented Nov 29, 2022

There are multiple ways to change a theme. The easiest might be to update the basemap using [toggleBaseMap].
However, if you are not using Basemaps you are forced to update the style of your VectorTileLayer.

Based on the Platform we might have to do different things:

JS:

There is an API to update the style of the current layer. This style can be a url or an object containing the style definition. This is handy when switching styles offline.
https://developers.arcgis.com/javascript/3/jsapi/vectortilelayer-amd.html#setstyle

Android:

Still looking into the possible ways..

iOS:

Still looking into the possible ways..

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

No branches or pull requests

1 participant