Describe the bug
Displaying web maps/feature layer views/feature layers using an API Key results in a token error. We created a bunch of web maps and feature layer views. Unluckily, we cannot display any of these using the map widget. But, when we try to query them, the features are returned correctly. Maybe there is an issue with the internally used JS API of the python module.
The error is shown in the browser console.
To Reproduce
Steps to reproduce the behavior:
from arcgis.gis import GIS
from arcgis.features import FeatureLayer
from arcgis.mapping import WebMap
from configparser import ConfigParser
config = ConfigParser()
config.read('arcgis-online.env')
section_key = 'arcgis'
gis = GIS(api_key=config[section_key]['ARCGIS_API_KEY'])
webmap_item = gis.content.get(config[section_key]['WEBMAP_ID'])
WebMap(webmap_item)
@gisfromscratch your version of the Python API is very old, please update to 2.0.0. Also the api_key does not give you permission to access the resource.
Describe the bug Displaying web maps/feature layer views/feature layers using an API Key results in a token error. We created a bunch of web maps and feature layer views. Unluckily, we cannot display any of these using the map widget. But, when we try to query them, the features are returned correctly. Maybe there is an issue with the internally used JS API of the python module.
The error is shown in the browser console.
To Reproduce Steps to reproduce the behavior:
error:
Screenshots If applicable, add screenshots to help explain your problem.
Expected behavior The webmap should be displayed as expected.
Platform (please complete the following information):
Additional context