|
POST
|
Max, 1 - may be this helps you - http://validator.w3.org/#validate_by_input 1.1 - Double quotation marks are delimiters for each attribute in XML tag, try to replace them by single quotation marks GEOGCS['OSGB_1936',DATUM['OSGB_1936' ... 2 - no, I do not have any sample 3 - if you have any error, and you do not know how to solve the problem - describe it (your code, exception message, error code .... anything if you waiting for help) Good luck.
... View more
12-15-2011
05:22 AM
|
0
|
0
|
600
|
|
POST
|
Max, i think yes. Search for "wkt" in this help document For example: <map> tag has attribute "wkt" in main configuration file. If you want to create spatial reference in AS3 code: read this doc.
... View more
12-15-2011
12:42 AM
|
0
|
0
|
600
|
|
POST
|
Sylvain, 1 - Try to set disableClientCaching = true; for your feature layer. 2 - If not success, show your result function featureLayer_editsCompleteHandler code (full).
... View more
12-13-2011
08:17 PM
|
0
|
0
|
407
|
|
POST
|
a.dessent, seems like xml attribute construct error:
<?xml version="1.0" ?>
<configuration>
<title>{nom}</title>
<fields>
<field name="nom"alias="Nom"/>
<field name="type" alias="Type de Zone" visible="true"/>
<field name="commune"alias="Commune" visible="true"/>
<field name="contact"alias="Contact" visible="true"/>
<field name="telephone"alias="Telephone" visible="true"/>
</fields>
</configuration>
try to put whitespace between attributes in XML:
<?xml version="1.0" ?>
<configuration>
<title>{nom}</title>
<fields>
<field name="nom" alias="Nom"/>
<field name="type" alias="Type de Zone" visible="true"/>
<field name="commune" alias="Commune" visible="true"/>
<field name="contact" alias="Contact" visible="true"/>
<field name="telephone" alias="Telephone" visible="true"/>
</fields>
</configuration>
You can validate it here: http://validator.w3.org/#validate_by_input - just copy your xml and validate.
... View more
12-13-2011
01:10 AM
|
0
|
0
|
556
|
|
POST
|
Matthew, just open links and try to fill the difference: Feature Service Feature Layer
... View more
12-11-2011
09:22 PM
|
0
|
0
|
271
|
|
POST
|
Tanya. When you're done with FLEX code for equation (pdf ~3MB) (wiki.gis.com), please post your sources. We would be grateful.
... View more
12-08-2011
12:06 AM
|
0
|
0
|
572
|
|
POST
|
Giosia, you're right, but a little too late. Where are alot of ways to make it work. 1 - One of them: compile and compile project fo each locale. If the client change language, application loads new swf (if we are tolking about mapping application application loads >1 new swfs) - as a result new initialization of all components ... The cliant lost the result of his work. 2 - Other way to change locale on fly: if final application has >1 locale. For example: your client works with application, and the result of his work is some report, which contains search results, some diagrams, images, map in specific extent, some number of highlighted features ... The client wants to print a report for all possible languages�??�??, without losing search results without losing the map condition, without losing anything except change the language. P.S. We choosed to: create 1 resource xml file for each language, create public singleton class witch holds information about current locale, create public singleton class witch can read xml resources + listen locale change + has public property for each string property. May be its not better way: but 1-we hold all messages/strings in 1 file, we can access it in anytime from any part of application, it works 🙂
... View more
12-07-2011
12:50 AM
|
0
|
0
|
1439
|
|
POST
|
Mark, Each layer has property layerDetails. LayerDeatails contains information of types, where each type is FeatureType. Each FeatureType has id property = The feature type identifier and name property The feature type name.
... View more
12-05-2011
10:53 PM
|
0
|
0
|
310
|
|
POST
|
I am not able to access it. Why do you need to access it? What do you want to do with button when accessed? You can listen button events. For example: 1 - Modified esri sample application
<?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"
xmlns:esri="http://www.esri.com/2008/ags"
pageTitle="FeatureLayer on demand">
<!--
This sample shows you how to add InfoWindows to a feature layer.
When user clicks on one of the polygon features, the info window popup will show.
-->
<s:layout>
<s:VerticalLayout/>
</s:layout>
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace esri "http://www.esri.com/2008/ags";
esri|InfoWindow
{
skin-class: ClassReference("your.path.to.InfoWindowSkin");
}
</fx:Style>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
protected function map1_creationCompleteHandler(event:FlexEvent):void
{
if (map.infoWindow)
{
map.infoWindow.addEventListener("onSubmitClick", onInfoWindowSubmitClick, false, 0, true);
}
}
protected function onInfoWindowSubmitClick(event:Event):void
{
Alert.show("submit button clicked", "! ! !");
}
]]>
</fx:Script>
<esri:Map id="map"
openHandCursorVisible="false"
creationComplete="map1_creationCompleteHandler(event)">
<esri:extent>
<!-- Extent for Bloomfield Hills, Michigan -->
<esri:Extent xmin="-9271300" ymin="5247400" xmax="-9270300" ymax="5248500">
<esri:SpatialReference wkid="102100"/>
</esri:Extent>
</esri:extent>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<esri:FeatureLayer id="fLayer"
mode="onDemand"
outFields="[PARCELID,OWNERNME1,SITEADDRESS,LNDVALUE,USECD]"
url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer/2">
<esri:symbol>
<esri:SimpleFillSymbol id="fillsym" style="null">
<esri:SimpleLineSymbol width="3" color="0xFF0000"/>
</esri:SimpleFillSymbol>
</esri:symbol>
<esri:infoWindowRenderer>
<fx:Component>
<mx:VBox backgroundColor="0xffffff"
color="0x444444"
label="Parcel {data.PARCELID}">
<mx:Label text="Owner: {data.OWNERNME1}"/>
<mx:Label text="Address: {data.SITEADDRESS}"/>
<mx:Label text="Land Value: {data.LNDVALUE}"/>
<mx:Label text="Landuse: {data.USECD}"/>
</mx:VBox>
</fx:Component>
</esri:infoWindowRenderer>
</esri:FeatureLayer>
</esri:Map>
<s:Label enabled="{fLayer.loaded}" text="Using the 'onDemand' mode, parcels are fetched 'as needed' when you pan and zoom. Click any parcel to see more information."/>
</s:Application>
2 - Modifications in InfoWindowSkin
<fx:Metadata>
/**
* A strongly typed property that references the component to which this skin is applied.
*/
[HostComponent("com.esri.ags.components.supportClasses.InfoWindow")]
[Event(name="onSubmitClick", type="flash.events.Event")]
</fx:Metadata>
...
<fx:Script>
<![CDATA[
/**
* Listen submit button click
*/
protected function onSubmitButtonClick(event:MouseEvent):void
{
dispatchEvent(new Event("onSubmitClick", true, false));
}
]]>
</fx:Script>
...
<s:HGroup id="headerGroup"
width="100%"
includeInLayout.withoutHeader="false"
minWidth="0"
verticalAlign="middle"
visible.withoutHeader="false">
<esri:InfoWindowLabel id="labelText"/>
<s:Rect width="100%" height="10"
minWidth="0"/>
<esri:InfoWindowCloseButton id="closeButton"/>
<s:Button id="submitButton"
click="onSubmitButtonClick(event)"
label="Submit"/>
... View more
12-05-2011
10:30 PM
|
0
|
0
|
734
|
|
POST
|
Tanya, Try to modify InfoWindowSkin. (available since version 2.3) In ArcGIS API find skins folder, copy InfoWindowSkin.mxml to your application skins folder. Modify it as you need: add buttons, labels ... Define skin to your InfoWindow.
... View more
12-05-2011
03:07 AM
|
0
|
0
|
734
|
|
POST
|
1 - ESRI sample - Create WMS Layer 2 - ESRI sample - WMS Map 3 - API reference - WMSLayer 4 - Good sample to understand how it is work
... View more
11-30-2011
11:55 PM
|
0
|
0
|
276
|
|
POST
|
In this sample find function addFeatureToFeatureLayer Change it:
private function addFeatureToFeatureLayer(graphic:Graphic):void
{
if (!doNotAddFeature && myTemplatePicker.
{
if (myTemplatePicker.selectedTemplate.featureTemplate)
{
var newAtttrs:* = ObjectUtil.copy(myTemplatePicker.selectedTemplate.featureTemplate.prototype.attributes);
newAtttrs["collection_time"] = new Date();
newAtttrs["description"] = "Hello world!";
var newGraphic:Graphic = new Graphic(graphic.geometry, null, newAtttrs);
myTemplatePicker.selectedTemplate.featureLayer.applyEdits([ newGraphic ], null, null);
}
else
{
myTemplatePicker.selectedTemplate.featureLayer.applyEdits([ graphic ], null, null);
}
}
}
and find function flayer_editsCompleteHandler Change it:
protected function flayer_editsCompleteHandler(event:FeatureLayerEvent):void
{
var fer:FeatureEditResults = event.featureEditResults;
if (fer != null)
{
if (fer.addResults != null && fer.addResults.length > 0)
{
var addResult:FeatureEditResult = fer.addResults[0];
var layerUrl:String = FeatureLayer(event.target).url;
if (addResult != null && addResult.success)
{
var queryUrl:String = StringUtil.substitute("Inspect just added feature: {0}/query?objectIds={1}&outFields=*&returnGeometry=false", layerUrl, addResult.objectId);
Alert.show(queryUrl, StringUtil.substitute("Feature added: oid={0}", addResult.objectId));
}
}
}
trace("e: " + event.toString());
} Good luck.
... View more
11-23-2011
09:58 PM
|
0
|
0
|
357
|
|
POST
|
Lee, if you work with source code (not compiled version) the easy way to make cross hair visible - change com.esri.viewer.skins.MapManagerSkin.mxml <esri:Map id="map"
crosshairVisible="true"
width="0" height="0"
...
... View more
11-21-2011
02:17 AM
|
0
|
0
|
402
|
|
POST
|
http://gisweb.sjcog.org/crossdomain.xml must return xml. IE, FF, Chrome, Safari... - it doesn't matter. Flash plugin plays your compiled code, not browser. I god the same error in all browsers. Error #2048: Security sandbox violation: http://www.sjcog.org/FlexMapViewer24/index.swf cannot load data from proxy.ashx?http://gisweb.sjcog.org/ArcGIS/rest/services/SJCOG_ParkAndRide/MapServer/0?
... View more
11-17-2011
12:48 PM
|
0
|
0
|
1002
|
|
POST
|
Yes. We were found, what sometime it happens - it seems like service is working fine, all features are editable, but only 1 of them returns fault on change. We did not found why. Try to restart your service, may be it helps.
... View more
11-15-2011
04:59 AM
|
0
|
0
|
273
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-03-2017 11:25 PM | |
| 1 | 10-06-2016 11:49 PM | |
| 2 | 06-07-2012 01:38 AM | |
| 1 | 06-03-2012 09:42 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|