Comments (9)
Great answers, thanks :)
from esri-leaflet-vector.
Further note - I tried with the below 'storymap' custom layer I found by browsing the issues board here (got this url http://storymaps.esri.com/stories/2016/vector-basemaps/ ), and this works fine - no 403s, and the map loads fine as well, no need to zoom out to see the tiles
L.esri.Vector.layer('cc82d6c506cc4accadea6cc377ed1fe0').addTo(map);
from esri-leaflet-vector.
@jgravois Any idea what might be wrong? Definitely in the internals...I will try to take a look but would appreciate it if you could check it out
from esri-leaflet-vector.
i can't repro the error with a layer i just created using our Application Prototype Lab editor.
http://jsbin.com/hohoyey/edit?html,output
https://www.arcgis.com/home/item.html?id=6c34522d1cb64af5ad1bd1b281d44668
how did you create your layer? when?
from esri-leaflet-vector.
Interesting.
Our goal was to custom-style a vector basemap (in this case 'topographical') to apply a custom style we'd use with Google Maps (happy to move away from it)
I used this blog as a guide around 10-12 days ago to accomplish this --
https://blogs.esri.com/esri/arcgis/2015/11/19/how-to-customize-esri-vector-basemaps/
It worked perfectly fine, we were able to have a layer whose root.json we downloaded, modified, uploaded, could see the (random red color) easily on the map. We were also able to see this style in your 'Style editor' -- http://esri.github.io/arcgis-vectortile-style-editor/#
I can see on logging in to your APL editor ( https://maps.esri.com/jg/VectorBasemapStyleEditor/index.html ) that our item is there as well.
Do you think it would work better if we began from the APL editor, imported a basemap, and then tried to style? *Trying that now
Thanks for your time!
from esri-leaflet-vector.
Update -- tried with your jsbin, forked it, modified the item id, and tried with/without token.
Network inspector shows this error
The item is shared with public. The account is an enterprise account @ arcgis.com. Token I tried is from a developer account (same credentials), not sure how to get a token from the enterprise account directly
Any idea what might be going wrong?
from esri-leaflet-vector.
The item is shared with public. ... Token I tried is from a developer account
When you share an item publicly any app should be able to access the content without supplying a token.
Do you think it would work better if we began from the APL editor?
the issue isn't so much the particular editor as it is what specific tile layer you copy/paste and start modifying. the difference between yours that fails and mine is the underlying service.
mine
http://www.arcgis.com/home/item.html?id=c50de463235e4161b206d000587af18b
Layers > World Basemap > https://basemaps.arcgis.com/v1/arcgis/rest/services/World_Basemap/VectorTileServer
yours
http://www.arcgis.com/home/item.html?id=2f030643ec154495b25256784f5e7d24
Layers > World Basemap > http://basemaps.arcgis.com/arcgis/rest/services/World_Basemap/VectorTileServer
(notice the lack of av1
in the url)
if you modify a copy of an item that references a v1
VectorTileServer, i'd expect it to display in esri-leaflet-vector.
i think the root of the confusion is that the blog from 2016 still directs users to search for owner:esri_vector
content but the most recent generation of vector basemaps are owned by plain old 'esri'
examples:
World Navigation Map
World Topographic Map
from esri-leaflet-vector.
Perfect, got it working!
For anybody else who reads this - I created an item with v1 in the URL by using the APL ( https://maps.esri.com/jg/VectorBasemapStyleEditor/index.html ) and choosing 'copy esri basemap item'. This item I then styled and saved/updated it in the APL. I then visited my arcgis.com account, shared the item publicly, and copied the item-id from the URL of the item (from the 'content' section)
Now this is loading fine in the jsbin! Thank you very much for your help.
I have a small side question -- I know developer accounts have 1M map transactions/month limits. When we use a basemap layer like in this case without a token, what are the limits which apply?
(I apologize if this is not the appropriate place to ask, please point me to the right place if so)
from esri-leaflet-vector.
glad to hear it.
When we use a basemap layer like in this case without a token, what are the limits which apply?
the same limits apply whether the basemap you load is private or public.
from esri-leaflet-vector.
Related Issues (20)
- Add support for the basemap styles service v2 (beta) HOT 1
- Add a public method to expose the underlying MaplibreGL map object HOT 1
- Conflict between VectorBasemapLayer and VectorTileLayer HOT 4
- Add suggested conversions between v1 and v2 basemap style enumerations
- Vector Tile Layers "Unimplemented type : 3" and Failed to load Sprites HOT 8
- Token not included in Sprite request when `sprite` property in style is a full URL HOT 5
- Add support for a proxy HOT 3
- Update to maplibre-gl v3 HOT 5
- Export MaplibreGLLayer HOT 1
- Firefox Printing Issue HOT 3
- Set `preserveDrawingBuffer` to `true` in `MapLibreGLLayer` HOT 1
- 🎃 𝗛𝗮𝗰𝗸𝘁𝗼𝗯𝗲𝗿𝗳𝗲𝘀𝘁 𝗗𝗲𝘁𝗮𝗶𝗹𝘀 𝗳𝗼𝗿 𝗣𝗮𝗿𝘁𝗶𝗰𝗶𝗽𝗮𝗻𝘁𝘀 👨💻
- Multiline text not breaking HOT 13
- Text is backwards in RTL language basemaps HOT 2
- Update the "Gallery" example to v2 basemaps
- Add a static "setRTLTextPlugin" method HOT 5
- `wrong listener type: undefined` console warning HOT 6
- Incorrect CSS Color Prevents arcgis/navigation maps from loading HOT 6
- Add support for new v2 basemap parameters HOT 1
- Add hitTest function for vector tile layers
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 esri-leaflet-vector.