POST
|
It is possible to choose whether the legend should be visible or not, but I lack the ability to choose exactly which layers should be shown. Future improvements in roadmap?
... View more
12-19-2022
05:22 AM
|
0
|
0
|
821
|
POST
|
I have made a @Esri premium support request and had it ongoing for months. @Esri have not yet recognised the issue as a bug. @Esri support is not able to reproduce the issue and refere me and the customer to this thread. The fieldworker who have the issue, a customer to Metria and Esri is now very tired of all question and actions. I understand that the issue is hard to reproduce but if some Estri staff have the issue a bug request should be made urgent!
... View more
11-03-2020
02:25 AM
|
1
|
7
|
2496
|
POST
|
Thanks! I figure it out some time ago. I figure out how to use the property layers to register a service and work with a LIST OF LAYERS as: from arcgis.gis import GIS gis = GIS(portalUrl, portalUserName, portalPassword) spatialReferences = [2400, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3021, 3031, 3032, 3033, 3035, 3785, 3857, 4326, 30061, 30062, 900913, 3152, 30063, 30064] layers= [ { "name": "railway.track", "title": "Railway Track", "queryable": True }, { "name": "railway.ferry", "title": "Railway Ferry Route", "queryable": True } ] text_json = { "title": "National railway", "url": "https://maps.geogratis.gc.ca/wms/railway_en", "version": "1.3.0", "layers": layers, "maxHeight": 5000, "maxWidth": 5000, "spatialReferences": spatialReferences , "format": None, "featureInfoFormat": "text/html" } item={ 'title':'National railway', 'description':'Test', 'tags':'railway, national, wms', 'type':'WMS', 'url':'https://maps.geogratis.gc.ca/wms/railway_en', 'text': json.dumps(text_json) } items_wms = gis.content.add(item_properties=item) print("items_wms: ", items_wms) display(items_wms)
... View more
03-05-2019
12:14 AM
|
1
|
4
|
1178
|
POST
|
Can't figure out how to do it with specified layers. Current code: from arcgis.gis import GIS import getpass password=getpass.getpass() gis = GIS(url="https://xxxx.vic-metria.nu/arcgis/", username="xxxx", password=password) sp={ 'title':'testJola1', 'description':'Test', 'tags':'Test', 'type':'WMS', 'url':'https://xxx.vic-metria.nu/WmsProxy/testmaps.metria.se/geoserver/wms', }item = gis.content.add(item_properties=sp)print("success!")
... View more
10-04-2018
05:28 AM
|
1
|
6
|
1352
|
Title | Kudos | Posted |
---|---|---|
1 | 03-05-2019 12:14 AM | |
1 | 11-03-2020 02:25 AM | |
1 | 10-04-2018 05:28 AM |
Online Status |
Offline
|
Date Last Visited |
08-16-2023
10:55 PM
|