|
POST
|
I cannot make the new definition of ETRS 1989 GK21FIN work. It came with ArcGIS version 10.1. wkid=3875. The older definition wkid=3128 works. What's wrong? Should I use my own GeometryService? Jarmo ArcGIS Server 10.1, Flew Viewer 3.0. If it's new in 10.1 then you will want to ensure that you are using a 10.1 Geometry service. The default service I have specified in the config is probably 10.0. Either change it to use your geometry service or you can use ESRI's 10.1 http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer Drew
... View more
08-22-2012
03:09 AM
|
0
|
0
|
2971
|
|
POST
|
That was a big mistake on my part guys. Thanks for posting the error and for providing a fix! I have updated the 2.5 - 3.0 source and compiled versions on the widgets page. Thanks again. http://www.arcgis.com/home/item.html?id=edd4a2b7c722493a8b08f53eaa131e1e Drew
... View more
08-16-2012
04:17 PM
|
0
|
0
|
2971
|
|
POST
|
Instead of retrieving the tiles and stitching them together, the Print GP will make a /export map request to the service if it's a 10.1 service that has dynamic layers enabled on it. This will result in a new image being created from the data since /export will go to the data in this case. In all other cases, /export stitches the cached tiles together. Dasa, Thanks again for the reply. I was able to get our maps printing at a decent quality by doing the following. Use a 10.1 service Enable Dynamic Layers on the 10.1 service Changing the dpi to 300 in the ExportOptions object Printing to a standard 8x11 layout I could have gone the high quality printing way as you suggested in your first post, but my application is mashed up with so many services it would have been a nightmare to manage all the replicated layouts. Thanks again. Drew
... View more
08-09-2012
05:25 AM
|
0
|
0
|
2199
|
|
POST
|
See this tutorial on how to print from the source vector data instead of cached tiles. http://resources.arcgis.com/en/help/main/10.1/#/Tutorial_Basic_high_quality_web_map_printing_exporting_using_arcpy_mapping/0057000000mr000000/ Thanks for the reply Dasa. Just out of curiosity, why wouldn't the new Print GP service flip the Tiled map service to be a Dynamic map service to ensure there is not loss in quality. I assume it's speed but thought I would ask. Generally most people should be using one Tiled map service in their mapping application and if the printing always results in a blurry base maps (due to scale change) it seems it would be better to render the Tiled service as a Dynamic service on the server side. Anyways.. I am going to hack around to see what I can get going here with your post.. Thanks again, Drew
... View more
08-08-2012
07:08 AM
|
0
|
0
|
2199
|
|
POST
|
I have been working with the new Print Task this week and noticed that the end result is always a little blurry. I have tested many formats (PDF, PNG32, PNG8, JPG) and changed the DPI (200 & 1000) in the ExportOptions object but nothing seems to make the map crisp. I also tested the ESRI sample labeled "High Quality Printing" and it also comes back with blurry map images. http://resources.arcgis.com/en/help/flex-api/samples/index.html#/High_quality_printing/01nq0000006v000000 Has anyone else experienced this or maybe have a work around? Thanks, Drew
... View more
08-03-2012
05:21 AM
|
0
|
4
|
3410
|
|
POST
|
I am working on a ArcGIS Flexviewer project. The map services (including ESRI's basemaps) display well on IE but got blanked in Firefox. What's the possible reason for it? Thanks. The best way to debug the problem would be to use FireBug or Fiddler to see what the tiles are coming back as.. 404 Errors, 403?
... View more
08-02-2012
09:02 AM
|
0
|
0
|
774
|
|
POST
|
I see in the "PrintParamaters.layoutOptions" you can have customTextElements. Does anyone know of a way to add in custom Image Elements? I want to pass a URL of an image to the Layout Template, but I can not see any way to properly code this in. thoughts? Drew
... View more
08-02-2012
06:33 AM
|
0
|
2
|
1005
|
|
POST
|
If i remember correctly, the 3.0 API should return the fields as they appear in the MXD. You should be able manage this there. (assuming your using AGS 10.1 and Flex API 3.0) Drew
... View more
07-22-2012
06:18 PM
|
0
|
0
|
812
|
|
POST
|
. Compatible 3.0 Version Released. (There is no new functionality in the version, it just works with the 3.0 Viewer Template) Widget URL http://www.arcgis.com/home/item.html?id=edd4a2b7c722493a8b08f53eaa131e1e Thanks for your interest! Drew
... View more
07-18-2012
06:03 PM
|
0
|
0
|
2971
|
|
POST
|
Is there a way to change the units of a coordinate system? People in my organization occasionally try to utilize UTM feet. Yes I hate it too and typically go on one of my rants when they do but it doesn't stop them. Is there a way to support UTM feet? <coordinateSystem name="UTM Zone13 Meters NAD 1983" wkid="26913" decimals="2"/> I think I am hoping there is a way to modify the coordinate system units to US Survey feet. Is there an unpublished protocol I don't know about? Chris If there is no wkid that supports that format the widget can not convert it.
... View more
07-18-2012
06:02 PM
|
0
|
0
|
2784
|
|
POST
|
Are you sure all the dynamic map services are in the same projection? Maybe the map service is being added successfully but it's off in never never land. Maybe create a function to zoom to the new map layer you added to see if you can locate it. The function below will allow you to quickly zoom to it..
private function zoomToMapLayer():void
{
myMap.extent = myDynamicLayer.fullExtent;
}
Drew
... View more
07-18-2012
04:46 PM
|
0
|
0
|
421
|
|
POST
|
I hacked around with your code a little and got it to work. All code commented is the stuff i added or moved. Your logic was close, but I had to move variables out of some functions. The code below should work. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:esri="http://www.esri.com/2008/ags"> <fx:Script> <![CDATA[ import com.esri.ags.Graphic; import com.esri.ags.events.DrawEvent; import com.esri.ags.events.IdentifyEvent; import com.esri.ags.events.MapMouseEvent; import com.esri.ags.geometry.MapPoint; import com.esri.ags.layers.ArcGISDynamicMapServiceLayer; import com.esri.ags.layers.GraphicsLayer; import com.esri.ags.layers.Layer; import com.esri.ags.tasks.IdentifyTask; import com.esri.ags.tasks.supportClasses.IdentifyParameters; import com.esri.ags.tasks.supportClasses.IdentifyResult; import mx.collections.ArrayCollection; import mx.controls.TextArea; import mx.rpc.events.FaultEvent; [Bindable] private var msgVisible:Boolean = false; [Bindable] private var identifyArrayCollection:ArrayCollection; private var identifyPoint:MapPoint; //DECLARE CONTENT VARIABLE [Bindable] private var content:String = ""; private function myClickHandler(event:MapMouseEvent):void { //CLEAR CONTENT VARIABLE this.content = ""; identifyPoint = event.mapPoint; var myGraphic:Graphic = new Graphic(null,null,null); var identifyParams : IdentifyParameters = new IdentifyParameters(); identifyParams.returnGeometry = false; identifyParams.tolerance = 5; identifyParams.geometry = identifyPoint; identifyParams.width = myMap.width; identifyParams.height = myMap.height; identifyParams.layerOption = IdentifyParameters.LAYER_OPTION_ALL; identifyParams.mapExtent = myMap.extent; for (var i:Number = myMap.layerIds.length -1; i >= 0; i--) { var layer:Layer = myMap.getLayer(myMap.layerIds); var url:String; if (layer.visible) { if (layer is ArcGISDynamicMapServiceLayer) { var dynamicLayer:ArcGISDynamicMapServiceLayer = layer as ArcGISDynamicMapServiceLayer; url = dynamicLayer.url ; } if(url) { var identifyTask:IdentifyTask = new IdentifyTask(url); identifyTask.addEventListener(IdentifyEvent.EXECUTE_COMPLETE, onResult); identifyTask.addEventListener(FaultEvent.FAULT, onFault); identifyTask.execute(identifyParams); showMessage("", true); } } } myMap.infoWindow.show(event.mapPoint); } private function drawEndHandler(event:DrawEvent):void { myGraphicsLayer.add(event.graphic); identifyPoint = event.graphic.geometry as MapPoint; } private function identifyFeatures():void { } private function processIdentifyResults(identifyResults:Array):void { if(!identifyArrayCollection) identifyArrayCollection = new ArrayCollection(); for each (var identifyResult:IdentifyResult in identifyResults) { var title:String = identifyResult.layerName; var obj:Object = identifyResult.feature.attributes; var fld:String; var value:String; for (fld in obj) { value = obj[fld].toString(); //APPEND TO CONTENT VARIABLE content += fld + ": " + value + "\n"; } //ADD LINE TO SEPERATE content += "\n------------------------\n"; } //PROCESS INFO WINDOW var text:TextArea = new TextArea(); text.text = content ; text.width = 300; text.height = 300; myMap.infoWindow.label = "Results" myMap.infoWindow.content=text; clearMessage(); } private function clearMessage():void { msgVisible = false; } private function onResult(event:IdentifyEvent):void { try { processIdentifyResults(event.identifyResults); } catch (error:Error) { showMessage(error.message, false); } } private function showMessage(msg:String, swfVisible:Boolean):void { msgVisible = true; } private function onFault(event:FaultEvent):void { showMessage(event.fault.faultDetail, false); } ]]> </fx:Script> <fx:Declarations> <esri:DrawTool id="drawToolbar" map="{myMap}" graphicsLayer="{myGraphicsLayer}" drawEnd="drawEndHandler(event)"/> <!-- Symbol for Point --> <esri:SimpleMarkerSymbol style="x" color="0xFF0000" size="12" /> </fx:Declarations> <esri:Map id="myMap" mapClick="myClickHandler(event)"> <esri:ArcGISDynamicMapServiceLayer url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer" /> <esri:ArcGISDynamicMapServiceLayer url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer"/> <esri:GraphicsLayer id="myGraphicsLayer" /> </esri:Map> </s:Application> Drew
... View more
07-18-2012
04:40 PM
|
0
|
0
|
762
|
|
POST
|
Andrew, Looks like others have helped. It has been ported over here: http://forums.arcgis.com/threads/61128-CoordinateMenu-Widget?p=211084#post211084 R_ Thanks for the info. Just like that post says, all you have to do is update the projector.as file to use ProjectParameters. I am still hoping to update the widget in the near future and might change some of its core functionality.
... View more
07-16-2012
09:14 AM
|
0
|
0
|
2784
|
|
POST
|
Hi Andrew, Great little widget, use it all the time. Was wondering if you have plans to port this to the pre-release3 API any time? Thanks, R_ I am going to work on a 3.0 version soon...
... View more
07-16-2012
05:13 AM
|
0
|
0
|
2784
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-04-2013 09:40 AM | |
| 1 | 12-11-2012 10:19 AM | |
| 1 | 05-25-2015 10:46 AM | |
| 1 | 05-10-2016 06:31 AM | |
| 1 | 01-17-2017 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-31-2021
09:54 AM
|