Combination of tiled and dynamic map service

3461
11
07-11-2016 05:53 AM
MU
by
New Contributor III

Hey,

I'm trying to build an application which contains one tiled and one dynamic map service. The tiled map service has the following tile levels:

1:80000

1:40000

1:20000

1:10000

1:5000

1:2500

So, the service's MaxScale property is 2500.

For larger scales (e. g. 1:500), I want to use the dynamic map service. Unfortunately, within my JavaScript application I can only zoom in up to 1:2500, further zooming either with the buttons or the mouse wheel is not possible and results in panning the map.

Why is this happening? Is it a limitation of the JavaScript API?

Regards and thanks in advance

PS: I've used the JS APIs 3.17 and 4 - same behaviour.

0 Kudos
11 Replies
TimWitt2
MVP Alum

Here is an example of custom LODs Set visible scales | ArcGIS API for JavaScript 3.17

MU
by
New Contributor III

Thanks a lot for your quick responses! But sorry, I don't understand why I should overwrite the defined tile levels!? I don't want to make the job twice: I have already defined my tile levels within the map service. For every larger scale, I don't want to use the flexibility of free zooming.

In fact, I want to achieve the same behaviour like in ArcMap or WPF.

0 Kudos
TimWitt2
MVP Alum

With LOD's you can zoom in closer than 1:2500 and with that you should be able to see the dynamic map service,

0 Kudos
MU
by
New Contributor III

Okay, your approach is working. But with this, I would have to extract the LODs of the tiled map service (to preserve the initial levels) and extend those levels for some hard-coded levels for a "dynamic behaviour". Correct?

0 Kudos
TimWitt2
MVP Alum

To line them up, yes.

0 Kudos
MU
by
New Contributor III

Do you know whether there are some enhancements in the newer API v4? For this special purpose (combination of tiled and dynamic data), the API seems to me very impractical and not "dynamic".

0 Kudos
SubuSwaminathan1
Occasional Contributor

M U

Please note the following bugs/enhancement requests . You might want to check if they affect you.

BUG-000086266-The resampling and resamplingTolerance property of ArcGIS TiledMapService layer does not display layers beyond its defined LODs.
BUG-000085544-Cached Map Service doesn't resample consistently in all scales in ArcGIS Online
ENH-000088462 : The ArcGIS API for JS documentation does not state that for resampling option for published tiled map service on ArcGIS Online custom LODs can not be used.

The above issues has really affected us as we use our own custom state plane based tiling scheme and we are unable to zoom in between or beyond LODs even if they have been defined in the tiling scheme. We were developing in JSAPI 3.1X.

0 Kudos
AdrianMarsden
Occasional Contributor III

OK - I had a similar issue a few year's back.  I wanted to a basemap that was tiled at zooms of 1:lots to about 1:5,000.  Then after that freshly produced mapping from the vector source.

The high level stuff doesn't change that much and is used for quick location purposes.  The detailed stuff is OS MasterMap that updates every two months.

I didn't want my users to have only a fixed number of zooms - my users want to print out to scale at all sorts of scales - I cannot second guess the scales they would want.

So, this is what I did

  • Created a map service for scales of 1:lots to 1:5,000 using the OS vector map products
  • Set a nice set of scales to tile this service
  • generated the tiles - this took a while
  • Created another MXD.  This time it had my detailed stuff in  AND the tiles created from the first service as a layer.
  • I creates a dynamic service from this MXD.  This is the one I use for my basemapping.

The result is that the users may get a slightly odd looking map at scales between the tiled map levels, but this isn't important.  The important thing is getting freshly produced basemapping, straight from the vector source at ALL scales below 1:5000.


A hack - but it works for me

ACM

0 Kudos