|
POST
|
Actually I am seeing this now. So I have to publish my MXD with feature access and then write the code as type="feature" and myserver/***/featureservice/(layer#) I am seeing a strange error though when I try and upload to my server: Service was published but cannot be started due to: Configuration Campus_assets_cartlab.MapServer can not be started. Server Object instance creation failed on machine gis. any thoughts? Take a look at the config logs. I suspect you may be seeing something like this in there: Layer: XXXXXXXXXX does not use SDE GeoDatabase. Feature Access capabilty requires the data to be on SDE GeoDatabase.
... View more
03-09-2011
09:53 AM
|
0
|
0
|
572
|
|
POST
|
THANKS!!!! It is somewhat less intuitive as REST endpoints are.
... View more
03-04-2011
01:30 PM
|
0
|
0
|
520
|
|
POST
|
Nathan, You will notice that I am showing exactly what the Drawing Info: at the REST Service directory is showing when you go to that url: http://www.mapservices.ca/ArcGIS/rest/services/MAPIT2/MapIt2/MapServer/5 Roger Roger. 2nd set of eyes is invalueable. Thanks.
... View more
03-04-2011
10:40 AM
|
0
|
0
|
1809
|
|
POST
|
RS I'm getting a bit of weird behaviour coming from the dynamic legend portion of the widget. I have a polygon layer that is Classified, then Grouped into 3 categories. However what I am getting with the legend, are the unique values - in the classed colours. I am using AGS 10.1 as well as ArcGIS Desktop 10.1 I used a .msd to publish. There is scale dependancy at the group level My Map app is here: http://www.mapservices.ca/mapit2/ My rest service for the layer (Cut Block) is here: http://www.mapservices.ca/ArcGIS/rest/services/MAPIT2/MapIt2/MapServer/5 If you 'zoom to make visible' the Land Use grouping, then look at the dynamic legend pane, the Cut Blocks are showing a symbol for each unique value with the label from the grouping (I had grouped and categorized into TL, FLA, and TFL in my arcmap)
... View more
03-04-2011
10:04 AM
|
0
|
0
|
1809
|
|
POST
|
I tried looking in the concepts page, but it is a bit lacking on how to add WMS as mapservice. If the WMS is located here: http://openmaps.gov.bc.ca/imagex/ecw_wms.dll?service=wms&version=1.1.1&request=getcapabilities And the layer I want to add as a <basemap> is within the above xml (and it is has the supported projection...): <Layer queryable="0" opaque="0" noSubsets="0">
<Name>BC_S5L5_BC_2004_2006_BCALB_15M_PANB321_ENH</Name>
<Title>s5l5_bc_2004_2006_bcalb_15m_panb321_enh</Title>
<LatLonBoundingBox minx="-134.41979398739258" miny="47.70526553162415" maxx="-115.57727033268345" maxy="60.133252241984927" />
<SRS>EPSG:3005</SRS>
<BoundingBox SRS="EPSG:3005" minx="528460" miny="331205" maxx="1585195" maxy="1683350" resx="15" resy="15" />
<SRS>EPSG:102190</SRS>
<BoundingBox SRS="EPSG:102190" minx="528460" miny="331205" maxx="1585195" maxy="1683350" />
<SRS>EPSG:4326</SRS>
<BoundingBox SRS="EPSG:4326" minx="-134.41979398739258" miny="47.70526553162415" maxx="-115.57727033268345" maxy="60.133252241984927" />
<SRS>EPSG:32608</SRS>
<BoundingBox SRS="EPSG:32608" minx="532478.74427222123" miny="5298423.5732139433" maxx="1757479.9442286484" maxy="6783610.7569284178" />
<SRS>EPSG:32609</SRS>
<BoundingBox SRS="EPSG:32609" minx="196833.37191107537" miny="5300075.3127793223" maxx="1308815.5194954565" maxy="6699526.3919917801" />
<SRS>EPSG:32610</SRS>
<BoundingBox SRS="EPSG:32610" minx="-194825.75588659977" miny="5294653.8146051988" maxx="916628.34410429408" maxy="6693319.40823384" />
<SRS>EPSG:32611</SRS>
<BoundingBox SRS="EPSG:32611" minx="-642907.25030450593" miny="5284254.2948969016" maxx="579962.45330657228" maxy="6766831.7235350413" />
- <DataURL>
<Format>text/xml</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://openmaps.gov.bc.ca/imagex/ImageX.dll?dsinfo?layer=/wms/ortho/bc/s5l5_bc_2004_2006_bcalb_15m_panb321_enh.jp2" />
</DataURL>
</Layer>
What would be the entry in the config.xml? Currently I have this: <layer label="Aerial" type="wms" visible="false"
url="http://openmaps.gov.bc.ca/imagex/ecw_wms.dll?"
version="1.1.1"/> But I don't know how to reference the particular layer... Any guidance on this would be appreciated.
... View more
03-04-2011
09:30 AM
|
0
|
2
|
1130
|
|
POST
|
Nathan, The first thing I would try is set the alpha to 1 to see if the feature are showing on the map properly. Highly strange. I've tried the following: <layer label="Species feature" type="feature" visible="true"
url="http://www.mapservices.ca/ArcGIS/rest/services/Prima/Prima_Operational/MapServer/5"/> and <layer label="Species dynamic" type="dynamic" visible="true"
url="http://www.mapservices.ca/ArcGIS/rest/services/Prima/Prima_Operational/MapServer/5"/> No Joy. it doesn't show up. So if I specify a layer from a mapservice it is not showing up. It does have scale dependency but even when zoomed to the visible scale, it does not show up for either dynamic or feature type. However if I add the parent mapservice as dynamic: <layer label="Operational" type="dynamic" visible="true" url="http://www.mapservices.ca/ArcGIS/rest/services/Prima/Prima_Operational/MapServer"/> it shows up, like it is suppose to. However, if I change type="feature" and it does not show up. Is there something I have to do in the original MXD (like turn tooltip on in the properties) before I save it as MSD and publish?
... View more
02-22-2011
12:08 PM
|
0
|
0
|
862
|
|
POST
|
Robert I am having no joy with this widget. I do believe it is configured per your example. Any Ideas? In my config file in the UI Element section: <widget left="0" top="0" config="widgets/FeatureTooltip/FeatureTooltipWidget.xml" url="widgets/FeatureTooltip/FeatureTooltipWidget.swf"/> In my config file in the operationallayers tag: <layer label="Species" type="feature" visible="true" alpha="0"
url="http://www.mapservices.ca/ArcGIS/rest/services/Prima/Prima_Operational/MapServer/5"/>
Layer: Single Stem Species (ID: 5) Display Field: INGENIERO Type: Feature Layer Geometry Type: esriGeometryPoint Description: Definition Expression: Copyright Text: Min. Scale: 60000 Max. Scale: 0 Default Visibility: True Extent: XMin: -77.3732140788757 YMin: 6.27068000300208 XMax: -77.3520981540437 YMax: 6.31735493446076 Spatial Reference: 4170 Has Attachments: False HTML Popup Type: esriServerHTMLPopupTypeAsHTMLText The FeatureTooltipWidget.xml: <?xml version="1.0" ?>
<configuration>
<layers>
<layer>
<name>Species</name>
<fields>INGENIERO,ESPECIE,OTRO_OTH,DAP_DBH,longitud</fields>
</layer>
</layers>
</configuration>
... View more
02-21-2011
09:00 AM
|
0
|
0
|
988
|
|
POST
|
Nathan, Several changes are required: Thanks for this Robert. And if I wanted to integrate it with the BaseMapSwitcher so that the slider is always directly beneath the button bar, intead of at the fixed location where it is right now?
... View more
02-16-2011
12:31 PM
|
0
|
0
|
432
|
|
POST
|
I'm trying to port over the Base Map Fader from SFV1.3 into the 202. I'm getting a bunch of errors, when I try to implement it in my current index.mxml for Flex 2.2. Has anybody done this yet?
<s:Application
[LEFT]xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx ="http://www.adobe.com/2006/mxml"
xmlns:viewer="com.esri.viewer.*"
xmlns:managers="com.esri.viewer.managers.*"
pageTitle="ArcGIS Viewer for Flex">
[LEFT]<fx:Script>
<![CDATA[[/LEFT]
import com.esri.solutions.flexviewer.AppEvent;
import mx.managers.IDragManager;
import mx.managers.HistoryManager;
import mx.controls.Alert;
import com.esri.ags.layers.Layer;
private var iDragManager:IDragManager;
private var hist:HistoryManager;
flash.system.Security.allowDomain ("*");
private function registerGlobalKeyHandler() :void
{
stage.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown);
}
private function handleKeyDown(event:KeyboardEvent) :void
{
if ((event.shiftKey) && (event.keyCode == 27))
{
SiteContainer.dispatchEvent(new AppEvent(AppEvent.SET_MAP_NAVIGATION, false, false, null));
}
}
private function faderFade(evt:Event):void
{
var lyr:Layer = SiteContainer.getInstance().controller.map.getLayer("Aerial");
var lyr2:Layer = SiteContainer.getInstance().controller.map.getLayer("Topography");
lyr.visible = true;
lyr2.visible = true;
lyr.alpha = fader.value;
lyr2.alpha = (1 - fader.value);
}
]]>
</fx:Script>
<fx:Style
[/LEFT]
[LEFT]source="defaults.css"/>
[LEFT]<fx:Metadata>
[[/LEFT]
[/LEFT]
[LEFT]ResourceBundle("ViewerStrings")]
</fx:Metadata>
<viewer:ViewerContainer>
<viewer:configManager>
<managers:ConfigManager/>
</viewer:configManager>
<viewer:dataManager>
<managers:DataManager/>
</viewer:dataManager>
<viewer:mapManager>
<managers:MapManager/>
</viewer:mapManager>
<viewer:uiManager>
<managers:UIManager/>
</viewer:uiManager>
<viewer:widgetManager>
<managers:WidgetManager/>
</viewer:widgetManager>
</viewer:ViewerContainer>
<mx:Canvas width="150" right="450" top="0" height="25" styleName="WidgetCanvas">
<mx:HSlider id="fader" x="25" y="1" width="100" minimum="0" maximum="1" snapInterval="0.1" liveDragging="true" allowTrackClick="true" enabled="true" showDataTip="false" change="faderFade(event)" value="1" />
<mx:Image x="7" y="1" width="20" height="20">
<mx:source>com/esri/solutions/flexviewer/assets/images/icons/i_map.png</mx:source>
</mx:Image>
<mx:Image x="125" y="1" width="20" height="20">
<mx:source>com/esri/solutions/flexviewer/assets/images/icons/i_satellite.png</mx:source>
</mx:Image>
</mx:Canvas>
</s:Application>
[/LEFT]
... View more
02-16-2011
09:36 AM
|
0
|
2
|
740
|
|
POST
|
Robert, is there any possibility to either specify coded values as dropdown in the config.xml to show in the text search? or search through the recordset for unique values at the mxml level and populate a dropdown box in the text search?
... View more
02-16-2011
09:02 AM
|
0
|
0
|
1146
|
|
POST
|
It's also important to ask the author of the site, or at the very least check the metadata to make sure that they allow this use of the data. For example, since I work for a nonprofit our map services can't be used in a for-profit web map without getting specific permission. Some other groups have more restrictive licenses (where you can only access the data via a specific site), and even if they don't prevent you from working around them they should still be respected. Thanks for noting the considerations required. The WMS is public, and is available to be consumed. The REST Endpoint of the same map service as ArcGIS REST is public as well, although the meta is not provided. Robert - fiddler worked fantastic. Thanks for the recommendation.
... View more
02-15-2011
06:22 AM
|
0
|
0
|
782
|
|
POST
|
Given the link here: http://190.254.22.44/ssigl2.0/visor/galeria.req?mapaId=2&title=Mosaico Landsat How can I find its REST endpoint to consume in my own map service. Any ideas? They do have a WMS of this, but it is extremely slow, found here, and it is only avail on WGS84 and not in Web Aux Mercator: Url: http://geoservice.igac.gov.co/WMSLandsat? WMS Version: 1.1.1 Layers: 2 Formats: image/png,image/gif,image/png; mode=24bit,image/jpeg,image/wbmp,image/tiff,image/svg+xml Abstract: SERVICIO DEL MOSAICO WMS LANDSAT DE COLOMBIA
... View more
02-14-2011
11:28 AM
|
0
|
4
|
2186
|
|
POST
|
Robert, concerning andrea's issue with geocoding. Could it be a browser issue, more specifically a viewing IE8 with compability turned off. For several clients, I have had to tell them to Display all websites in Compatibility View. And turn off popup blockers.
... View more
01-26-2011
11:27 AM
|
0
|
0
|
1029
|
|
POST
|
How do I implement Bing if I am using AGS10.1 to server the SFV1.3 using the 1.3 API? Am I still going to have to use token?
... View more
11-25-2010
07:35 AM
|
0
|
0
|
1504
|
|
POST
|
Nathan, Look here. http://forums.arcgis.com/threads/10343-Dynamic-Rest-Legend-in-ArcGIS-Server-10-and-Flex-API-1.3?highlight=Dynamic+Legend Thanks for the link to the updated code. What I was having problems with, and was hoping it would fix...but didn't, was the following error: (mx.messaging.messages::ErrorMessage)#0
body = ""
clientId = "DirectHTTPChannel0"
correlationId = "4A41E22A-78F1-C30F-ABAF-2CFE8F8D6BFC"
destination = ""
extendedData = (null)
faultCode = "Server.Error.Request"
faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.mapservices.ca/restLegend/restLegend.asmx"]. URL: http://www.mapservices.ca/restLegend/restLegend.asmx"
faultString = "HTTP request error"
headers = (Object)#1
DSStatusCode = 400
messageId = "795EED4A-5341-9A14-E87E-2CFE8FAC0E88"
rootCause = (flash.events::IOErrorEvent)#2
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#3
bytesLoaded = 0
bytesTotal = 0
data = ""
dataFormat = "text"
errorID = 0
eventPhase = 2
target = (flash.net::URLLoader)#3
text = "Error #2032: Stream Error. URL: http://www.mapservices.ca/restLegend/restLegend.asmx"
type = "ioError"
timestamp = 0
timeToLive = 0 I only get this error on password protected sites using windows authentication (Windows Authentication = Enabled in IIS7). Any clues?
... View more
11-08-2010
09:42 AM
|
0
|
0
|
506
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-05-2023 02:14 PM | |
| 1 | 09-26-2022 09:11 AM | |
| 1 | 11-08-2022 08:45 AM | |
| 3 | 10-13-2022 01:50 PM | |
| 2 | 10-13-2022 01:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|