|
POST
|
I'm seeing an error message in FireBug: Error: Internal kml parser error.http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2compact Line 34 I'm not worried about fixing this error for the moment - I'd like to know how can I trap the error, so I can report it to the user? The map has an onLayersAddResult event, which contains an Error handler. Is there a similar map-level error handling event which would trap the above KML parser error? It seems like the map object needs an onError() event. Thanks, Steve
... View more
11-11-2012
04:05 PM
|
0
|
6
|
1715
|
|
POST
|
I didn't find an answer, but didn't end up doing this project anyway. I'd also be interested if you find an answer.
... View more
11-11-2012
01:24 PM
|
0
|
0
|
714
|
|
POST
|
Is there a document which shows which versions of ArcGIS Server are supported on which versions of the JS API? For example, a client is still running ArcGIS Server 9.3. Can I use version 3.2 of the JS API, or will I need to revert to an older version? Thanks, Steve
... View more
11-01-2012
02:28 PM
|
0
|
1
|
1014
|
|
POST
|
Is it possible to use Dynamic Layer? Take a look at the visibleLayers property. You'd use something like this:
var educationLayer = new esri.layers.ArcGISDynamicMapServiceLayer(
"http://webgis.arizona.edu/ArcGIS/rest/services/webGIS/Demographics/MapServer",
{visibleLayers: [0]}
); in order to create a dynamic layer showing only the education (layer 0) dataset. Perhaps try modifying one of the sample dynamic maps with your own data to verify that it works. Ensure that you include a reference to dynamic layers: dojo.require("esri.layers.agsdynamic"); Steve
... View more
10-31-2012
06:17 PM
|
0
|
0
|
1473
|
|
POST
|
Could it be because of the file size of the layer? There are a lot of fields in the layer. While there are a lot of fields, you're doing the right thing in terms of limiting them to just the ones you need.
var ftrLyr = new esri.layers.FeatureLayer(result,{
mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
outFields: ["NAME","STATE_NAME"]
});
I think the problem is due to the size of the layer - the soil layer is about 2Mb in size, which will take a while to download. At the full scale, you're showing hundreds of tiny polygons which are too small to discern anyway. Is it an option to generalize the layer, and show States rather than Counties (or whatever) at this scale? Then show the more detailed polygons when you zoom in. You could also try using a Dynamic or Tiled layer - there's nothing in your application which seems to require a Feature layer, which involves downloading the actual vectors to the client. Steve
... View more
10-31-2012
06:02 PM
|
0
|
0
|
1473
|
|
POST
|
Can you tell me if the generateRendererTask works on a dynamicLayer or featureLayer? Hi Miri, Please mark this thread as answered by clicking on the tick, and post this as a new question. This helps other people to use these forum posts to find answers more easily. Cheers, Steve
... View more
10-28-2012
01:42 PM
|
0
|
0
|
1170
|
|
POST
|
Ideally, it "just feels right" and isn't directly noticed by users I use Google Maps all the time, but I still had to fire it up and test it out to see what this thread was asking for. Now that I've noticed it, I want it too.
... View more
10-25-2012
05:05 PM
|
0
|
0
|
2207
|
|
POST
|
I cannot, however, prevent the popup from displaying the title in place of the nav info You could over-write the popup's title with a blank string using something like: map.infoWindow.setTitle("") Steve
... View more
10-24-2012
01:50 PM
|
0
|
0
|
3197
|
|
POST
|
Thanks Stevel. I tried that as well, still it was giving me the same error. Any thoughts? Can you post your whole code (or at least enough to reproduce the problem)? Cheers, Steve
... View more
10-23-2012
08:22 PM
|
0
|
0
|
1479
|
|
POST
|
Note that the help file for graphicsLayer says: The graphics object is available to use after the Map.onLoad event. So you should place your code below inside an event which runs once the map has loaded:
dojo.connect(map, "onLoad", function() {
var pt= new esri.geometry.Point(x,y,sr);
var sms= new esri.symbol.SimpleMarkerSymbol(...);
var label = new esri.Graphic(pt,sms);
map.graphics.add(label);
});
... View more
10-23-2012
08:03 PM
|
0
|
0
|
1479
|
|
POST
|
This sample shows how to change the symbol of a graphic when it's selected. > So the question is: If I stored the graphic object in a variable, how can I find it again in the map.graphics array? The sample shows how to select/unselect all features, which is an approach you could take too. Another option is to add the graphic(s) to an array when you select them, then process that array to change the symbols when a new feature is selected.
... View more
10-23-2012
07:59 PM
|
0
|
0
|
692
|
|
POST
|
Thanks for your reply....but is it essential ?? because I have used this in my application and not able to see the big difference after using this.. Try something like this:
//Run this code to start the listener
listener = dojo.connect(layer,"onMouseOver",function(evt){
//do something on hover
}
//run this code to disconnect the listener
dojo.disconnect(listener)
... View more
10-23-2012
04:00 PM
|
0
|
0
|
1127
|
|
POST
|
I'm seeing the same thing as Derek, ie it appears to work. I'm using Mountain Lion with Firefox 15 and Safari 6.0.1. Firebug doesn't show any errors.
... View more
10-15-2012
02:52 PM
|
0
|
0
|
1308
|
|
POST
|
The scale property applies to the map, not the individual layer, so you canuse map.getScale() to display it. You can get the map's level using map.getLevel(), but as you identified this only applies if there is a tiled layer in the map.
... View more
10-14-2012
07:47 PM
|
0
|
0
|
563
|
|
POST
|
Sorry, you're obviously right. I don't know why I made that simple mistake. Thanks!
... View more
10-11-2012
03:30 PM
|
0
|
0
|
1186
|
| 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
|