Access feature data in the cloud—ArcGIS API for Flex | ArcGIS for Developers

Web editing requires a feature service to provide the symbology and feature geometry of your data. Feature services allow you to create custom REST endpoints to store and query geographic data such as points, lines and polygons. Store custom rendering rules and metadata such as place names, ratings and addresses. Run analysis and computations against your stored data. Create hosted tile sets with baked-in feature services. that allows you to access and edit vector map data. Feature services are accessible via a feature layer. Feature layers can do a variety of things and can reference a layer in either a map service or a feature service. However, when you use a feature layer for editing purposes you need to reference a layer in a feature service. Web editing requires some initial setup of a feature service, which exposes information about a layer’s feature geometries and attributes. Also, geometry services can be used to accomplish some Web editing tasks. In order to use the main Editor component, for example, you must have a running geometry service. When you perform editing, your Web application tells the feature layer which attributes have changed and, if applicable, how the geometry changed. The feature layer also displays the updated features after editing. The feature services can be hosted on ArcGIS Online (Esri’s cloud) or on your on-premise servers. The following steps assume you have completed the steps necessary to create a new project and add the Flex API library as discussed in the Adding data from a feature service is as simple as instantiating a feature layer and adding it to your map. To instantiate the layer, all you need is a URL to the feature service you’re going to use, and optionally, the user credentials to access that service. The service you’re using in this topic is public, so you do not need to provide any credentials. After adding the layer to the map, you’ll add a reference to a geometry service. In the Editor View, add the MXML below to create a map with a set spatial reference and extent, add a basemap layer, and lastly add a feature layer by referencing a specified feature service layer’s URL. In the Editor View, add the MXML below including reference to the Editor component. This component bundles much of the editing functionality up in one component so that all you need to do is reference it within your code with a corresponding geometry service. &lt,![CDATA[ import mx.events.FlexEvent, protected function application1_initializeHandler(event:FlexEvent):void { myEditor.featureLayers = [ incidentsAreas ], } ]]&gt, You probably notice that the Editor component displays horizontally across the top of the application. Let’s adjust this slightly to make it easier to use within the application. @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 { background-color: #FFFFFF, border-thickness: 2, } Click on one of the Editor component’s feature templates and digitize an area within the map. Once you finish the feature, you should notice an infowindow display. This is where you could edit the attributes of the given feature. Accessing data from the cloud is not difficult to accomplish while working with the Flex API. In this particular example, we worked with the Editor component which handles a lot of the editing complexity for you. We were able to create a simple web mapping application with access to editable feature data in the cloud in just a matter of a few steps. Conceptually, this is how the code breaks down: Wire the application’s initialize handler upon startup of the application so that it instantiates the Editor component correctly. Source.

If you can`t find the vector map of country or city you are looking for, or need some objects to be added, please feel free to contact >>> our friendly team. We draw it in less than 24 hours. All formats: .PDF; .DWG; .AI; .EPS; .CDR; .DXF; .DWG; .PPT

Vector Mappers

SolCity NAV SRL draw maps of countries and cities in a variety of electronic and graphic formats for more than 25 years. Our maps used by the police and rescue services, urban services, many designers, printers, web designers across the globe. In addition, the company develops navigation applications for Android devices, maps for Garmin, LED lighting systems for highways and public areas, legal services, patent services. The company operates in the Dominican Republic, the US, Russia, Latvia and Estonia. We draw a maps since the 17th century.