POST
|
It seems like I've built a decent lod array. I'll have to play with it some more to make sure it works everywhere, but my issue is resolved. Thanks for your help.
... View more
08-16-2013
10:31 AM
|
0
|
0
|
139
|
POST
|
The documentation led me to believe there was not a way to do that with the Dynamic maps, only the Tiled. I'm afraid I'm more of a tech drafted to work with GIS than someone experienced with Esri software. Will a map service that supplies a Dynamic map provide a Tiled map, can a Dynamic map have it's LOD array set, or would I need to have the GIS people adjust something on the server to provide a Tiled map?
... View more
08-15-2013
10:10 AM
|
0
|
0
|
878
|
POST
|
rMap.map.disableScrollWheelZoom();
on(dom.byId(a),(!has("mozilla") ? "mousewheel" : "DOMMouseScroll"), function(e){ scroll(e) });
on(map,"zoom-end",function(){locked=false;applyZoom()});
on(map,"zoom-start",function(){locked=true;newScale=-1;});
var newScale = -1;
var locked = false;
var timer;
function scroll(e)
{ var s = e[(!has("mozilla") ? "wheelDelta" : "detail")] * (!has("mozilla") ? 1 : -1);
if( !locked )
{ rMap.map.onZoomStart();
newScale = rMap.map.getScale();
}
if(s>0) newScale = newScale*0.8;
else newScale = newScale*1.2;
clearTimeout(timer);
timer = setTimeout(function(){rMap.map.onZoomEnd();},1500);
}
function applyZoom()
{ rMap.map.setScale(newScale);
} This correctly queues the scale change up on the client and commits it to a server request as one transaction. The problem is that it does not provide user input that it is doing so (the default behavior of the map object uses a matrix transform on the image to show it zoom in or out.) If I submit a setScale() call with each mouse event, the user has to wait for the map to update before they can submit another. I guess what I want to know is if there's a way to call the function responsible for that transform in the map object, or duplicate it in a way that will not interfere with the map object and/or break on a framework update.
... View more
08-15-2013
05:14 AM
|
0
|
0
|
878
|
POST
|
You don't have quotes around your second value. It sounds like you're having more than one problem with the syntax though. Can you provide more detail? Is it throwing an error or just returning an empty dataset?
... View more
08-13-2013
01:57 PM
|
0
|
0
|
505
|
POST
|
I have found a workaround that I do not favor overly much. The rate of zoom on a dynamic map is hardcoded in the _extentUtil function in _coremap.js, but I don't want to rely on an edited framework so I will continue looking for some point to rejoin the normal execution path after overriding capture of the mousewheel events but before a full call to setScale.
... View more
08-12-2013
01:23 PM
|
0
|
0
|
878
|
POST
|
I have the zoom values front-loaded so that they fire as one event when the user stops scrolling. I just can't figure out how they scale the map graphic.
... View more
08-12-2013
08:16 AM
|
0
|
0
|
878
|
POST
|
Do you have any idea what function or hook, the default scroll method uses to front-load the zoom events on the client instead of running each individual step on the server? What I mean is that with the default mouse scroll it will zoom the map in or out as long as you are scrolling and then once you stop it hits the server to update the graphics. Is there documentation for the javascript map object functions that would allow me to duplicate this behavior? The only documented functions and events seem to act on a discrete back-and-forth with the server.
... View more
08-12-2013
07:12 AM
|
0
|
0
|
878
|
POST
|
Is there a way to change the amount scale is increased/decreased by the mouse click and mouse scroll wheel navigation events on a Dynamic Map? Failing that, is there a way to override the core portion of these functions?
... View more
08-09-2013
11:56 AM
|
0
|
11
|
2098
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|