break egg, pour liquid, etc.) and spatial regions (e.g. Video Annotator: Temporal segments showing different human activities (e.g.Image Annotator: Basic image annotation demo.via_subtitle_annotator.html : online copy (via_audio_annotator.html : online copy ( via_video_annotator.html : online copy (via_image_annotator.html : online copy (via-3.0.11.zip : includes the VIA application and its demo.Import .editfeatureswithfeaturelinkedannotation.databinding. Import .view.DefaultMapViewOnTouchListener */ package .editfeatureswithfeaturelinkedannotation * See the License for the specific language governing permissions and * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * distributed under the License is distributed on an "AS IS" BASIS, * Unless required by applicable law or agreed to in writing, software * You may obtain a copy of the License at * you may not use this file except in compliance with the License. * Licensed under the Apache License, Version 2.0 (the "License") This sample uses data derived from the Loudoun GeoHub TagsĪnnotation, attributes, feature-linked annotation, fields Sample Code Push the data into the scoped storage of the sample app:Īdb push loudoun_anno.geodatabase /Android/data/.editfeatureswithfeaturelinkedannotation/files/loudoun_anno.geodatabase About the data.Open your command prompt and navigate to the folder where you extracted the contents of the data from step 1.Extract the contents of the downloaded zip file to disk.Note that the dimension annotation updates according to the expression Round(Length(Geometry($feature), 'feet'), 2).īoth expressions were defined by the data author in ArcGIS Pro using the Arcade expression language. For the parcel lines, a second tap will change one of the polyline's vertices.For the address points, a dialog is opened to allow editing of the address number (AD_ADDRESS) and street name (ST_STR_NAM) attributes, which use the expression $feature.AD_ADDRESS + " " + $feature.ST_STR_NAM for annotation.NOTE: Selection is only enabled for points and straight (signal segment) polylines. Use a DefaultMapViewOnTouchListener to listen for taps on the map to either select address points or parcel polyline features.Add the FeatureLayers and AnnotationLayers to the map's operational layers.Create AnnotationLayers from GeodatabaseFeatureTables found in the geodatabase with geodatabase.geodatabaseAnnotationTables.Create FeatureLayers from GeodatabaseFeatureTables found in the geodatabase with geodatabase.geodatabaseFeatureTables.That functionality is covered in the sample Generate geodatabase. NOTE: Read/write geodatabases should normally come from a GeodatabaseSyncTask. The feature-linked annotation will update accordingly. NOTE: Selection is only enabled for points and straight (single segment) polylines. Tap one of the dashed parcel polylines and tap another location to change its geometry. Tap one of the address points to update the house number (AD_ADDRESS) and street name (ST_STR_NAM). Pan and zoom the map to see that the text on the map is annotation, not labels. Additionally, the position of the annotation will transform to match any transformation to the linked feature's geometry. Feature-linked annotation will update when a feature attribute referenced by the annotation expression is also updated. Edit feature attributes which are linked to annotation through an expression.Īnnotation is useful for displaying text that you don't want to move or resize when the map is panned or zoomed (unlike labels which will move and resize).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |