Tag Info

Hot answers tagged

5

Not your full answer, but a starting point: var timeInfo:TimeInfo; if (layer is ArcGISDynamicMapServiceLayer) { timeInfo = (layer as ArcGISDynamicMapServiceLayer).timeInfo; } else if (layer is ArcGISImageServiceLayer) { timeInfo = (layer as ArcGISImageServiceLayer).timeInfo; } else if (layer is FeatureLayer) { var feaLayer:FeatureLayer = layer ...


4

A Map Legend is a static representation of features on the map and their meaning A Table of Contents [TOC] is an interactive list displaying features on the map - some even showing what is visible in real-time.


3

Edit: sorry, my original answer was incorrect. Problem is the spatialReference of the input geometry cannot be understood by 9.3.1 (i.e. wkid 3857). Easy fix, simply set the spatialReference of the input geometry to 102100 before assigning it to the GP Params: var g:Graphic = event.graphic; g.geometry.spatialReference = new SpatialReference(102100); var ...


3

You can definitely change the title of the page John. From what I remember, the title you're referring to is set in index.mxml (they have another title in config.xml as well, but I believe that's the title that appears in the application itself). Edit: That's if you're working with the source and compiling it. If you are working with the pre-compiled, ...


3

Assuming your talking about this More tab: This is visible in the default configuration for the current v2.2 Flex Viewer. * I assume you want to know how to remove it, as it maybe having sync problems with the TOC widget or perhaps you just don't need to show the layers via the More button AND the TOC widget? I can't take credit for this, but found your ...


3

I think the general difference between a TOC and a Legend is that a TOC allows for control of the map. Depending on the application the TOC allows you to change the visibility and / or drawing order of map layers. A legend on the other hand does not allow for map control and is a representation of symbology used in the map. In terms of a web mapping app ...


3

Yes, you can use it. Here is ESRI's example: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=ArcIMS You should look into the ArcIMSMapServiceLayer class: http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/ArcIMSMapServiceLayer.html


3

I suspect you are missing a cross domain policy file - a requirement if your viewer and maps are hosted on different servers. See the ESRI documentation for more details on the cross domain policy. Also, using a web traffic tool like Fiddler or Firebug can help a lot to determine why you don't see your map. It will answer questions such as "is my map ...


3

You might wanna take look at http://openscales.org/ never used myself i always used JS or ESRI silverlight, but should be quite similar to the openlayers API. It support OSM, WMS, wmts , WFS-T... So with a Geoserver (or any other OGC compliant GISserver) backend you should be able to build similar apps as with esri stuff.


2

Use the Simplify method of the Geometry service: http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/tasks/GeometryService.html#simplify()


2

I want to be able to call this function after a MouseEvent.MOUSE_MOVE event in order to measure the line on the fly First off, some words of caution. I implemented similar functionality in a Flex app awhile back i.e. When user moved mouse around the map, it kept pinging the geometry service for the distance or xy coordinates and displayed it ...


2

No, the compiled version of ArcGIS Viewer for Flex does not directly support using URL parameters to turn on/off layers. http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Viewer_URL_parameters/01m300000029000000/ However, you can use URL parameters to point the application to different configuration files, and inside the configuration files you ...


2

I have written one and posted it in the code gallery, not all KMLs are supported yet, but loads a few basic ones. Hope it works from you. This is for ArcGIS Flex 2.4.... http://www.arcgis.com/home/item.html?id=d6b993ef803249f486e83edd3f94239b


2

Not tested this, but this widget could do what you want: DESCRIPTION: To Allow the user to select any shape file in zip format (that is example.shp – for geometry and example.dbf - for Attributes, are only files to be zipped) and display over the current Map as graphics. Actually it creates a custom geometry to take advantage of the ...


2

Searching for "map tip" on Esri's Flex API site yielded these results: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=MapTips http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=InfoWindowRollOverSample


2

This is not configurable with the compiled version of the ArcGIS Viewer for Flex. Assuming that you are a Flex developer, already familiar with and working with the source code, and using the latest version (currently 2.3.1). The relevant file is widgets/SearchWidget/SearchResultItemRenderer.mxml and at the bottom of that file is where the source property ...


2

pdog, Here is a thread where I answered that in the ESRI Flex Viewer forum: http://forums.arcgis.com/threads/48126-Layer-List-Widget-is-it-possible-to-only-allow-one-selected-layer-at-a-time


2

Here is an example of a WMS from my config file... <layer label="NWS RADAR" type="wms" autorefresh="66" skipgetcapabilities="true" url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0q.cgi" version="1.1.1" visible="false" visiblelayers="nexrad-n0q-900913" alpha=".5"/> That is a RADAR layer I'm getting from the University of Iowa. Here is one ...


2

Usually it is in root folder of your webserver environment. This example is working setup for xampp-php-postgresql+geoserver (my personal choice). To bypass flashplayer security restrictions such as to enable access for bitmap manipulation i put this crossdomain policy file <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM ...


2

To do this look at AddToolbox and/or ImportToolbox where it says: While any of the core ArcGIS toolboxes are accessible by default in a script, your own custom or third-party toolboxes must be added using ImportToolbox to use them in a script. I've pointed you at 10.1 documentation but have successfully published Geoprocessing Services at 10.0 from ...


2

From what I could find and know you will want to define the Levels of Detail (LOD) for the flex application. Here is the ESRI documentation and you should look at the live sample on the page called: "Settting LODs for the map manually". http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/supportclasses/LOD.html This approach will be ...


2

developement environment: aptana is pretty good free IDE for html, javascript, ruby and python. Web IDE's "in the cloud" are getting very good and work on Linux obviously: maqetta is web IDE + interface builder for dojo+html, also free codiqa is also a web IDE + interface builder, but for jquery, but not free Tutorials: Opengeo's tutorial on ...


1

this is the code locateResult.content = "Address Matching " + getDefaultString("resultScoreText") + " " + (addrCandidate.score % 1 == 0 ? addrCandidate.score : addrCandidate.score.toFixed(1)); to produce this:


1

Here is a thread in the ESRI Flex Viewer forum where I explain why this is not possible http://forums.arcgis.com/threads/54004-Make-InfoWindow-popup-open-to-the-left-or-on-top-of-widget...


1

<?xml version="1.0"?> <configuration> <!-- possible values for initialstate: open or closed (default) --> <initialstate>open</initialstate> <!-- by default it will use the same basemap as current main map, you can hardcode as below if you wish --> <layer label="Demographics" ...


1

Does anyone know which event is being dispatched when I double-click the mouse on the map? Multiple events are dispatched, including the standard DOUBLE_CLICK. Among the Flex API samples there is an "Events" example which you can play with to see this: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=EventBasics


1

I know I have been wanting to dig into this for weeks. But, I haven't taken the time to dig in. I assume you have purused the code gallery. ?? The enhanced draw and the attachment relate widgets might shortcut for you. And in samples there is the edit tool sample. http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=EditTools


1

While possible, I think you would be better off using a basemap that supports the polar regions. Either an "un-projected geographic" that at least cover the poles (as supposed to web mercator). Or one projection focused on the north pole and another on the south pole. Some example "un-projected" services are: ...


1

When accessing a mapservice with flex, you have to take care about the crossdomain.xml on the server on which you are accessing the mapservice. You cand find the explications in the ArcGIS Flex documentation: http://help.arcgis.com/en/webapi/flex/help/017p/017p0000001w000000.htm


1

from your configuration of the layer, it seems there lost the ">" for the tag "layer". it should be as follows: <operationallayers> <layer label="test" type="feature" visible="true" url="http://myserver/arcgis/rest/services/myservice_wgs84wm/MapServer/" /> </operationallayers>



Only top voted, non community-wiki answers of a minimum length are eligible