POST
|
Like I thought, it was something simple. Mainly that I am a moron. Not even really worth sharing - sorry to waste your time and thank you for your help. Cheers! Justin
... View more
01-10-2014
05:29 AM
|
0
|
0
|
367
|
POST
|
Hi Derek, Thanks for the quick response. The map has long been initialized in this case (it has already been drawn on with other objects) and that all works fine. I essentially have the same code that you are showing, but since it is a large app and runs behind a firewall, it is really hard to post everything. The only difference that stands out is that I have two maps on the screen at once, although I disabled the second map and still a no go. It is strange too - on your sample drawing it is really smooth and I notice that when I try to draw on mine it is really "herky-jerky" - so much so that the tool tip sometimes can't keep up with the cursor. Perhaps the API is throwing and buryingexceptions? Is there anyway to see if that is the case? Thanks again for the suggestions. Cheers, Justin
... View more
01-10-2014
05:07 AM
|
0
|
0
|
367
|
POST
|
I have a strange one here and am sure that I am just missing something silly. I am using the latest version of the API in conjunction with ESRI's world street map service. Basically when clicking-dragging the mouse with the draw toolbar, nothing but the tool tip appears on the map. After letting go of the mouse button, the draw-end event fires correctly and I am able to draw the geometry on the map... It works - but is confusing. I have similar code working using an older version of the API. ESRI's samples all work as expected in the same browser above as doos my older API code - so not a browser issue. There is a graphics layer on the map, but it still doesn't work even if remove that. Anyone seen something similar or have any thoughts? Code: (Initialization) scToolBar = new esri.toolbars.Draw(self.map); scToolBar.on("draw-end", spatialConstraintDrawn); ... (when drawing starts - this is in another function activated by a button click) self.map.disableMapNavigation(); scToolBar.activate(esri.toolbars.Draw.EXTENT); Thank you for any thoughts or ideas! Justin
... View more
01-09-2014
05:08 AM
|
0
|
3
|
543
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|