|
POST
|
When the print service makes its request to the url with the token, it doesn't send a referer header. Can you use a short term token that's not restricted to ip or referer? That's how the tokens are generated by the IdentityManager. If this is not an option for you, you could call PrintParameters.toJSON() and then remove the token from the url in the JSON. You'd then need to use a Geoprocessor to call your print service with the modified JSON. You'd also need to follow these instructions to set up your print service with the credentials for the secure service. http://resources.arcgis.com/en/help/main/10.1/#/Printing_maps_that_contain_secured_services/0154000005q3000000/
... View more
10-05-2012
02:23 PM
|
0
|
1
|
1952
|
|
POST
|
The url needs to be publicly accessible to the Internet since the KMLLayer uses a service on ArcGIS.com to translate the KML to JSON.
... View more
10-05-2012
02:07 PM
|
0
|
0
|
298
|
|
POST
|
This page has links on how to install IIS if you'd like to use IIS: http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/System_requirements/01m30000002t000000/
... View more
10-04-2012
04:56 PM
|
0
|
0
|
2293
|
|
POST
|
You can use any web server software. Apache and Nginx are two popular alternatives to IIS. http://en.wikipedia.org/wiki/Apache_HTTP_Server http://en.wikipedia.org/wiki/Nginx
... View more
10-04-2012
04:47 PM
|
0
|
0
|
2293
|
|
POST
|
The "Web Server Base Folder" is where the Builder will write the Viewer files to disk. This can be on your local machine or on a mapped drive as long as you have write access. The "Web Server Base Folder URL" is whatever url can be used to access the Viewer files from above via http. This is used in the Builder's Preview tab. Neither of these settings are stored inside of a Viewer itself so the Viewer's files can be moved to another web server and still work.
... View more
10-04-2012
02:24 PM
|
0
|
0
|
2293
|
|
POST
|
How is the token being generated? Is it restricted by referer or ip address?
... View more
10-04-2012
11:39 AM
|
0
|
0
|
1952
|
|
POST
|
Did you mean to call arcgistiledmapservicelayer1_loadHandler() on the updateEnd event? This is causing the loop since it's continually resetting the map's extent. If you call this on the layer's "load" event instead, it will only be called once. <?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:esri="http://www.esri.com/2008/ags"
width="100%" height="100%">
<fx:Script>
<![CDATA[
import com.esri.ags.events.LayerEvent;
import com.esri.ags.events.PanEvent;
private var cntr:int = 0;
protected function map1_panEndHandler(event:PanEvent):void
{
trace('in pan end, ' + cntr++);
}
protected function arcgistiledmapservicelayer1_loadHandler(event:LayerEvent):void
{
map.extent = DCExtent;
}
]]>
</fx:Script>
<fx:Declarations>
<esri:Extent id="londonExtent"
xmin="-149225.70420389052" ymin="6661356.208762923" xmax="43242.73301825692" ymax="6800930.222411709">
<esri:SpatialReference wkid="102100"/>
</esri:Extent>
<esri:Extent id="DCExtent"
xmin="-8600149.1564566" ymin="4687554.362114532" xmax="-8552032.047151148" ymax="4722447.865526669">
<esri:SpatialReference wkid="102100"/>
</esri:Extent>
</fx:Declarations>
<esri:Map id="map"
extent="{londonExtent}"
panEnd="map1_panEndHandler(event)"
wrapAround180="true">
<esri:ArcGISTiledMapServiceLayer id="lyr"
load="arcgistiledmapservicelayer1_loadHandler(event)"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
</esri:Map>
</s:Application>
... View more
10-04-2012
11:34 AM
|
0
|
0
|
539
|
|
POST
|
Try: if (fieldInfo.visible && formattedAttributes[fieldInfo.fieldName] && formattedAttributes[fieldInfo.fieldName] != " ")
... View more
10-04-2012
09:39 AM
|
0
|
0
|
3112
|
|
POST
|
Can you try the 2.5 API? Have you tried without the code for "Note that we do change the map's extent to a user-defined envelope after the initial map load."? Can you share this code?
... View more
10-03-2012
03:42 PM
|
0
|
0
|
539
|
|
POST
|
This example should be using mx.utils.StringUtil: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/utils/StringUtil.html#substitute()
... View more
10-03-2012
03:34 PM
|
0
|
0
|
555
|
|
POST
|
Rhett, It looks like all the fields in your screenshot have values.
... View more
10-01-2012
03:02 PM
|
0
|
0
|
3112
|
|
POST
|
You'll need to recompile the Viewer to make any changes to mxml source files. See: http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Flex_development/01m300000020000000/
... View more
10-01-2012
09:08 AM
|
0
|
0
|
3112
|
|
POST
|
Yes, you need to create a custom PopUpRendererSkin. Try making this change to line 163 of PopUpRendererSkin.mxml: if (fieldInfo.visible && formattedAttributes[fieldInfo.fieldName]) PopUpRendererSkin.mxml is in the skins folder inside the API's zip file.
... View more
09-28-2012
08:19 AM
|
0
|
0
|
3112
|
|
POST
|
Try using a WebMercatorExtent instead: http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/WebMercatorExtent.html Or you can use WebMercatorUtil to convert from geographic to web mercator: http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/utils/WebMercatorUtil.html
... View more
09-27-2012
09:22 AM
|
0
|
0
|
505
|
|
POST
|
A good test would be to use HttpFox to get the URL from the error response and copy and paste that into a browser that's running on your ArcGIS server.
... View more
09-27-2012
09:14 AM
|
0
|
0
|
516
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-06-2017 01:13 PM | |
| 2 | 03-06-2017 02:12 PM | |
| 1 | 06-22-2010 12:01 PM | |
| 1 | 08-06-2012 09:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-15-2025
04:18 PM
|