|
POST
|
Hi Tony, is there a more efficient way to do this, I.E not having to make 2 rest calls? The approach you're using (of having a separate, generalized layer which you use as the highlight feature) seems like a sensible workaround to the problem of displaying a complex layer. To save the double-handling, you could simply run the Query directly on the generalized layer. That is, your map will contain a Dynamic layer pointing to the complex dataset (this is what the user will see). Set up a QueryTask which points to the generalized layer, and set a listener for the map's onClick event which runs a Query directly on the generalized layer (set Query.geometry to be the XY location clicked). The user never needs to know that the layer being queried is different to the layer being displayed. See this sample to get an idea of how it would work. Steve
... View more
08-24-2011
03:34 PM
|
0
|
0
|
1994
|
|
POST
|
I have been trying to send dozens of queries to retrieve data points with different parameters. Can you provide more details about what the app is actually doing? Perhaps there's a way to streamline the backend processes - for example, running these queries on the server as a geoprocessing tool? If it's unavoidable to run a series of long processes, it might be best to run them sequentially, and display an informative progress bar so people at least know what's going on. EDIT: is this the same problem as http://forums.arcgis.com/threads/37327-I-need-to-visualize-100k-records ? If so, some sort of geoprocessing model, which is run once on the server and returns a (possibly raster) result, might be one way to approach this Cheers, Steve
... View more
08-24-2011
03:12 PM
|
0
|
0
|
1550
|
|
POST
|
yep, that's why I hate multiple-choice questions which are answered by a computer.....
... View more
08-23-2011
10:34 PM
|
0
|
0
|
1039
|
|
POST
|
Hi Kelly, That works well for a Text popup - but do you know how to open a URL popup at the Content Url parameter? The sample attached returns an iFrame linking to the REST URL (eg this example), rather than actually opening the Content Url itself. So rather than seeing this in the popup, I'd like to see this (the URL specified in Content Url). Thanks, Steve
... View more
08-23-2011
04:14 PM
|
0
|
0
|
2272
|
|
POST
|
Elliot, The documentation under > Toolbars > Edit shows the events which are fired by the editor. Calling deactivate will close the editor. Steve
... View more
08-23-2011
03:42 PM
|
0
|
0
|
700
|
|
POST
|
Ben, It's hard to test this exactly since we don't have access to your internal server, but here are some suggestions. Define startExtent before assigning it to the map:
var spatialRef = new esri.SpatialReference({wkid:102100});
var startExtent = new esri.geometry.Extent();
startExtent.xmin = -9879338;
startExtent.ymin = 5286787;
startExtent.xmax = -9878257;
startExtent.ymax = 5287623;
startExtent.SpatialReference = spatialRef;
map = new esri.Map("mapDiv",{extent:startExtent });
Rather than calling:
dojo.addOnLoad(init);
dojo.addOnLoad(initParking);
call initParking in the map's onLayersAddResult event:
dojo.connect(map, "onLayersAddResult", initParking);
Does that make any difference? Steve
... View more
08-23-2011
03:10 PM
|
0
|
0
|
1361
|
|
POST
|
In ArcMap, you can configure an HTML Popup for a layer. Can we access this in ArcGIS Server using the JS API? Or do we need to build our own version of this using an infoWindow or (JS API) popup dijit? The sample ArcGIS Server lists: HTML Popup Type: esriServerHTMLPopupTypeNone which implies that the HTML popup is carried through to ArcGIS Server. Thanks, Steve
... View more
08-22-2011
06:14 PM
|
1
|
7
|
6407
|
|
POST
|
I got an email from ESRI today showing how to add shapefiles, textfiles or GPS files to an ArcGIS.com map, including by drag+drop (details here if you missed it). This looks great - can we do the same using the JS API directly? The sample here shows how to use drag+drop but I'm more interested in the ability to load a local shapefile, using an Add Data methodology (so it'll work on IE and Safari). Could we have a sample showing how to add a local shapefile to a JS API map? Thanks, Steve
... View more
08-22-2011
04:01 PM
|
0
|
0
|
763
|
|
POST
|
Hi Francesco, ESRI don't support the Google Maps API v3 directly. Try the page at http://google-maps-utility-library-v3.googlecode.com/svn-history/r172/trunk/arcgislink/docs/reference.html to use ArcGIS Server layers in the Google Maps API v3. Another option is to use the ArcGIS Server JS API, and use Google Maps as a background layer: http://gmaps-utility-gis.googlecode.com/svn/tags/gmapslayer/1.0/docs/examples.html Steve
... View more
08-21-2011
03:42 PM
|
0
|
0
|
806
|
|
POST
|
may i take the source code of this viewer and rewrite it to fit into my portal? As far as I know, that's not possible. Unlike with the Flex Viewer and Siliverlight Viewer, there is no "JavaScript Viewer" which you can download and rewrite. The closest thing you can do simply is to use ArcGIS.com to generate a map template. The help file entry Using ArcGIS.com Templates might help. Otherwise, you'll need to build your own application using the samples as a starting point. Good luck, Steve
... View more
08-18-2011
05:19 PM
|
0
|
0
|
818
|
|
POST
|
I can reproduce that too, using the sample map at http://help.arcgis.com/en/webapi/javascript/arcgis/demos/toolbar/toolbar_navigation.html (choose the Zoom In tool, draw a rectangle but don't release the left mouse button, and hit the right mouse button) A simple workaround is to remove the Zoom In and Zoom Out tools, and just use the map's native behaviours (SHIFT-drag to zoom in, CTRL-SHIFT-drag to zoom out)
... View more
08-17-2011
11:04 PM
|
0
|
0
|
623
|
|
POST
|
query.where ="Upper(STATE_NAME) like '%" + stateName.toUpperCase() +"'%"; Just to add to this - using Upper() in the query seems to slow it down dramatically. I found it much faster to convert the values to uppercase in the geodatabase (in an edit session within ArcMap), and simply use:
query.where ="STATE_NAME like '%" + stateName.toUpperCase() +"'%";
Steve
... View more
08-17-2011
04:42 PM
|
0
|
0
|
2136
|
|
POST
|
David, You could look at clustering the points - the map here shows an example of this. I used the clustering code from the Resources page, and fed it an array of all the points, which it then returns as clustered points. I've tested with around 10k points and it works fine - you may see a slowdown with 100k and 1M points. Steve
... View more
08-16-2011
04:57 PM
|
0
|
0
|
1374
|
|
POST
|
David, John Grayson's response to a question of mine might give some pointers. You may be able to use Deferred and its Fired properties to determine which response corresponds to which query, or to wait until the previous response has been received before you send the next query. Steve
... View more
08-16-2011
04:53 PM
|
0
|
0
|
1550
|
|
POST
|
If available, you could use the '/layers' REST endpoint to get back all the information you need in a single call. Thanks as always, John.
... View more
08-16-2011
12:51 PM
|
0
|
0
|
2632
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2014 08:45 PM | |
| 1 | 03-15-2011 04:23 PM | |
| 1 | 10-18-2019 12:50 AM | |
| 3 | 01-22-2019 02:33 PM | |
| 1 | 09-26-2011 10:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-20-2022
12:19 AM
|