POST
|
Yes, run the definition query in sql (we use Java JDBC) and use st_geometry functions to get the min and max for the returned features. Then set the map extent to those values.
... View more
01-13-2016
09:47 AM
|
0
|
1
|
809
|
POST
|
We are having the same problem, and yes we are using code that looks like that.
... View more
02-18-2011
11:19 AM
|
0
|
0
|
194
|
POST
|
there are also these methods: esri.geometry.webMercatorToGeographic(geometry) esri.geometry.geographicToWebMercator(geometry)
... View more
01-03-2011
11:55 AM
|
0
|
0
|
248
|
POST
|
Yes, it's beginning to look like I will have to perform an identical definition query back on the server/database in SQL (maybe use st_geometry), get the coordinates from the database and send them back through to the javascript to set the new extent. Yuck. I'm just not seeing any other way. I can't use the 'out-of-the-box' querytask functionality, there is no way the Javascript API is going to perform reasonably with thousands of graphic features streaming back to the client in order to get the new extent.
... View more
12-01-2010
05:23 AM
|
0
|
3
|
809
|
POST
|
Here's some things I found: ArcGISDynamicMapServiceLayer is a subclass of DynamicMapServiceLayer, and DynamicMapServiceLayer DOES have FULLEXTENT and INITIALEXTENT properties. var lyrFullExtent = lyr.fullExtent var lyrInitExtent = lyr.initialExtent They both return an EXTENT object, so then you can use lyrFullExtent.minx, lyrFullExtent.maxx, etc. . . . But, unfortunately, the returned values do not seem to honor the definition query that was set on the layer. These values match the values on the /rest/services page for the layer. The fullExtent looks like the actual outer extent of the whole layer itself. The initialExtent makes no sense, it does not even match the extent of the MSD's dataframe. Not sure how this gets set for the service. Can anyone shed light on where/how the initialExtent gets set for a service?
... View more
11-30-2010
12:10 PM
|
0
|
0
|
809
|
POST
|
I don't see any methods that zoom to the extent of a Dynamic layer. Am I missing it somewhere? What I'm doing is filtering a arcgisdynamicmapservice layer by adding a definition expression, and then would like the map to zoom to the extent of the definition expression. I know in ArcMap, when you right click a layer and choose 'zoom to layer', it honors the definition expression, so I would assume that ArcGIS Server would also do this. But, doesn't seem to be any way in the Javascript API to zoom to the extent of a Dynamic Layer anyway? The layers I'm using are way too large - so I can't convert them to graphics and then zoom because of performance (potentially i need to zoom to the extent of 100,000 points).
... View more
11-30-2010
07:28 AM
|
0
|
8
|
4379
|
POST
|
Kelly, Unfortunately, my code is thousands of lines in many seperate dijits. I'll try to pinpoint exactly where it is happening with console.log and post that piece. It seems right now to only happen at lod.scale = 36,111.909643 and below.
... View more
11-19-2010
12:45 PM
|
0
|
0
|
236
|
POST
|
Kelly, No, I cannot reproduce it on the few samples that I tried. Do you know what esri.bundle refers to in the JSAPI code? Any idea what kindof things might be causing my application to have problems with this?
... View more
11-15-2010
09:09 AM
|
0
|
0
|
236
|
POST
|
Since last week, I get this error quite frequently and randomly on pan and zooms, etc. . . i can see it in the console.log of Firefox. Is this just a problem with accessing the JavaScript API over the web? I haven't made any major code changes, just some slight JSLint validation corrections. Is anyone else getting this on a regular basis? Is the answer to download the JavaScript API and imbed it in my application?
... View more
11-15-2010
08:02 AM
|
0
|
4
|
663
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|