ArcGIS API for Flex three, straight to the point

Source: Internet
Author: User

Version: Flash Builder 4  &&  arcgis API for Flex 2.5

<?xml version= "1.0" encoding= "Utf-8"?> <s:application xmlns:fx= "http://ns.adobe.com/mxml/2009" xmlns:s= "Li Brary://ns.adobe.com/flex/spark "xmlns:esri=" Http://www.esri.com/2008/ags "xmlns:mx=" library://ns.adobe.com/f Lex/mx "minwidth=" 955 "minheight=" > <fx:Declarations> <!--Create a spatial reference of 4326 for GPs coordinate reference----<esri:spat  
		Ialreference id= "sr" wkid= "4326"/> <!--Create control bar--<esri:navigationtool id= "Navtoolbar" map= "{myMap}"/> <!--create Drawing toolbar drawtoolbar--> <esri:drawtool id= "Drawtoolbar" map= "{myMap}" graphicslayer= "{Mygraphicslayer}" /> </fx:Declarations> <esri:map crosshairvisible= "true" id= "MyMap" > <esri:extent> &lt ; esri:extent id = "Esrimapextent" xmin= "ymin=" 39.5 "xmax=" 116.5 "ymax=" 40.5 "/> </esri:extent> &lt ; Esri:arcgistiledmapservicelayer url= "Http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_ 2d/mapserver "/> <esri:Graphicslayer id= "Mygraphicslayer" spatialreference= "{sr}"/> </esri:Map> <mx:controlbar horizontalgap= " 0 "paddingbottom=" 0 "paddingtop=" 0 "label=" Map control bar "> <mx:button label=" Zoom in "click=" Navtoolbar.activate (
		navigationtool.zoom_in) "/> <mx:button label=" Zoom Out "click=" Navtoolbar.activate (navigationtool.zoom_out) "/> <mx:button label= "roaming" click= "navtoolbar.activate (navigationtool.pan)"/> <mx:button label= "ancestor window" click= " Navtoolbar.zoomtoprevextent () "enabled=" {!navtoolbar.isfirstextent} "/> <mx:button label=" downlevel window "click=" Navtoolbar.zoomtonextextent () "enabled=" {!navtoolbar.islastextent} "/> <mx:button label=" reset "click=" NavToolbar.map.zoomToInitialExtent () "/> </mx:ControlBar> <mx:controlbar horizontalgap=" 0 " paddingbottom= "0" paddingtop= "label=" Drawing toolbar > <mx:button label= "point" click= "Drawtoolbar.activate ( Drawtool.mappoint) "/> <mx:button label=" line "click=" Drawtoolbar.activate (drawtool.polyline) "/> <Mx:button label= "Streamline" click= "Drawtoolbar.activate (drawtool.freehand_polyline)"/> <mx:button label= "painted Face" click= " Drawtoolbar.activate (Drawtool.polygon) "/> <mx:button label=" Flow surface "click=" drawtoolbar.activate ( Drawtool.freehand_polygon) "/> <mx:button label=" End Drawing "click=" drawtoolbar.deactivate () "/> </mx: Controlbar> </s:Application>


 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.