Posts

Showing posts from October, 2007

How to find locations ?

So...if you want to find "380 new york st, redlands, ca" or "www.esri.com" or "909 793 285", you can use the IFind service. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:framework="com.esri.aws.osgi.framework.*" xmlns:services="com.esri.aws.services.*" layout="absolute" > <mx:Script> <![CDATA[ import com.esri.aws.services.FindOptions; import com.esri.aws.services.FindResultSet; import com.esri.aws.services.GeocodeInfo; import mx.controls.Alert; import mx.collections.ItemResponder; import com.esri.aws.services.IFind; import flash.utils.getQualifiedClassName; import com.esri.aws.osgi.framework.IServiceReference; import com.esri.aws.osgi.framework.IBundleContext; private function doFind() : void { var context : IBundleContext = framewo...

Flickr Images as Markers

You can create BubbleMarkers that when expanded will display a Flickr image. In the below example, I'm creating a map, and when the user clicks on the search button, I'm searching any public image in the map extent. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:framework="com.esri.aws.osgi.framework.*" xmlns:map="com.esri.aws.awx.map.*" layout="absolute" > <mx:Script> <![CDATA[ import mx.controls.Image; import com.esri.aws.awx.geom.PointShape; import com.esri.aws.awx.map.layers.overlays.BubbleMarker; import mx.controls.Alert; import com.esri.flickr.Photo; import mx.collections.ItemResponder; import mx.rpc.AsyncToken; import mx.rpc.http.HTTPService; import com.esri.aws.awx.geom.Extent; private function searchPhotos() : void { map.markerLayer.removeAllOverlays(); ...

Flex and OSGi

The AWX framework is based on a simplified OSGi implementation in AS3. The advent of flex modules made this implementation possible. The following is a simple walk-through that showcases how to use this solution. The idea is to define an interface whose implementation can be defined and discovered at runtime. Using FlexBuilder as a project manager makes things a bit easier. Create a flex library project named "FooAPI" to define the following interface. A SWC "FooAPI.swc" is generated upon the build in the "bin" directory. package com.esri.awx { public interface IFoo { function doFoo( text : String ) : String; } } Create a flex actionscript project named "FooBundle" - make sure to add the AWX swc as a project library and the "FooAPI" project. Modify the FooBundle.as class as follows: package { import com.esri.aws.osgi.framework.IBundleActivator; import com.esri.aws.osgi.framework.IBundleContext; import com.esri.awx.FooImpl; import ...

Hey ArcGIS users

You can create an ArcGIS Server based layer using the AWX Flex API. In the below sample, I'm loading a layer from a specified endpoint and then when I click click on the button, I'm turning off the "water" layer in the ArcGIS group layer. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:framework="com.esri.aws.osgi.framework.*" xmlns:map="com.esri.aws.awx.map.*" xmlns:layers="com.esri.aws.awx.map.layers.*" layout="absolute" > <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; import mx.collections.ItemResponder; import com.esri.aws.awx.map.layers.LayerVisibility; private function turnWaterOff() : void { ags.getLayerVisibilities( new ItemResponder( function(data : Object, token : Object = null) : void { var arrCol : ArrayCollection = data as ArrayCollection; for each ( var layerVisib...

MinnDOT using Flex and AWX

Success story using Adobe Flex and ESRI AWX .

AWX2 Beta3 Released

Download it from here . One of the new items is great documentation of the API.

My MAX 2007 Presentation

Thanks all for attending, it was a packed room. You can download a zipped ppt version of my presentation from here .