|
POST
|
Sorry that didn't work. It's been a while ago, but I recall encountering this. It was a printing out of IE problem. I think the raster layers print but are rendered as solid white. You can test this by changing the background color of the map. You might try setting the z-index of the map element to 1. Honestly, the print task is worth getting 10.1 if you need easy printing. There is always the custom print task route too. At one time the St.Louis esri office had a 10 print task in the code gallery (which I assume morphed into the out-of-box 10.1 print task). But it's one of those great items that has "mysteriously" vanished as the version number has increased.
... View more
06-06-2013
08:56 AM
|
0
|
0
|
1673
|
|
POST
|
The callback on applyEdits returns the objectId of the new feature. In the add feature callback function update the attribute and send it back for an update. //create "feature"
app.editLayer.applyEdits([feature], null, null, function (response) {
console.log('feature added');
feature.attributes.SOME_OTHER_FIELD = response.addResults[0].objectId;
app.editLayer.applyEdits(null, [feature], null, function (response) {
console.log('feature updated');
}, function (error) {
console.log(error)
})
}, function (error) {
console.log(error)
});
... View more
06-06-2013
08:18 AM
|
0
|
0
|
2819
|
|
POST
|
Do you have Print Background Colors and Images checked in Page Setup?
... View more
06-06-2013
07:30 AM
|
0
|
0
|
1673
|
|
POST
|
Set the following on app load: esriConfig.defaults.map.panDuration = 0;
... View more
06-06-2013
06:54 AM
|
0
|
0
|
1392
|
|
POST
|
It worked in IE 8, which is still our default browser. Great. I need to update mine as dojo.attr is depreciated anyway.
... View more
06-04-2013
12:55 PM
|
0
|
0
|
1439
|
|
POST
|
Here's one way to connect to minimize icon of a floating pane. Doesn't work in IE <= 8. var minNode = dojo.query('#tools-measure-floating-pane .dojoxFloatingMinimizeIcon')[0];
dojo.attr(minNode, 'onclick', 'app.tools.measure.clear()');
... View more
06-03-2013
01:11 PM
|
0
|
0
|
1439
|
|
POST
|
The alternate query bug (http://support.esri.com/en/bugs/nimbus/TklNMDg2MzQ5) is causing problems with feature layer created from MapService with both snapshot and ondemand modes. This does not happen with a FeatureService. Snapshot mode can be worked around by setting the definition expression like: var time = new Date().getTime();
parks.setDefinitionExpression(time + '=' + time); Ondemand cannot be "tricked" in this manner because it often makes more than one request call. My question is can a feature layer in some way be set to usePost like esri.request? Thanks.
... View more
05-23-2013
03:23 PM
|
0
|
0
|
794
|
|
POST
|
Use esri.graphicsExtent(). Find it's reference here http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/namespace_esri.html.
... View more
05-22-2013
07:36 AM
|
0
|
0
|
385
|
|
POST
|
http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.all#ArcGIS_API_for_JavaScript Instructions included.
... View more
05-22-2013
07:27 AM
|
0
|
0
|
512
|
|
POST
|
Just so you know: Firefox, Chrome, etc will ignore that sort of thing, but IE won't. When an app breaks in IE it's almost always an extra comma or a missing semi-colon.
... View more
05-03-2013
11:54 AM
|
0
|
0
|
2624
|
|
POST
|
Matt is right. map = new esri.Map("map",
{
basemap: "streets",
center: center,
zoom: zoom,
infoWindow: popup, //no commas on last object pair
}); Remove the comma.
... View more
05-03-2013
11:28 AM
|
0
|
0
|
2624
|
|
POST
|
It's time to write your own measurement widget. http://dojotoolkit.org/documentation/tutorials/1.8/templated/ The esri widgets are fine with simple applications, but if you are going to develop applications with lots of features, tools, etc they start creating more problems than they solve. Mostly because they are not very customizable, if at all, in the way they function and in styling. This is inherent in templated widgets in general. The js team does a good job of adding/updating base functionality in widgets to make them as functional for as many people as they can, but they can't take every possible situation into account. If you need more than the widget offers, write your own. That's the power of dojo. I don't know what your experience is with dojo and templated widgets, but if you are new at it, it can be a little overwhelming at first. But get a couple under your belt and a whole world of possibilities will open up for you when developing highly functional applications. Perhaps not what you wanted to hear, but I hope it helps. Cheers, Ben
... View more
04-30-2013
01:17 PM
|
0
|
0
|
448
|
|
POST
|
None are required. Of course without geometry and a symbol the graphic will not show in the map. Having said that, if you are creating graphics from a query, identify, etc, you should set attributes and info template. Without them graphics don't have much functionality. Graphics for display only, for example a polygon for selecting other features, do not need attributes or info template. The measure widget example http://developers.arcgis.com/en/javascript/samples/widget_measurement/ illustrates this. Measure in the map, find the graphic's DOM object using firebug map._layers.map_graphics.graphics[0] and check for attributes map._layers.map_graphics.graphics[0].attributes and info template map._layers.map_graphics.graphics[0].infoTemplate. Both are undefined.
... View more
04-30-2013
10:31 AM
|
0
|
0
|
606
|
|
POST
|
but then I hit the second bug of it not taking any styles to the print . You're not clearing the symbology are you?
... View more
04-29-2013
06:40 AM
|
0
|
0
|
448
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-18-2013 06:56 AM | |
| 1 | 06-30-2015 09:17 AM | |
| 1 | 10-12-2013 07:14 AM | |
| 1 | 02-05-2014 11:05 AM | |
| 1 | 05-28-2015 11:41 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|