hhkaos / flutter_arcgis_basemaps

Example project loading ArcGIS vector basemaps using Fluttler
4 stars 0 forks source link

Multilayer styles with raster layers are not been loaded #2

Open hhkaos opened 1 year ago

hhkaos commented 1 year ago

Some of the default styles ArcGIS:StreetsRelief that have raster and vector layers are not working:

"sources": {
"1b243539f4514b6ba35e7d995890db1d": {
    "type": "raster",
    "url": "https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer?token=AAPKbd3b5c597fbb4e6791efa06d12511f794beh6YUYqWLSL-STLyjY085N0dRLUy8l9PNTPnWXj1s_31FvJ8xKnL3l4VwHy0vm",
    "tiles": ["https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer/tile/{z}/{y}/{x}?token=AAPKbd3b5c597fbb4e6791efa06d12511f794beh6YUYqWLSL-STLyjY085N0dRLUy8l9PNTPnWXj1s_31FvJ8xKnL3l4VwHy0vm"],
    "tileSize": 256,
    "minzoom": 0,
    "maxzoom": 23,
    "copyrightText": "Sources: Esri, Airbus DS, USGS, NGA, NASA, CGIAR, N Robinson, NCEAS, NLS, OS, NMA, Geodatastyrelsen, Rijkswaterstaat, GSA, Geoland, FEMA, Intermap and the GIS user community",
    "attribution": "Sources: Esri, Airbus DS, USGS, NGA, NASA, CGIAR, N Robinson, NCEAS, NLS, OS, NMA, Geodatastyrelsen, Rijkswaterstaat, GSA, Geoland, FEMA, Intermap and the GIS user community"
},
"esri": {
    "type": "vector",
    "url": "https://basemaps-api.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer?token=AAPKbd3b5c597fbb4e6791efa06d12511f794beh6YUYqWLSL-STLyjY085N0dRLUy8l9PNTPnWXj1s_31FvJ8xKnL3l4VwHy0vm",
    "minzoom": 0,
    "maxzoom": 16,
    "tiles": ["https://basemaps-api.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf?token=AAPKbd3b5c597fbb4e6791efa06d12511f794beh6YUYqWLSL-STLyjY085N0dRLUy8l9PNTPnWXj1s_31FvJ8xKnL3l4VwHy0vm"],
    "copyrightText": "Sources: Esri, HERE, Garmin, FAO, NOAA, USGS, © OpenStreetMap contributors, and the GIS User Community",
    "attribution": "Sources: Esri, HERE, Garmin, FAO, NOAA, USGS, © OpenStreetMap contributors, and the GIS User Community"
}

You can find all at arcgis_map_styles.dart

hhkaos commented 1 year ago

Here some hints to help us fix this

Note: in addition to that repo, another place to look for help could be the GMaps Discord channel