Comments (3)
It could be failing due to the extra parameters on the WMS url. Try just https://sampleserver6.arcgisonline.com/arcgis/services/SampleWorldCities/MapServer/WMSServer for the url and see if it works.
from ago-tools.
Thanks for the quick reply! Unfortunately the same response 0 items added for the URL added as "https://sampleserver6.arcgisonline.com/arcgis/services/SampleWorldCities/MapServer/WMSServer"
from ago-tools.
Watching the network traffic for the workflow in the UI, it appears there's a call to a proxy service to populate some additional info. The additional info gets sent with the text
parameter on the addItem
call. There's a whole lot of info about the WMS in there.
You could try adding some logic to the registerItems
method to populate the text
parameter with the required info for a WMS.
{
"title": "WMS",
"url": "https://sampleserver6.arcgisonline.com/arcgis/services/SampleWorldCities/MapServer/WMSServer",
"mapUrl": "https://sampleserver6.arcgisonline.com:443/arcgis/services/SampleWorldCities/MapServer/WmsServer",
"version": "1.3.0",
"layers": [{
"name": "0",
"title": "World",
"legendURL": "https://sampleserver6.arcgisonline.com:443/arcgis/services/SampleWorldCities/MapServer/WmsServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=0",
"queryable": true
}, {
"name": "1",
"title": "Continent",
"legendURL": "https://sampleserver6.arcgisonline.com:443/arcgis/services/SampleWorldCities/MapServer/WmsServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=1",
"queryable": true
}, {
"name": "2",
"title": "Cities",
"legendURL": "https://sampleserver6.arcgisonline.com:443/arcgis/services/SampleWorldCities/MapServer/WmsServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=2",
"queryable": true
}],
"copyright": "",
"maxHeight": 4096,
"maxWidth": 4096,
"spatialReferences": [
4326
],
"format": null,
"featureInfoUrl": "https://sampleserver6.arcgisonline.com:443/arcgis/services/SampleWorldCities/MapServer/WmsServer",
"featureInfoFormat": "text/html"
}
from ago-tools.
Related Issues (20)
- Remove defining of roles in getUsers HOT 2
- new function: batch register map services from CSV HOT 1
- createUserListCSV doesn't handle unicode and delimiters in FullName
- add releases
- Last Login HOT 3
- ago-tools / samples / registerItems.py Add note about required fields HOT 1
- Only original user who setup the ArcGIS Online account can run scripts HOT 1
- registerItems.py Language Support
- Sample to update sourceURL for registered service ? HOT 6
- AGOLCat.py - some attributes not populated in output csv HOT 2
- Too many arguments in migrateAccount (reassignAllUser1ItemsToUser2()) HOT 4
- Unable to log in as Admin using enterprise account HOT 5
- Pull users by Groups HOT 2
- 500 - Internal server error HOT 1
- UnicodeEncodeError when running AGOLCat.py sample from command line
- Updating Item : File Geodatabase HOT 1
- Problem using migrateAccount() HOT 2
- Open Data site doesn't see data after script ran HOT 10
- Add Authorized Issuer for Aeration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ago-tools.