googlemaps / v3-utility-library

Utility libraries for Google Maps JavaScript API v3
Apache License 2.0
1.1k stars 1.3k forks source link

Cannot load resource with ArcGislink.js #352

Closed intotecho closed 4 years ago

intotecho commented 8 years ago

I am trying to load an ArcGis layer onto a google-map-v3. It is a fairly standard ArcGis resource published by UNEP at http://ec2-54-204-216-109.compute-1.amazonaws.com:6080/arcgis/rest/services/wdpa/wdpa/MapServer/0?f=pjson

arcgislink.js is expecting the resource to contain a json.SpatialReference, but it only has a json.extents.SpatialReferemce.

Also, arcgislink.js is expecting json.layers[] and json.tables[], but neither of these appear in the resource.

I can't see any activity on this project for some years. Is it still a viable utility? Are there alternatives I should consider or is is just not intended to handle this type of resource?

intotecho commented 8 years ago

I had the wrong resource - adding /0 to the end of the URL is already inside a layer. So using instead: http://ec2-54-204-216-109.compute-1.amazonaws.com:6080/arcgis/rest/services/wdpa/wdpa/MapServer?f=pjson Works much better.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

stale[bot] commented 4 years ago

Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.