indeterminate resampling of cached imagery

3458
6
Jump to solution
10-28-2015 11:00 AM
MarshallBoyd
New Contributor II

I'm curious if there has been any news on being able to see cached imagery at scales that are not cached.  For instance, if I set my cache at 1128,2256,4512,[...] I would like to see this mapservice at 300 scale or 1200 scale.  Is this on the horizon in 4.0? Or what recommendations would be suggested to try to do this.  Currently, I have one cached mapservice that is set to 282,564,1128,2256,4512,[...] so the application will go to those lower scales and I have a dynamic service that is viewable from 250 to 1127.  But, I would rather just resample my cache to increase speed.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor

Marshall Boyd​ - It is possible to go to specific scales that were not cached with the JSAPI 4.0 beta 1.

You have to opt in by setting the view constraints to false for snapToZoom.

See code example at http://jsbin.com/wotodo/edit?html,output.

API Reference: MapView | API Reference | ArcGIS API for JavaScript

View solution in original post

0 Kudos
6 Replies
BjornSvensson
Esri Regular Contributor

Marshall Boyd​ - It is possible to go to specific scales that were not cached with the JSAPI 4.0 beta 1.

You have to opt in by setting the view constraints to false for snapToZoom.

See code example at http://jsbin.com/wotodo/edit?html,output.

API Reference: MapView | API Reference | ArcGIS API for JavaScript

0 Kudos
MarshallBoyd
New Contributor II

Great information and excellent example.  In that example I added an ArcGISTiledLayer it it appeared to render fine at every scale I set the view.scale to down to view.scale = 10000. 

var tiledLayer = new TiledLayer({

          url: "[my cached tile service]"

        });

        map.add(tiledLayer);

However I was curious if the new API will allow for going below the lowest Cached Tile as it did in the old Silverlight API?  For instance, if I didn't want to cache down to 282 for space reasons and only cached down to 1128, I could go into ArcGIS Server Manager and set the Maximum Scale to 250 then override the max scale in my silverlight application and this Cached service would render all the way down (Pixelated of course) to 250 with my Dynamic Map Services showing as an overlay.

I look forward to your response and will continue playing in the sandbox to see what I can do.

0 Kudos
RyanKelso
Occasional Contributor III

Any resolution to this?  I also want to be able to zoom in further than my maximum cached scale, even if it means that I see a pixelated image.  Pretty much what the esri image basemap service does.

0 Kudos
MarshallBoyd
New Contributor II

Ryan,

From Bjorn's answer and reading about the functionality in the new javascript API, it appears to be on the horizon.  For the time being, I am creating an empty cached service that goes down to whatever minimum scale I want it to be.  So if using the google/bing/arcgis scale, it goes something like

[...]

1128.49722 (standard minimum scale)

564.24861

282.124305

141.062153

70.531077

I serve this up, but I don't actually create the cache but rather I double host all my other cached services.  Maintaining the cache to 1128.49722, then having a dynamic service that is visible starting at 1128.  It is slower than cached services, but at least you're able to view something and not have to take up all the memory at the lower scales.  Have a look at my site centerline, parcels, and 2014 aerials are cached to 1128, and then dynamic after that.

https://gis.miottawa.org/ottawa/geocortex/propertymapping

(I think this one is only necessary to go to 282)

RyanKelso
Occasional Contributor III

Thanks I'll check it out!

0 Kudos
RyanKelso
Occasional Contributor III

Marshall Boyd

If you are still wanting to get this tile resampling feature working, check out my post here -  https://community.esri.com/thread/173082#comment-672159 

0 Kudos