|
POST
|
Steve, Query task is an asynch process. It should be OK to deactivate the drawing toolbar before the task responds. Check this thread. It may be the same issue: http://forums.arcgis.com/threads/63149-Drawing-Tool-sometimes-locks-pan-tool-and-can-never-finish-drawing-a-polygon-polyline?p=221251#post221251
... View more
08-28-2012
10:45 AM
|
0
|
0
|
590
|
|
POST
|
Two questions: 1 - how do you change the text style for the units. I have tried several things and can't get it to work correctly. The basic problem is the font for the units is a different size than any of the other text on the form. 2 - is it possible to get projected coordinates from the maps rather than just longitude and latitude? All of our maps are in state plane coordinate systems. Thanks, Bryan Bryan, Please take a look at the document of measurement widget: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/measurement.htm 1. Modifying the CSS .unitDropDown will change the font size of the unit list. For example: .unitDropDown{ font-size:26px ; } 2. Connecting to the onMeasureEnd event and replace the output value will overwrite the result. If you want to show the coordinate values under the current map spatial reference, here is the code snippet: dojo.connect(measurement, "onMeasureEnd", function(toolName, geometry){ measurement.resultValue.domNode.innerHTML = "x: "+ geometry.x + "<br/>y: " + geometry.y; });
... View more
08-28-2012
08:58 AM
|
0
|
0
|
1442
|
|
POST
|
Those buttons are dojo dijits. You can access them by measurement.area, measurement.distance and measurement.location. If you need to connect to the onClick event. Here is the code snippet. var measurement = new esri.dijit.Measurement({ map: map }, dojo.byId('measurementDiv')); measurement.startup(); dojo.connect(measurement.area, "onClick", function(){console.log("hello");});
... View more
08-28-2012
08:31 AM
|
0
|
0
|
1213
|
|
POST
|
The correct syntax for assigning values to a variable is var template = [{ label: "Map it", format: "GIF", layout: "A4 Portrait", exportOptions: { width: 200, height: 200, dpi: 96 } }];
... View more
08-23-2012
12:55 PM
|
0
|
0
|
946
|
|
POST
|
the templates parameter in the print widget is an array of template.
... View more
08-23-2012
12:04 PM
|
0
|
0
|
946
|
|
POST
|
You may need to change the proxy page pointing to your local one. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/ags_proxy.htm
... View more
08-08-2012
11:37 AM
|
0
|
0
|
327
|
|
POST
|
This was an issue introduced with dojo 1.7. We will fix it in the next release. At this moment, the fix you can apply is to set a bunch of events as null when deactivating the toolbar. For instance, the sample: http://help.arcgis.com/en/webapi/javascript/arcgis/demos/toolbar/toolbar_draw.html can be modified as: function addToMap(geometry) { toolbar.deactivate(); toolbar._onMouseDownHandler_connect = toolbar._onMouseMoveHandler_connect = toolbar._onMouseDragHandler_connect = toolbar._onMouseUpHandler_connect = toolbar._onClickHandler_connect = toolbar._onDblClickHandler_connect = toolbar._onKeyDown_connect = toolbar._redrawConnect = null; ... }
... View more
08-03-2012
01:09 PM
|
0
|
0
|
1648
|
|
POST
|
Orlando, Please see the answers between your questions. 1. Too often you click on the map, but it seems like the map does not detect the click. If you click fast, it triggers mouse drag instead of mouse click. 2. When you do a click on the map you should stop the mouse, wait a second and then click, otherwise it thinks like you are panning. Not sure if it's related to item 1. I have deactivated Panning on the map, so it doesn't pan anymore, but we still have to wait for a moment before clicking on the map. The sample from ESRI behaves totally this way: if you do a small drag while selecting the polygon or line vertices, the map gets locked to an endless panning behavior. I wonder if there's a way to change some setting or prevent other click events from being triggered. The same reason as question 1. Even you use drawToolbar, it behaves the same. 3. The tool buttons behave inconsistently: you perform area or length measures one after the other, but for the location tool you need to click on the button every time you want to use it again. This is, the location tool deactivates automatically, whereas the length and area tools don't. This is by design. When using location tool, the location info constantly changes according to the current mouse location (mouse over). If keep the location tool active after you click on the map, the location info will change and the end user wouldn't know what the location is on the clicking point. 4. The tool buttons are actually toggle buttons: if you click them again they deactivate. How can I change that so they stay active until something else gets activated? Please use setTool(toolName, activate) method to activate/deactivate tools. 5. Would it be possible somehow access a tool activate event? you can capture the button click event of those toggle buttons.
... View more
08-02-2012
02:51 PM
|
0
|
0
|
1213
|
|
POST
|
At this moment, the workaround is to call snappingManager.setLayerInfos(setLayerInfos) to exclude the invisible layer when you cann featureLayer.hide(). Hope this helps.
... View more
07-31-2012
03:58 PM
|
0
|
0
|
1334
|
|
POST
|
This is a bug. We will fix it in the next release. Thanks for letting us know.
... View more
07-31-2012
01:42 PM
|
0
|
0
|
1334
|
|
POST
|
I'm looking into it and will keep you updated soon. Thanks.
... View more
07-31-2012
10:56 AM
|
0
|
0
|
1334
|
|
POST
|
Bert, This was an issue on geometry service, which has been fixed at server 10.1. The latest geometry service has a parameter that you can specify the calculation type. Please check: http://sampleserver6.arcgisonline.com/arcgis/sdk/rest/index.html?areasandlengths.html So that you don't have to project the polygon before calling the method by using the parameter preserveShape. The measurement widget calculates the area on client without using geometry service.
... View more
07-31-2012
10:35 AM
|
0
|
0
|
1008
|
|
POST
|
Those points could be added to graphicsLayer. When you need to refresh the layer, you can simply remove all existing graphics by calling graphicsLayer.clear(), and then add the current graphics to it.
... View more
07-27-2012
03:47 PM
|
0
|
0
|
491
|
|
POST
|
We will fix this. At this moment, please use graphicsLayer.remove(graphic) to remove the graphic so that it won't be printed out.
... View more
07-27-2012
03:44 PM
|
0
|
0
|
546
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 06-21-2013 01:17 PM | |
| 3 | 07-15-2013 11:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|