Select to view content in your preferred language

Vector Fail

2755
13
02-18-2016 07:22 AM
BrianO_keefe
Honored Contributor

So I'm trying to play with the Vector Sample in the API and it doesn't work.

https://developers.arcgis.com/javascript/jssamples/layers_vector.html

I copied the sandbox example to my server.

http://maps.cityoftulsa.org/jsdev/vector/index.html

Then I copied the root.json contents to my own file.

http://maps.cityoftulsa.org/jsdev/vector/style/root.json

I made a single adjustment (background color) to see if my changes would propagate and I get a 404 error.

I know the file is there. I have both copied and renamed it from the server directly. It's there. The contents match exactly with what I am trying to do. Still nothing. I will happily admit I am clueless as to vector styling via JSON, so maybe I'm doing something simple and ignorant of basic concepts. But I can't figure it out.

I even copied and pasted the original JSON back into it and still I get a 404. Confused.

Tags (3)
0 Kudos
13 Replies
RobertScheitlin__GISP
MVP Emeritus

Brain,

   I have even tried to proxy the requests already and you will still get 403 errors as access to urls like:

http://basemaps.arcgis.com/arcgis/rest/services/World_Basemap/VectorTileServer/sprites/sprite

are restricted.

0 Kudos
BrianO_keefe
Honored Contributor

Yeah, I dumped urlUtils into the code and added a proxy rule to no avail...

Surely this isn't impossible?! Maybe I'm going at this from the wrong direction.

Technically, all I want to do is manipulate Vector styles to get a feel for them.

0 Kudos
ReneRubalcava
Honored Contributor

Well then, if you want to mess with styling, I think I can help.

GitHub - Esri/arcgis-vectortile-style-editor: A simple Vector Tile Style Editor to update the styles...

It's not a "full-featured" editor, but you can do some cool stuff. You'll need to makes sure you copy a style in your ArcGIS Online account.

How to Customize Esri Vector Basemaps | ArcGIS Blog

ChrisSmith7
Honored Contributor

A good point - now he swapped the 404 for a 403!

0 Kudos