This is documentation of an archived release.
For documentation on the current version, please check Knowledge Base.
For documentation on the current version, please check Knowledge Base.
Example Use
The example below is a basic example of opening a publication using MXML.
It also demonstrates how you can capture measurement completion events.
<?xml version="1.0" encoding="utf-8"?> <s:Group 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:webclient="com.orbitgis.component.webclient.*"> <fx:Script> <![CDATA[ import com.orbitgis.component.webclient.events.MeasureEvent; private function handleMeasureComplete(event:MeasureEvent):void { trace("Measurement Complete."); trace("Coordinate : "+ event.properties[MeasureEvent.PROPERTY_COORDINATE]); } ]]> </fx:Script> <webclient:WebClient id="client" url="http://developer.orbitgis.com/service" username="dev" password="dev" publicationName="Sint-Niklaas GRB" width="100%" height="100%" measureComplete="handleMeasureComplete(event)"/> </s:Group>
Last modified:: 2019/03/25 11:36