こんにちは、
新しいPlacesサービスを試しており、特にbasemap上にplace情報を表示しようとしています。 https://jsapi.maps.arcgis.com/home/item.html?id=177e576ca3c94d5890dc3c790b29c1be このアイテムは私が探しているデータが正確に含まれていることがわかりました。LeafletのvectorBasemapLayerがitem IDを渡すことを許可していることを知って興奮しましたので、試してみました: https://codepen.io/dandormont-the-decoder/pen/eYQXOyr
そして読み込まれるようですが、何も表示されず、「duplicate layer id "Religion place/Other Religion", previously used at line undefinedat Object.Tr [as emitValidationErrors" のようなエラーが出ます。
esri-leafletを使ってこのようなレイヤーをどのように読み込めますか?
ありがとうございます、Dan
the map style https://jsapi.maps.arcgis.com/home/item.html?id=177e576ca3c94d5890dc3c790b29c1be is currently in beta release for evaluation only, and not considered ready to production use. Maybe the issues will get resolved once it is in production.
@John-Foster
That's fair. I was more just trying to understand how map styles are loaded by the different clients and why this fails in this particular way
Well, I found a workaround but I wouldn't quite call it a solution. Some googling suggested that the "unimplemented type 3" error comes when mapbox/maplibre downloads a PBF that is incorrectly gzipped. So I looked into all the PBFs that were being fetched, and while there were no gzip issues, there was this curiousity:
https://basemaps-api.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/resources/fonts/Arial%20Bold,Arial%20Unicode%20MS%20Bold/0-255.pbf?token=MY_API_KEY
which returns a JSON error "Requested font resource not available" which is obviously not a valid PBF. I'm not sure what that means but when I went back to the vector editor, I indeed found many references to "Arial Unicode MS Bold". By deleting all of these, and creating another copy of my style layer, I was finally able to get the map to load.
But I'm a little confused. Why doesn't that fontstack load? And why doesn't the Map Viewer / ArcGIS Javascript have the same problem?
Hm. I partly answered my own question by creating a copy of that style and editing it in the Vector Tile Style Editor. I went into the JSON and manually removed the duplicates. https://dawx3gjaixmoyunx.maps.arcgis.com/home/item.html?id=69b1cd50b88945f6aaa2ba2b29f3640d
If I use that item ID instead, the map does start to display but I have a newer and more mysterious error: "Unimplemented type: 3""
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.