|
POST
|
Yes, you can do this with the print task. Our samples focus on the print widget because this is what the large majority of our users have requested. The print task works like the other tasks in the API??? specify a URL and parameters, call execute method and once the task finishes, the result (in this cause, a URL for the print output) is passed to the callback function supplied to execute.
... View more
06-26-2012
10:41 AM
|
0
|
0
|
1048
|
|
POST
|
This is not possible in the current release (3.0) but we plan to add this in the future.
... View more
06-26-2012
10:35 AM
|
1
|
0
|
1601
|
|
POST
|
Good to know you're using a dynamic layer. You don't need to wait for the map to load to add the layer to your map. Do you see a request for <Nielsen Layer URL>/export when your app loads? How long does that request take to complete? You can check this in Chrome or Firefox's dev tools. Or with a tool like fiddler.
... View more
06-26-2012
10:34 AM
|
0
|
0
|
1608
|
|
POST
|
The print widget sample shows one way to draw circles with the radius defined by a user.
... View more
06-26-2012
10:26 AM
|
0
|
0
|
1159
|
|
POST
|
Is the layer that's not displaying an ONDEMAND mode feature layer? Try adding your layer after the map's onLoad event fires. This is shown in the "On Demand Mode" Feature Layer sample.
... View more
06-25-2012
12:27 PM
|
0
|
0
|
1608
|
|
POST
|
I think your latest testing points to an issue with your web server. Again, I would check that your IIS instance is configured to serve JSON.
... View more
06-25-2012
10:04 AM
|
0
|
0
|
1346
|
|
POST
|
What are the specific errors you're seeing? Do you see the same errors when you load the copy of the sample we host: http://help.arcgis.com/en/webapi/javascript/arcgis/demos/layers/layers_point_clustering.html
... View more
06-22-2012
07:25 AM
|
0
|
0
|
1346
|
|
POST
|
Glad to help. Attached is what I see when I used enable-cors.org to check if CORS is supported on services.arcgisonline.com. That server is not set up for CORS.
... View more
06-20-2012
08:39 AM
|
0
|
0
|
2051
|
|
POST
|
Have you tried using ONDEMAND mode? Even though you only have 17 records, you're using polygons and I'm guessing those are pretty detailed geometries. Loading a couple of MB of geometry would be plenty to cause what you're describing in IE. Since you're using 2.8, ONDEMAND mode will generalize features on the fly for the map's current zoom level and feature geometry will be updated as the map zoom level changes. SNAPSHOT mode does not do this and retrieves each feature's full geometry. Using ONDEMAND, you should see a performance improvement in all browsers, not just IE.
... View more
06-20-2012
06:40 AM
|
0
|
0
|
773
|
|
POST
|
Hi John, You can safely ignore these errors. There's info about this in the doc for esri.request (specifically, the bullet for 3.0). Kelly also posted about this a couple of days ago: http://forums.arcgis.com/threads/59988-Issue-Upgrading-to-version-3.0?p=207055&viewfull=1#post207055
... View more
06-19-2012
09:54 PM
|
0
|
0
|
2051
|
|
POST
|
As an addendum, this in fact causes faulty behavior if, as in that sample, the next feature you mouse-over features a value of 0 for some of its data--the corresponding gauge will remain filled in to whatever value you manually input by clicking on the gauge. It's a bug. We'll fix this in the next release.
... View more
06-19-2012
01:49 PM
|
0
|
0
|
758
|
|
POST
|
The data used for clustering is in a .json file. Is your IIS instance configured to serve JSON?
... View more
06-19-2012
01:37 PM
|
0
|
0
|
1346
|
|
POST
|
I've got problem, I'm creating map based application, and now I have to add to map about 100 000 graphic points, from coordinates. I was trying in many ways to do it, but always process of adding points takes about 7-10 secounds, or my web browser just hang on. is it even possible to add this amount of data to map without having problems with performance? thanks for any advices!:) This is a bad idea. Even if performance weren't an issue, interacting with 100k is a poor user experience. Clustering is one option, but will likely still be slow. A heat map and/or scale dependency (only show your points when the map is at a large scale where only a few hundred, or maybe thousand points would be displayed) would probably be a better way to display your data. We also have a help topic on displaying lots of point data: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/limits_for_graphics.htm
... View more
06-19-2012
08:28 AM
|
0
|
0
|
3919
|
|
POST
|
On Bing maps I just confirmed that MAP_STYLE_AERIAL_WITH_LABELS is what doesn't print vs your version of MAP_STYLE_AERIAL. Strangely similar to the textsymbol bug. Thanks. Also a bug...the print dijit is sending the wrong layer.type property to the print service. It is sending "BingMapsaerialWithLabels" instead of "BingMapsHybrid". Here's a workaround: http://jsfiddle.net/axPwz/ The key is using esri.setRequestPreCallback to update the JSON that's sent to the print service. Here's the relevant code:
function fixBingHybrid(ioArgs) {
// look for requests to the print service
if ( ioArgs.url == app.printUrl + "/execute" ) {
var webmapJson = dojo.fromJson(ioArgs.content.Web_Map_as_JSON);
// check that the webmap JSON has operational layers
// bing is always considered an operational layer
if ( webmapJson.operationalLayers.length ) {
dojo.forEach(webmapJson.operationalLayers, function(lyr) {
// correct the type property for the bing hybrid layer
if ( lyr.type && lyr.type == "BingMapsaerialWithLabels" ) {
lyr.type = "BingMapsHybrid";
}
});
ioArgs.content.Web_Map_as_JSON = dojo.toJson(webmapJson);
}
}
return ioArgs;
}
And this line in the init function:
esri.setRequestPreCallback(fixBingHybrid);
... View more
06-19-2012
07:46 AM
|
0
|
0
|
2369
|
|
POST
|
Thanks. Looks like the text symbol issue is a bug. I'll post a bug ID to track it once I've confirmed. I see bing maps in the print output here: http://jsfiddle.net/zKaVn/
... View more
06-18-2012
02:37 PM
|
0
|
0
|
2369
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2012 07:54 AM | |
| 1 | 05-28-2010 08:31 AM | |
| 1 | 11-12-2012 08:12 AM | |
| 3 | 02-23-2012 10:57 AM | |
| 1 | 06-27-2011 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|