|
POST
|
The code does work if I change it to. mbasemap = new Basemap("https://www.arcgis.com/home/webmap/viewer.html?webmap=5c7b10ac1e1c4f9ca35efbb505235625");
... View more
01-18-2018
12:37 PM
|
0
|
2
|
1288
|
|
POST
|
Documentation states: "You can create maps, share maps, and load maps into your app from ArcGIS Online or from any organization's portal." So tell me how to do it.
... View more
01-15-2018
10:55 AM
|
0
|
0
|
1288
|
|
POST
|
I expected this code to just plain work. mbasemap = new Basemap("https://crittersoft.maps.arcgis.com/home/webmap/viewer.html?webmap=5c7b10ac1e1c4f9ca35efbb505235625");
mbasemap.addLoadStatusChangedListener(this);
// create a map with the basemap
ArcGISMap map = new ArcGISMap(mbasemap);
However it fails with an exception.
"You do not have permissions to access this resource or perform this operation." Can I not access my maps from ArcGISOnline in the Runtime? That was my whole reason for putting them in there. This webmap is shared with Everyone. Nathan
... View more
01-15-2018
10:49 AM
|
0
|
4
|
1481
|
|
POST
|
I am creating what is to be a vector tiled map and have created sublayers for different levels of detail. Ie boundary_z0 boundary_z1 ... boundary_z13plus These correspond to scales in Google Maps/Arcgis Online. I want boundary_z0 to display at zoom level 0, boundary_z1 to display at zoom level 1, and so on. Where 0 is an alias to 591657527.591555E8 and 13 is an alias for 72223.819286, if you happen to think better with those kinds of numbers. This page has the answer to my question - I just don't understand it. Display layers at certain scales—ArcGIS Pro | ArcGIS Desktop "To avoid showing features from both layers when viewing your map right at these scale range boundaries, it has been common practice to set the Out Beyond scale range property of the more detailed layer to be one scale unit less than the In Beyond scale range property of the more generalized layer." I definitely want to avoid that. Or my tiles would be up to twice as big. "The drawback with this approach is that you can create a situation where no data at all draws at the interim scale. This is especially problematic if you intend to create a vector tile package from the map." Yeah, that would be bad if nothing draws in the in-between scales. And I *do* intend to create a vector tile package. "A better solution is to set both the In Beyond and Out Beyond scale range properties to the same scale in this situation, and set your map to draw up to and including the maximum scale in scale ranges" That's what I want to do then. But it isn't clear enough to me. An actual example would help. And are they saying we can "avoid showing features from both layers" or that we should just live with that problem? This recommended setting will "draw up to including the maximum scale". But will it also "draw down to, but not including, the minimum scale"? An important piece of information I find missing. I've started with this. Sublayer In beyond(maximum scale) Out beyond(minimum scale) boundary_z0 0 <None> boundary_z1 1 1 boundary_z2 2 2 .... boundary_z13plus <none> 13 But I think this is wrong. So is the correct solution this? Sublayer In beyond(maximum scale) Out beyond(minimum scale) boundary_z0 0 <None> boundary_z1 1 0 boundary_z2 2 1 .... boundary_z13plus <none> 12 or perhaps this? Sublayer In beyond(maximum scale) Out beyond(minimum scale) boundary_z0 1 <None> boundary_z1 2 1 boundary_z2 3 2 .... boundary_z13plus <none> 13 Or do I have to get fancier, create my own scales, and do something like this? Sublayer In beyond(maximum scale) Out beyond(minimum scale) boundary_z0 1.5 0.5 boundary_z1 2.5 1.5 boundary_z2 3.5 2.5 .... boundary_z13plus <none> 12.5 Thanks for any insight. I can't afford an "off by 1" error here.
... View more
01-09-2018
12:43 PM
|
0
|
0
|
1500
|
|
POST
|
Last time I read that article, I may not have looked deeply enough at Retain Relevant Attribution, because I may have assumed it meant "Keep Copyright Notices". The word attributions is used to mean that in other documentation: Attribution | API Reference | ArcGIS API for JavaScript 3.23 I will try it, because I think it is what I am looking for. If the schema is predictable, I can also work on the style independently of the data.
... View more
12-30-2017
01:21 PM
|
0
|
1
|
1177
|
|
POST
|
Vector Tiled maps show promise of allowing you to style them later in different ways. However, that doesn't actually work, does it? I have observed that ArcGIS PRO, when creating a vector tile package, strips all attributes it doesn't think it needs for the style defined on the map in ArcGIS PRO. For size, this is a good optimization. But we do not have control over what attributes are kept. In addition, it also changes the attributes it does keep to have names and value ranges of its own choosing. For example, there may a rule to apply a certain style to a line if height%100 =0. The resulting vector tile will have something like: "_symbol": "1" Making the attributes unrecognizable to anyone who would want to create changes to the style. What this means is that we would have to anticipate every possible style rule before exporting a Vector Tile Package. You could change colors later, but that is about all. If you colored all roads green, and later want to make the major freeways yellow and bolder, you are out of luck. So maybe you would want to get your first style right, and then come back to ArcGIS PRO to restyle, create a new style, and then export the style without exporting all the tiles again. But you can't do that either. If you managed to find a perfect style in mapbox vector style specification, you would have to reverse engineer all its rules and try to recreate them in ArcGIS Pro. I'll note that there are tools out there, even open source ones, that can create vector tiles in a more predictable fashion. However, ESRI has worked really hard to make sure that the server or runtime does not work with any vector tiles not created by ArcGIS PRO. Am I correct, or is there something I am missing?
... View more
12-29-2017
04:26 PM
|
0
|
4
|
1591
|
|
POST
|
Agreed on many points. I forgot to mention that the context for this is using the ArcGIS Runtime libraries in an offline scenario. In that context, the VTPK is very much a distribution format and is claimed as such in official documentation. In fact, it is the only format allowed by the runtime. Vector Tiles served from loose files on disk, in MBTiles format, or from any server that is not arcgis.com, are not allowed. MMPK and TPK formats do have tools that allow you to create a package that is a subset of the full package (like World Topographic Maps for instance). The VTPK does not, although that could change with some new runtime features. I'm okay with being the one to push the envelope. After all, the posted code says it welcomes contributions, and I may have some if I can figure this out. As a matter of fact, I found that this code may be misbehaving due to roundoff error, possibly due to the way later versions of python interpret types. With some modifications, I can get it to create compressed packages of vector tiles. However, there are still more hurdles to get it all to work correctly. In any case, it would be good to know if the trouble I am having is deliberate in order to stop people from using tiles from MapBox or somewhere else, or if it is simply that the tools haven't evolved enough yet.
... View more
12-29-2017
03:07 PM
|
1
|
0
|
3670
|
|
POST
|
Yes. It is apparent that although it shares the same name, compactV2, the algorithm for vector tiles compression must be different somehow. BTW, I did look through the sample code in Vundler.py. I do not see a single reason why it would fail based on whether the file in question is a PNG or PBF. It only cares about the size of the file and writes it completely intact. Do they plan to provide guidance for compressing vector tiles and just haven't gotten around to it, or is being kept in the dark a matter of deliberate policy, because they don't want us to repackage tiles? And does this whitepaper apply even if the sample code? raster-tiles-compactcache/CompactCacheV2.md at master · Esri/raster-tiles-compactcache · GitHub I would like ESRI to comment if possible. This influences whether we use ArcGIS for some projects.
... View more
12-14-2017
11:36 AM
|
0
|
1
|
3670
|
|
POST
|
VTPKs tend to be unforgiving if you try to modify them There is a tool - Extract package - that will extract the tiles and other files. There is no way I see of reversing the process. Simply zipping it back up (uncompressed) will not do, because it doesn't want the tiles in exploded format I found this link for packing files in your compactV2. GitHub - Esri/raster-tiles-compactcache: Compact Cache V2 is used by ArcGIS to store raster tiles. The bundle file struc… But is it meant to work on Vector tiles? The root.json of a vtpk will say: "resourceInfo":{"styleVersion":8,"tileCompression":"gzip","cacheInfo":{"storageInfo":{"packetSize":128,"storageFormat":"compactV2"}}}} It mentions "compactV2" which pointed me to this code. But some other things cause me to doubt. 1. The set of files becomes 50 times bigger. Not very compact. 2. ArcGIS Pro and ArcGISOnline cannot find any of the tiles in the new vtpk. I may have good reasons to use scripts to repackage tiles in vtpks. The vtpks often take days to weeks to generate and I might want to avoid redoing them just to get smaller areas.
... View more
12-07-2017
06:32 PM
|
0
|
10
|
4994
|
|
POST
|
I can reproduce the problem with a smaller map that is invisible. https://crittersoft.maps.arcgis.com/home/webmap/viewer.html?webmap=a3f7af6689fa46c0b3ff46274049291d I should mention some details that I did not know. This problem occurs on Chrome Version 62.0.3202.94 (Official Build) (64-bit) on macOS High Sierra. 10.13.1. I say that because that was the only browser I have been using. Using Firefox, the map appears as expected, though the first map still has missing tiles.
... View more
11-29-2017
12:15 PM
|
0
|
0
|
1457
|
|
POST
|
Yes, I did publish it from a vtpk file. How *do* I look at a VTPK file before publishing? Is there any way to do it on a PC? I looked at a smaller, sample one that I did before by writing code for .net runtime on an Android Tablet. This one is 46 GB and too big to test on my tablet. VTPK is shared: https://crittersoft.maps.arcgis.com/home/item.html?id=24049a08776349e084659b2ce8470344 Can you tell what the tile_structure parameter on this means in practical terms? Does it mean that it will leave out tiles on certain zoom levels? Create Vector Tile Package—Data Management toolbox | ArcGIS Desktop
... View more
11-28-2017
10:51 AM
|
0
|
0
|
1457
|
|
POST
|
Okay, what the heck is going on? With no changes whatsoever made by me, I now cannot see the "US Contours in Feet" layer, styled or otherwise. Is it completely gone? I don't know. I see occasional dust that looks like it is trying to draw the labels with a dot matrix printer. Is ArcGISOnline unreliable? Do you lose data randomly?
... View more
11-24-2017
09:36 AM
|
0
|
2
|
1457
|
|
POST
|
While I didn't find differences in the style, I found this in the info file: https://basemaps.arcgis.com/v1/arcgis/rest/services/World_Basemap/VectorTileServer "minScale": 591657527.591555, "maxScale": 70.5310735, My own says: "minScale":2.958287637957775E8,"maxScale":564.248588
However, I appear to be stuck with this for the rest of my life. I may have chosen the wrong setting on ArcGIS PRO or on export, but I can't change it. I can find this setting under Tile Layer (hosted) Settings However, it will not let me change it. There is no button - no editable field, and the Save and cancel are grayed out. It took two days to generate the .vtpk file. .vtpk files don't like you to change them manually. Plus about 12 hours to upload this. So I am a bit reluctant to do this to fix one number in one text file when I am not sure if it will work. Any advice? Any superadmin who can change it for me or give me access to change it?
... View more
11-22-2017
10:41 AM
|
0
|
3
|
1457
|
|
POST
|
Hi Kyle I'm new to it myself, but as far as I can tell, Open Street Map data is not hosted by ArcGIS Online. This web map is pulling tiles in real time from openstreetmap.org http://www.arcgis.com/home/item.html?id=b834a68d7a484c5fb473d4ba90d35e71 So your changes would appear here as soon as they appear on openstreetmap.org.
... View more
11-21-2017
08:58 PM
|
1
|
0
|
2086
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-29-2017 03:07 PM | |
| 1 | 04-14-2020 10:41 PM | |
| 1 | 11-21-2017 08:58 PM | |
| 2 | 06-01-2018 12:39 PM | |
| 3 | 05-30-2018 02:14 PM |
| Online Status |
Offline
|
| Date Last Visited |
01-22-2021
10:16 PM
|