Giter VIP home page Giter VIP logo

Comments (9)

blahmonkey avatar blahmonkey commented on June 10, 2024 1

Great answers, thanks :)

from esri-leaflet-vector.

blahmonkey avatar blahmonkey commented on June 10, 2024

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.

blahmonkey avatar blahmonkey commented on June 10, 2024

@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.

jgravois avatar jgravois commented on June 10, 2024

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.

blahmonkey avatar blahmonkey commented on June 10, 2024

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.

blahmonkey avatar blahmonkey commented on June 10, 2024

Update -- tried with your jsbin, forked it, modified the item id, and tried with/without token.

Network inspector shows this error
screen shot 2017-09-20 at 1 02 16 pm

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.

jgravois avatar jgravois commented on June 10, 2024

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 a v1 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.

blahmonkey avatar blahmonkey commented on June 10, 2024

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.

jgravois avatar jgravois commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.