Skip to content

Commit 7b6de95

Browse files
sclaridgejenmerritttschieRachael-EJonLavi
authored
Merge master into dev (#552)
* Add Warning to Display Layer View State Sample (#542) * update api version * change api version to 100.5.0 * change version to 100.5.0 * start updates for java 11 * update java 11 parts * add dependencies for all platforms * Delete module-info.java * Update README Update README to alert Java 11 users to potential exceptions which may occur when running the project. Providing a suggested workaround from the OpenJavaFX docs. * Update README.md * add an integrated mesh layer sample * update arcgis version * use javafx plugin * remove jar task config * update arcgis version * move stage show * add point cloud data to sample data downloads * view point cloud data offline sample * Update build.gradle * change camera viewpoint * remove unused imports * update image * update api version * edit about the data and additional info sections * fix comment * Removed errant full stop * Open Mobile Scene Package (#318) * Gradle script includes path to download mspk file (further work required here) and implementation of sample in Java * Create README.md * Create OpenMobileScenePackage.png * Update typo in README * Updated gradle to point to correct data on AGOL * Update to sample code following review * Updates to ReadMe following review * Additional update to read me to include isDirectReadSupported.get * Updated from markdown to HTML * Remove id tags from HTML * Map reference scale (#319) * Create MapReferenceScaleSample.java * Set up MVC structure for sample * Set up basic map with MVC structure * Added label which updates scale of map as it changes * Set up means to change the map view to the selected reference scale * Set up check boxes for map layers * Update MapReferenceScaleController.java * Update MapReferenceScaleController.java * Allow string in combobox, split to return double to feed into map reference scale * Link checkbox with map layer to set reference scale * Method descriptions and remove unused imports * Fix indents * Create MapReferenceScale.png * Create README.md * Convert markdown to HTML * Addressed comments from review. ComboBox now double, vBoxes will load after map has loaded * Add a method to handle setting the reference scale when interacting with the combobox and the scale sync button. * Code updates following review removed unneeded label, added if loaded statement, and refactored map reference scale. Also updated Readme to account for behavior change. * move checkbox logic in with instanceof check * Update MapReferenceScaleController.java * Corrected title for sample * Merge master into dev (#322) * Camera controller US english update (#320) * Replace "aeroplane" with "plane" in README and code * Update image to show corrected spelling * Fix grammar * Updates to Tiled Layer to show support for .tkpx files (#321) * Updates to tiled layer, including .tpkx support * Update tile cache readme to include support .tpkx * Allow downloading of non zip sample data (#324) * Allow downloading of non zip sample data * point scene layer sample (#323) * point scene layer sample * Merge master into Dev (#329) * Camera controller US english update (#320) * Replace "aeroplane" with "plane" in README and code * Update image to show corrected spelling * Fix grammar * Updates to Tiled Layer to show support for .tkpx files (#321) * Updates to tiled layer, including .tpkx support * Update tile cache readme to include support .tpkx * Update slider to show values from 1-5 rather than 0-5 (#328) * remove online elevation data source (#327) * remove online elevation data source * remove unneeded ArcGISScene object * View content beneath terrain surface (#325) * Initiating sample with Scene URL * add done loading listener for changes * portal item entry for data * Add readme and image * Update ViewContentBeneathTerrainSurfaceSample.java * update build and refactor float code * Update ViewContentBeneathTerrainSurfaceSample.java * Add layer view state changed listener * Update ViewContentBeneathTerrainSurface.png * Address comments following review * update comment for add done loading listener on to scene * Update README.md * remove unused imports * group layers sample (#331) group layers sample * update version, delete extra copy of samples data * Play kml tours (#332) * play a kml tour sample * Generate offline map with local basemap (#330) * added dialog box for choosing which basemap to use * Update GenerateOfflineMapWithLocalBasemap.java * Update GenerateOfflineMapWithLocalBasemap.java * Update build.gradle * refactoring and neatening up the code * Update GenerateOfflineMapWithLocalBasemap.java * Ensure that the file exists before prompting user to find local file * Move standard code into private methods to draw attention to new API functionality * Add image and README * Update GenerateOfflineMapWithLocalBasemap.java * Update build.gradle * code restructuring (#333) * code restructuring * comment edits * Update image and readme * update description of generateOfflineMapDialog class * convert fields to local variables * convert readme from md to html * Merging Master into Dev (#345) * Browse wfs layers (#336) browse wfs layers sample * Raster rendering rule (#343) * create class, bring in image service raster, display it * zoom to extent of raster service * add functionality to apply hard-coded raster rendering rule * build and populate renderingruleInfoListView * change rule ListView for DropDown * make raster rendering rule apply on selection in drop-down * refactor imageServiceUrl * refactor applying rendering rule into separate function * refactor populating drop down and building HashMaps into own functions * remove HashMap, find rule through list index@ * improve comments * private final String imageServiceUrl * Add screenshot and update ReadMe * fix screenshot link in README * new screenshot * use string directly as argument for ImageServiceRaster * README from MD to HTML * bring methods back into start * use ComboBox<RenderingRuleInfo> and string converter * add vbox, label to show rendering rule descr. * rearrange imports * remove imageServiceRaster.loadAsync(); * add newline to label, update screenshot * change indentation to 2 spaces * Update README.md - remove html IDs and img alt * add load status indicator * fix imports * make ArgGISMap local * remove ComboBox.setEditable(False); * syntax, adding stylesheet * variable for ImageServiceRaster uri, update readme * formatting terminology in 'how it works' * readme markdown formatting * remove unused imports * comment for auto select of first rule * default selection now shows description * variable naming, remove unused code, factoring, comments * revise readme * comments, uri variable instantiated at first use * improve readme use-case * readme formatting, typos * tag formatting, typos * Merge `master` into `dev` (#350) * Browse wfs layers (#336) browse wfs layers sample * Raster rendering rule (#343) * Get elevation at a point (#341) * GetElevationAtAPoint - update screenshot (#348) * Token authentication (#347) * Update build.gradle * Allows user to click a value on slider to change exaggeration (#351) (#353) * Allows user to click a value on slider to change exaggeration * remove value changed listener, move annotation to correct place, add space before bracket * merge master into dev for ClosestFacilityStatic (#358) * Allows user to click a value on slider to change exaggeration (#351) * Closest facility static (#346) * merge master into dev (#362) * Clean up readme (#356) * fix/spatial-operations-reset-button (#359) * Edit and sync features (#352) * merge master into dev (#368) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * merge master into dev - oAuth Sample patch (#369) * Tschie/split (#387) separate samples into individual gradle projects, convert readmes to markdown, add readme metadata files * fix naming * Routing around barriers (#354) * build class with scene * render street map and add controls panel * add ui elements * add stops with lables on mouse click * add toggle of checkboxes * create pin symbols, number the stops incrementally * solve route task and display it, display instructions * can add barriers to map, switch between adding stops and barriers * implement barriers in routing, implement reset button * set the mode to adding stops on sample start * clear routes / barriers on right click * clear previous route when calculating new route * rearrange code for readability * symbol colours, fix remove last barrier * improve deleting stops and barriers * ui improvements, comments * improve comments/code structure, pin design * split sample into MVC structure with fxml * edit ui and comments * arrange code, comments, ui improvements * add display of travel time and distance * ui tweaks, add screenshot * add how it works, add use case * move variables from class to function scope * variable naming * README to html * revise readme * revise readme * add code comments * tidy imports * show route length in miles * whitespace * improve return compositesymbol * improve string formatting in route info * remove TODO * route length shows in km * remove unneeded TODOs * comment formatting * comment wording * comment wording * var naming, refactoring * fix bad routing condition, remove unused imports * comments and refactoring * barrier/route symbols to instance variables * create route task at launch * improve route solving and UI * whitespace * functions -> in-line code * readme edits * variables to method scope * fxml formtting, commenting, ui improvements * fxml line breaks * change 2nd order lists to ul * add normalizing geometry code * fxml refactor * reset title pane, pin image to class var * improve route info fetch * route/stop lists -> linked lists * improve removing stops/barriers * refactor click handling * refactor click handling * improve deleting stops/barriers * refactor adding/deleting stops * fixes * comments * indentation * formatting sample file * update README.md, comments * determine route automatically * use renderer for route graphics * bug fixes, refactoring * formatting * README.md to MD * remove extra backtick * add gradle wrapper * set main class to launcher * update README.md * Find service areas for multiple facilities (#367) * create basic class with ui elements, symbols * load in feature table, layer, and zoom to extent * solve service area task and display * UI improvements * imports * add facilities to task through featuretable * formatting * refactoring, ui fixes * comments and formatting * rm comment * add readme and screenshot * readme and comment edits * rename, remove reset button * rename, reduce service area * update readme to mirror design * comments * remove unused SimpleFillSymbol * graphics changes * change basemap to grey canvas * refactoring and variable naming * refactoring * readme wording * comments * screenshot * 3/5min service areas, yellow/red color * comments, bigger facility symbols * remove unneeded code, comment improvements, loop indices * describe both cutoffs in readme * service area comment * readme to html * smaller service areas, new screenshot * update readme for new service areas * update README.md, sample title * implement review changes * update settings.gradle * update build.gradle * package and folder names * Sample title: Area -> Areas * add gradle wrapper * fix main class name * implement review changes * update README.md, comments * update screenshot * update screenshot * Fix comment in ColormapRendererSample.java (#391) * Patch/create and save map - default challenge handler (#388) * implement default challenge handler * Update CreateAndSaveMapController.java fix typo * Update README.md * update README.md, code formatting * remove ShowMessage() method * review changes, update README to standard format * code formatting * Read symbols from mobile style file (#357) * create basic sample class with stage and map * split into main class, controller, fxml * load and search stylx file * click adds symbol to map * add styles to preview * add style to combobox, build preview on select * auto-build symbol preview and add on click * add slider to control size * add color selection dropdown * preview symbols in combobox * color only affects first symbol layer * code formatting, change first color to yellow * fix symbol and graphic sizing bug * improve variables * comboboxes to listviews * UI improvements and comments * refactoring and comments * make preview not resize with slider * refactoring * add readme * allow empty symbol selection, resize preview, fix mouse clicks * fix size slider preview * add labels and reset button * ui improvements * formatting and comments * add red color option, add screenshot * fxml formatting * formatting * formatting * refactoring * comments and refactoring * fxml refactor * formatting * comments and refactoring * swap SymbolLayerInfo class for HashMap * comments * use SymbolStyleSearchResult directly to access symbols * comments and refactoring * implement slider functionality through fxml * formatting * improve use case * use case wording * improve updateSymbolSize() * Revert "improve updateSymbolSize()" This reverts commit 372e73c09825265a016adfb59400ca849d3043c0. * refactor mouse click into fxml * add default switch case * inner classes to bottom of the file * reorder for consistency * whitespace * listview array instead of list * refactoring * ui improvements * readme improvements * review corrections * commen * change colour options * slider reacts to click and to drag * implement review changes * update README.md * inner classes to private, override methods * Update README.md * add gradle wrapper * fix data download * implement review changes * review changes, implement color picker * code formatting * Update geopackage sample (#374) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * patch oAuth sample custom challengehandler (#366) * implement fix for javafx webengine * formatting * add fix for create and save map sample * markdown to html formatting * update read geopackage design * update readme code snippets * improve comments * remove unneeded comments * comment wording * implement review corrections * whitespace * remove unrelated files * implement review changes * remove css stylesheet * clean up some comments * add readme metadata file * Patch/oauth default challenge handler (#375) * oauth with default challenge handler * code formatting and comments * correct redirect uri * remove fxml, formatting * revert gradle-wrapper.jar * comments * readme updated for def challenge handler * implement review changes * rename class file to match docsgst * rename package * implement default challenge handler * restore build.gradle * Revert "restore build.gradle" This reverts commit 35c1df0c3df53e1748ee44db0cb388085fa066b6. * Revert "implement default challenge handler" This reverts commit bd984783687fa1e2653f366fe9a99ff74bed6055. * fix screenshot file name * revert package and class name * update README.md * revert sample name, update README.metadata.json * implement review changes * remove extra comma * Routing around barriers - add isStillSincePress to mouse events (#394) * add isStillSincePress to mouse events * remove error log from error dialog * oauth - README.metadata.json formatting (#395) * formatting * mmpk to class member (#398) * Patch/dictionary symbol style update constructor (#393) * update DictionarySymbolStyle constructor * update README.md and comments * update Item ID * update constructor in remaining samples * update README.md, README.metadata.json * optimise imports * update xml files to remove control points * get Mil2525d xml from AGOL where applicable * remove xml in resources * fix typo on mil2525d * Patch/geometry engine simplify - add isSimple check (#399) * add isSimple check * update Readme.md * update comments, update metadata.json * Integrated windows auth (#370) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * patch oAuth sample custom challengehandler (#366) * implement fix for javafx webengine * formatting * add fix for create and save map sample * markdown to html formatting * working sample * comments, formatting, UI improvements * UI, screenshot, readme * readme formatting * code formatting * ui improvements, screenshot * comments, formatting * readme tags * javadoc comments * ui improvements * ui improvements * refactoring * comments * address review suggestions * smaller UI * update screenshot * listview holds portal item ids * Update README.md, comments * update README.md * fix package and path names * delete irrelevant files * readme to MD * add README.metadata.json * updated README.metadata.json * remove public search, refactoring * whitespace * cell factory to class, fxml tidying * error handling, comments, refactoring * error handling * remove loading/portal info text * class member to local var * update Readme.md for UI changes and review suggestions * refactoring * fix typo * Move construction of portal query parameters to its own line * small UI improvements, update screenshot * update README.md for screenshot link (#403) * Integrated windows auth - update README.metadata.json (#402) * update RAEDME.metadata.json * update tags in README.metadata.json * move local data download logic to settings.gradle (#401) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * patch oAuth sample custom challengehandler (#366) * implement fix for javafx webengine * formatting * add fix for create and save map sample * markdown to html formatting * corrects WKID to 4326 (#389) * corrects WKID to 4326 * use SpatialReferences.getWgs84 * move local data download logic to settings.gradle * move data download logic to settings.gradle * fix data paths * fixing data download for mil2505 xml file for sample viewer v2504 (#404) * update DictionarySymbolStyle constructor * update README.md and comments * update Item ID * update constructor in remaining samples * update README.md, README.metadata.json * optimise imports * update xml files to remove control points * get Mil2525d xml from AGOL where applicable * remove xml in resources * move data download to settings.gradle, fix paths * fix typo * fix directory name * fix local data folder * put native libraries in .arcgis folder * Honor mmpk expiration (#397) * initial commit * working sample * refactoring * refactoring, comments * copyright statement in Launcher class * data download to settings.gradle * change expiration display to static date, CSS edits * update screenshot * expiration message to sentence case * fix settings.gradle. Again. * plement review suggestions * formatting * update README.metadata.json * comments * Set annotation sublayer visibility (#396) * show scale in label * load mmpk * add checkboxes with labels * activate checkboxes, change checkbox text color dynamically * update label color * fix checkboxes, comments * optimise imports, copyright comment * labels and screenshot * update screenshot * update runtime build, update README.md * mmpk to class member * formatting and comments * javadoc comments * restore show_callout files * move downloading of sample data to settings.gradle * fix package naming * move scale label to control panel, check mmpk contains maps * fix checkbox text colours * UI fixes and label colouring * data download in settings.gradle * update README.md * update screenshot for UI changes * fix settings.gradle * fix settings.gradle * formatting * README.metadata.json redirect url to blank string * update README.md * Tschie/preplanned map (#405) * download preplanned map sample * refactoring * add ref to update parameters * method/enum name for update option * method/enum name for update option * update runtime version, imports * inner class to private * add auth manager to handle OAuth challenge * mark portal as requires authentication * update README.md * add screenshot alt text * update README.md * update README.md * update README.md for scheduled updates workflow * update link to guide * update README.md * update use case * improve 'how it works' * add preview of area of interest * improve drawing area of interest * update use case wording, references in additional information * fix deleting temp files, add button 'return to web map' * add numbering to list view * zoom to area on select, refactoring * update listener adding/removing * refactoring * disable/enable showWebMapButton approprately * add README.metadata.json * fix function naming * add confirmation popup when deleting * refactoring, use commons library to delete * fix commons-io dependency * 'show web map' button width * reorder imports * improve viewpoint change, button updates * smaller UI * refactoring and comments * javadoc comments and formatting * remove stray q file * address review corrections * review changes and refactoring * refactoring * whitespace * web map -> online map * further information -> additional information * mmpk to class member * change button text * selecting view online map pans to selected area * formatting * update README.md * copyright statements * remove commented code * try to simplify a bit * simplify sample * don't hide graphics overlay on download * add snippet * update How to use the sample section * Update DownloadPreplannedMap.png * Slim up the use case * remove fxml comments * remove redirect from for new sample * ignore iml files * Create and save kml file (#406) * create folder structure, add readme, metadata.json * split to mvc and add fxml file * ui and button events * UI and sketch mode * add basic kml sketching * show and hide style window after sketch complete * UI toggling based on app state * refactoring * add applying style * add saving * add combobox item list cell * show preview in combobox * JavaDoc comments * comments and refactoring * UI improvements * copyright in list cell factory * Center labels in UI * update README.md * add screenshot * improve saving * tidy ui, wait for map to load to enable ui * formatting * formatting fxml * optmise imports * remove unused css classes * improve file saving * refactor sample and improve UI * refactoring and comments * simplify UI (#407) * simplify UI * reuse file chooser * update readme, metadata, and image * add comments * remove unused imports * Apply scheduled updates to preplanned map area (#392) * initial commit * fix launcher * add apache commons dependencies, fix runtime version * update runtime version * update gradle script * review changes * add README.metadata.json * remove gif * update screenshot * mmpk to class member * update README.metadata.json * add second check for updates after applying * refactor checking for update * title typo, widen UI * update runtime build * remove error message details, refactoring * remove unused imports * move downloading from build to settings.gradle * update README.metadata.json * remove unneeded sync direction code * remove unneeded imports * update runtime version * replace UI with alert * update screenshot and readme.md * fix alert typo * remove progress indicator, add javadocs * remove update checks and update automatically * update README.metadata.json * Revert "remove update checks and update automatically" This reverts commit b9ee5ec630a52d1fd986cd4c531b47a37d45e8b6. * Revert "update README.metadata.json" This reverts commit 74e6859785e0737b24833e7d98a24e8b8adbda8e. * minor cleanup * Rewording * Patch/apply scheduled updates (#412) * remove rollback on fail * create new instance when reopen mmpk * update comments * clean up imports * Data parent directory (#413) * Specify samples-data directory in File constructors * remove sout * add missing parent directory * add missing parent dir * Revert "add missing parent dir" This reverts commit 29c5abe24bce0f227a88225808558c3f5b593e89. * add missing parent dir * change canonicalPath to absolutePath * specify parent directory in File constructor * avoid explicit list of excluded directories * show progress indicator on initial load * Jon/remove unpack workflow2 (#422) * remove unpack workflow * add System.getProperty(data.dir), * Custom dictionary style [into dev] (#421) * add sample * add toggle box and use only overrides with effect * change initial viewpoint, rearrange code * update screenshot for new UI * update readme to reflect changes * update 'how to use' * simplify sample * var naming and comments * update screenshot, readme, comments * update README.md * update readme.md * changes from design review * review changes * remove extra comma * minor rewording * readme formatting * add data.dir property * Edit kml ground overlay [into dev] (#420) * initial commit * fix comments * refactoring * comments * fix URI * remove unused CSS, add screenshot * implement review corrections * update screenshot for new UI * UI changes, simplify applying opacity * setGroundOverlayOpacity() comment wording * update scene comment for clarity * review corrections * Change fields to local variables * add data.dir param * add panel-region class to vbox * Display subtype feature layer (#427) * set up sample * Update DisplaySubtypeFeatureLayerSample.java * update readme * refactor for fxml * self review * address review comments and update UI * fix typo * update method name * enable UI once sublayer has loaded * minor rewording * New Sample - Find connected features in utility network (#419) * add base classes and load utility network * build UI * add creating parameters and building trace task * fix asset group and type selection * comments in asset group/type search * add sorting and selecting connected features to highlight * terminal selection dialog * formatting * comments, formatting, UI fixes * ui optimisation * fix dialog list view, add list cell * use GeometryEngine.nearestCoordinate(), javadocs, formatting * add loading utility element groups workaround * add comment to highlight workaround * refactoring, formatting, javadoc * comment spelling * restore gradle files * java-tize README * update README.md and README.metadata.json * formatting, javadoc, and comments * rename method enableButtonInteraction() * Update README.md * unchain methods for readability * remove workaround (sample only in Dev for now) * whitespace * make controls area smaller * comments on symbol creation * refactoring, wait for selection to finish to hide progress indicator * javadoc * update 'about the data' * update 'how to use' * update 'how to use' and remove reference to 'Element' in status label * unused import * formatting * remove unused imports * typos, wording, sorting of relevant apis * rename sample * use renderers for starting point and barriers * remove unneeded check for barriers list * clear previous trace results directly after trace click * remove try/catch from terminal select dialog * refactor fxml * use ChoiceDialog for terminal selection * use unique value renderer for lines * update sample for new design * optimise imports£ * use string converter for terminal selection * update comments * bind handleMapViewClicked in fxml * refactoring * comments and formatting * ui improvements * refactor fetching asset type code * refactoring * improve terminal selection dialog * copyrights and readme.metadata.json * formatting and comments * fix fractionAlongEdge label * fix fractionAlongEdge label * remove console output of fraction along edge * improve error messages, keep terminal dialog in same window * improve element creation/terminal selection * better input confirmation, better terminal selection * remove check for geometry type * update readme, runtime version, code comments * readme and comments grammar * round fraction along edge, smaller UI * update screenshot for thinner UI * add base classes and load utility network * build UI * add creating parameters and building trace task * fix asset group and type selection * comments in asset group/type search * add sorting and selecting connected features to highlight * terminal selection dialog * formatting * comments, formatting, UI fixes * ui optimisation * fix dialog list view, add list cell * use GeometryEngine.nearestCoordinate(), javadocs, formatting * add loading utility element groups workaround * add comment to highlight workaround * refactoring, formatting, javadoc * comment spelling * restore gradle files * java-tize README * update README.md and README.metadata.json * formatting, javadoc, and comments * rename method enableButtonInteraction() * Update README.md * unchain methods for readability * remove workaround (sample only in Dev for now) * whitespace * make controls area smaller * comments on symbol creation * refactoring, wait for selection to finish to hide progress indicator * javadoc * update 'about the data' * update 'how to use' * update 'how to use' and remove reference to 'Element' in status label * unused import * formatting * remove unused imports * typos, wording, sorting of relevant apis * rename sample * use renderers for starting point and barriers * remove unneeded check for barriers list * clear previous trace results directly after trace click * remove try/catch from terminal select dialog * refactor fxml * use ChoiceDialog for terminal selection * use unique value renderer for lines * update sample for new design * optimise imports£ * use string converter for terminal selection * update comments * bind handleMapViewClicked in fxml * refactoring * comments and formatting * ui improvements * refactor fetching asset type code * refactoring * improve terminal selection dialog * copyrights and readme.metadata.json * formatting and comments * fix fractionAlongEdge label * fix fractionAlongEdge label * remove console output of fraction along edge * improve error messages, keep terminal dialog in same window * improve element creation/terminal selection * better input confirmation, better terminal selection * remove check for geometry type * update readme, runtime version, code comments * readme and comments grammar * round fraction along edge, smaller UI * update screenshot for thinner UI * Update dev (#434) * use correct arcgis version (#424) * remove reference to toggling coordinates (#426) * 100.7.0 (#425) * update api version * change api version to 100.5.0 * change version to 100.5.0 * start updates for java 11 * update java 11 parts * add dependencies for all platforms * Delete module-info.java * Update README Update README to alert Java 11 users to potential exceptions which may occur when running the project. Providing a suggested workaround from the OpenJavaFX docs. * Update README.md * add an integrated mesh layer sample * update arcgis version * use javafx plugin * remove jar task config * update arcgis version * move stage show * add point cloud data to sample data downloads * view point cloud data offline sample * Update build.gradle * change camera viewpoint * remove unused imports * update image * update api version * edit about the data and additional info sections * fix comment * Removed errant full stop * Open Mobile Scene Package (#318) * Gradle script includes path to download mspk file (further work required here) and implementation of sample in Java * Create README.md * Create OpenMobileScenePackage.png * Update typo in README * Updated gradle to point to correct data on AGOL * Update to sample code following review * Updates to ReadMe following review * Additional update to read me to include isDirectReadSupported.get * Updated from markdown to HTML * Remove id tags from HTML * Map reference scale (#319) * Create MapReferenceScaleSample.java * Set up MVC structure for sample * Set up basic map with MVC structure * Added label which updates scale of map as it changes * Set up means to change the map view to the selected reference scale * Set up check boxes for map layers * Update MapReferenceScaleController.java * Update MapReferenceScaleController.java * Allow string in combobox, split to return double to feed into map reference scale * Link checkbox with map layer to set reference scale * Method descriptions and remove unused imports * Fix indents * Create MapReferenceScale.png * Create README.md * Convert markdown to HTML * Addressed comments from review. ComboBox now double, vBoxes will load after map has loaded * Add a method to handle setting the reference scale when interacting with the combobox and the scale sync button. * Code updates following review removed unneeded label, added if loaded statement, and refactored map reference scale. Also updated Readme to account for behavior change. * move checkbox logic in with instanceof check * Update MapReferenceScaleController.java * Corrected title for sample * Merge master into dev (#322) * Camera controller US english update (#320) * Replace "aeroplane" with "plane" in README and code * Update image to show corrected spelling * Fix grammar * Updates to Tiled Layer to show support for .tkpx files (#321) * Updates to tiled layer, including .tpkx support * Update tile cache readme to include support .tpkx * Allow downloading of non zip sample data (#324) * Allow downloading of non zip sample data * point scene layer sample (#323) * point scene layer sample * Merge master into Dev (#329) * Camera controller US english update (#320) * Replace "aeroplane" with "plane" in README and code * Update image to show corrected spelling * Fix grammar * Updates to Tiled Layer to show support for .tkpx files (#321) * Updates to tiled layer, including .tpkx support * Update tile cache readme to include support .tpkx * Update slider to show values from 1-5 rather than 0-5 (#328) * remove online elevation data source (#327) * remove online elevation data source * remove unneeded ArcGISScene object * View content beneath terrain surface (#325) * Initiating sample with Scene URL * add done loading listener for changes * portal item entry for data * Add readme and image * Update ViewContentBeneathTerrainSurfaceSample.java * update build and refactor float code * Update ViewContentBeneathTerrainSurfaceSample.java * Add layer view state changed listener * Update ViewContentBeneathTerrainSurface.png * Address comments following review * update comment for add done loading listener on to scene * Update README.md * remove unused imports * group layers sample (#331) group layers sample * update version, delete extra copy of samples data * Play kml tours (#332) * play a kml tour sample * Generate offline map with local basemap (#330) * added dialog box for choosing which basemap to use * Update GenerateOfflineMapWithLocalBasemap.java * Update GenerateOfflineMapWithLocalBasemap.java * Update build.gradle * refactoring and neatening up the code * Update GenerateOfflineMapWithLocalBasemap.java * Ensure that the file exists before prompting user to find local file * Move standard code into private methods to draw attention to new API functionality * Add image and README * Update GenerateOfflineMapWithLocalBasemap.java * Update build.gradle * code restructuring (#333) * code restructuring * comment edits * Update image and readme * update description of generateOfflineMapDialog class * convert fields to local variables * convert readme from md to html * Merging Master into Dev (#345) * Browse wfs layers (#336) browse wfs layers sample * Raster rendering rule (#343) * create class, bring in image service raster, display it * zoom to extent of raster service * add functionality to apply hard-coded raster rendering rule * build and populate renderingruleInfoListView * change rule ListView for DropDown * make raster rendering rule apply on selection in drop-down * refactor imageServiceUrl * refactor applying rendering rule into separate function * refactor populating drop down and building HashMaps into own functions * remove HashMap, find rule through list index@ * improve comments * private final String imageServiceUrl * Add screenshot and update ReadMe * fix screenshot link in README * new screenshot * use string directly as argument for ImageServiceRaster * README from MD to HTML * bring methods back into start * use ComboBox<RenderingRuleInfo> and string converter * add vbox, label to show rendering rule descr. * rearrange imports * remove imageServiceRaster.loadAsync(); * add newline to label, update screenshot * change indentation to 2 spaces * Update README.md - remove html IDs and img alt * add load status indicator * fix imports * make ArgGISMap local * remove ComboBox.setEditable(False); * syntax, adding stylesheet * variable for ImageServiceRaster uri, update readme * formatting terminology in 'how it works' * readme markdown formatting * remove unused imports * comment for auto select of first rule * default selection now shows description * variable naming, remove unused code, factoring, comments * revise readme * comments, uri variable instantiated at first use * improve readme use-case * readme formatting, typos * tag formatting, typos * Merge `master` into `dev` (#350) * Browse wfs layers (#336) browse wfs layers sample * Raster rendering rule (#343) * Get elevation at a point (#341) * GetElevationAtAPoint - update screenshot (#348) * Token authentication (#347) * Update build.gradle * Allows user to click a value on slider to change exaggeration (#351) (#353) * Allows user to click a value on slider to change exaggeration * remove value changed listener, move annotation to correct place, add space before bracket * merge master into dev for ClosestFacilityStatic (#358) * Allows user to click a value on slider to change exaggeration (#351) * Closest facility static (#346) * merge master into dev (#362) * Clean up readme (#356) * fix/spatial-operations-reset-button (#359) * Edit and sync features (#352) * merge master into dev (#368) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * merge master into dev - oAuth Sample patch (#369) * Tschie/split (#387) separate samples into individual gradle projects, convert readmes to markdown, add readme metadata files * fix naming * Routing around barriers (#354) * build class with scene * render street map and add controls panel * add ui elements * add stops with lables on mouse click * add toggle of checkboxes * create pin symbols, number the stops incrementally * solve route task and display it, display instructions * can add barriers to map, switch between adding stops and barriers * implement barriers in routing, implement reset button * set the mode to adding stops on sample start * clear routes / barriers on right click * clear previous route when calculating new route * rearrange code for readability * symbol colours, fix remove last barrier * improve deleting stops and barriers * ui improvements, comments * improve comments/code structure, pin design * split sample into MVC structure with fxml * edit ui and comments * arrange code, comments, ui improvements * add display of travel time and distance * ui tweaks, add screenshot * add how it works, add use case * move variables from class to function scope * variable naming * README to html * revise readme * revise readme * add code comments * tidy imports * show route length in miles * whitespace * improve return compositesymbol * improve string formatting in route info * remove TODO * route length shows in km * remove unneeded TODOs * comment formatting * comment wording * comment wording * var naming, refactoring * fix bad routing condition, remove unused imports * comments and refactoring * barrier/route symbols to instance variables * create route task at launch * improve route solving and UI * whitespace * functions -> in-line code * readme edits * variables to method scope * fxml formtting, commenting, ui improvements * fxml line breaks * change 2nd order lists to ul * add normalizing geometry code * fxml refactor * reset title pane, pin image to class var * improve route info fetch * route/stop lists -> linked lists * improve removing stops/barriers * refactor click handling * refactor click handling * improve deleting stops/barriers * refactor adding/deleting stops * fixes * comments * indentation * formatting sample file * update README.md, comments * determine route automatically * use renderer for route graphics * bug fixes, refactoring * formatting * README.md to MD * remove extra backtick * add gradle wrapper * set main class to launcher * update README.md * Find service areas for multiple facilities (#367) * create basic class with ui elements, symbols * load in feature table, layer, and zoom to extent * solve service area task and display * UI improvements * imports * add facilities to task through featuretable * formatting * refactoring, ui fixes * comments and formatting * rm comment * add readme and screenshot * readme and comment edits * rename, remove reset button * rename, reduce service area * update readme to mirror design * comments * remove unused SimpleFillSymbol * graphics changes * change basemap to grey canvas * refactoring and variable naming * refactoring * readme wording * comments * screenshot * 3/5min service areas, yellow/red color * comments, bigger facility symbols * remove unneeded code, comment improvements, loop indices * describe both cutoffs in readme * service area comment * readme to html * smaller service areas, new screenshot * update readme for new service areas * update README.md, sample title * implement review changes * update settings.gradle * update build.gradle * package and folder names * Sample title: Area -> Areas * add gradle wrapper * fix main class name * implement review changes * update README.md, comments * update screenshot * update screenshot * Fix comment in ColormapRendererSample.java (#391) * Patch/create and save map - default challenge handler (#388) * implement default challenge handler * Update CreateAndSaveMapController.java fix typo * Update README.md * update README.md, code formatting * remove ShowMessage() method * review changes, update README to standard format * code formatting * Read symbols from mobile style file (#357) * create basic sample class with stage and map * split into main class, controller, fxml * load and search stylx file * click adds symbol to map * add styles to preview * add style to combobox, build preview on select * auto-build symbol preview and add on click * add slider to control size * add color selection dropdown * preview symbols in combobox * color only affects first symbol layer * code formatting, change first color to yellow * fix symbol and graphic sizing bug * improve variables * comboboxes to listviews * UI improvements and comments * refactoring and comments * make preview not resize with slider * refactoring * add readme * allow empty symbol selection, resize preview, fix mouse clicks * fix size slider preview * add labels and reset button * ui improvements * formatting and comments * add red color option, add screenshot * fxml formatting * formatting * formatting * refactoring * comments and refactoring * fxml refactor * formatting * comments and refactoring * swap SymbolLayerInfo class for HashMap * comments * use SymbolStyleSearchResult directly to access symbols * comments and refactoring * implement slider functionality through fxml * formatting * improve use case * use case wording * improve updateSymbolSize() * Revert "improve updateSymbolSize()" This reverts commit 372e73c09825265a016adfb59400ca849d3043c0. * refactor mouse click into fxml * add default switch case * inner classes to bottom of the file * reorder for consistency * whitespace * listview array instead of list * refactoring * ui improvements * readme improvements * review corrections * commen * change colour options * slider reacts to click and to drag * implement review changes * update README.md * inner classes to private, override methods * Update README.md * add gradle wrapper * fix data download * implement review changes * review changes, implement color picker * code formatting * Update geopackage sample (#374) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * patch oAuth sample custom challengehandler (#366) * implement fix for javafx webengine * formatting * add fix for create and save map sample * markdown to html formatting * update read geopackage design * update readme code snippets * improve comments * remove unneeded comments * comment wording * implement review corrections * whitespace * remove unrelated files * implement review changes * remove css stylesheet * clean up some comments * add readme metadata file * Patch/oauth default challenge handler (#375) * oauth with default challenge handler * code formatting and comments * correct redirect uri * remove fxml, formatting * revert gradle-wrapper.jar * comments * readme updated for def challenge handler * implement review changes * rename class file to match docsgst * rename package * implement default challenge handler * restore build.gradle * Revert "restore build.gradle" This reverts commit 35c1df0c3df53e1748ee44db0cb388085fa066b6. * Revert "implement default challenge handler" This reverts commit bd984783687fa1e2653f366fe9a99ff74bed6055. * fix screenshot file name * revert package and class name * update README.md * revert sample name, update README.metadata.json * implement review changes * remove extra comma * Routing around barriers - add isStillSincePress to mouse events (#394) * add isStillSincePress to mouse events * remove error log from error dialog * oauth - README.metadata.json formatting (#395) * formatting * mmpk to class member (#398) * Patch/dictionary symbol style update constructor (#393) * update DictionarySymbolStyle constructor * update README.md and comments * update Item ID * update constructor in remaining samples * update README.md, README.metadata.json * optimise imports * update xml files to remove control points * get Mil2525d xml from AGOL where applicable * remove xml in resources * fix typo on mil2525d * Patch/geometry engine simplify - add isSimple check (#399) * add isSimple check * update Readme.md * update comments, update metadata.json * Integrated windows auth (#370) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * patch oAuth sample custom challengehandler (#366) * implement fix for javafx webengine * formatting * add fix for create and save map sample * markdown to html formatting * working sample * comments, formatting, UI improvements * UI, screenshot, readme * readme formatting * code formatting * ui improvements, screenshot * comments, formatting * readme tags * javadoc comments * ui improvements * ui improvements * refactoring * comments * address review suggestions * smaller UI * update screenshot * listview holds portal item ids * Update README.md, comments * update README.md * fix package and path names * delete irrelevant files * readme to MD * add README.metadata.json * updated README.metadata.json * remove public search, refactoring * whitespace * cell factory to class, fxml tidying * error handling, comments, refactoring * error handling * remove loading/portal info text * class member to local var * update Readme.md for UI changes and review suggestions * refactoring * fix typo * Move construction of portal query parameters to its own line * small UI improvements, update screenshot * update README.md for screenshot link (#403) * Integrated windows auth - update README.metadata.json (#402) * update RAEDME.metadata.json * update tags in README.metadata.json * move local data download logic to settings.gradle (#401) * patch-closest-facility-static-readme (#363) * delete sample calculate distance 3D (#365) * Patch/ClosestFacilityStatic- Edit readme 'how to use' (#364) * patch oAuth sample custom challengehandler (#366) * implement fix for javafx webengine * formatting * add fix for create and save map sample * markdown to html formatting * corrects WKID to 4326 (#389) * corrects WKID to 4326 * use SpatialReferences.getWgs84 * move local data download logic to settings.gradle * move data download logic to settings.gradle * fix data paths * fixing data download for mil2505 xml file for sample viewer v2504 (#404) * update DictionarySymbolStyle constructor * update README.md and comments * update Item ID * update constructor in remaining samples * update README.md, README.metadata.json * optimise imports * update xml files to remove control points * get Mil2525d xml from AGOL where applicable * remove xml in resources * move data download to settings.gradle, fix paths * fix typo * fix directory name * fix local data folder * put native libraries in .arcgis folder * Honor mmpk expiration (#397) * initial commit * working sample * refactoring * refactoring, comments * copyright statement in Launcher class * data download to settings.gradle * change expiration display to static date, CSS edits * update screenshot * expiration message to sentence case * fix settings.gradle. Again. * plement review suggestions * formatting * update README.metadata.json * comments * Set annotation sublayer visibility (#396) * show scale in label * load mmpk * add checkboxes with labels * activate checkboxes, change checkbox text color dynamically * update label color * fix checkboxes, comments * optimise imports, copyright comment * labels and screenshot * update screenshot * update runtime build, update README.md * mmpk to class member * formatting and comments * javadoc comments * restore show_callout files * move downloading of sample data to settings.gradle * fix package naming * move scale label to control panel, check mmpk contains maps * fix checkbox text colours * UI fixes and label colouring * data download in settings.gradle * update README.md * update screenshot for UI changes * fix settings.gradle * fix settings.gradle * formatting * README.metadata.json redirect url to blank string * update README.md * Tschie/preplanned map (#405) * download preplanned map sample * refactoring * add ref to update parameters * method/enum name for update option * method/enum name for update option * update runtime version, imports * inner class to private * add auth manager to handle OAuth challenge * mark portal as requires authentication * update README.md * add screenshot alt text * update README.md * update README.md * update README.md for scheduled updates workflow * update link to guide * update README.md * update use case * improve 'how it works' * add preview of area of interest * improve drawing area of interest * update use case wording, references in additional information * fix deleting temp files, add button 'return to web map' * add numbering to list view * zoom to area on select, refactoring * update listener adding/removing * refactoring * disable/enable showWebMapButton approprately * add README.metadata.json * fix function naming * add confirmation popup when deleting * refactoring, use commons library to delete * fix commons-io dependency * 'show web map' button width * reorder imports * improve viewpoint change, button updates * smaller UI * refactoring and comments * javadoc comments and formatting * remove stray q file * address review corrections * review changes and refactoring * refactoring * whitespace * web map -> online map * further information -> additional information * mmpk to class member * change button text * selecting view online map pans to selected area * formatting * update README.md * copyright statements * remove commented code * try to simplify a bit * simplify sample * don't hide graphics overlay on download * add snippet * update How to use the sample section * Update DownloadPreplannedMap.png * Slim up the use case * remove fxml comments * remove redirect from for new sample * ignore iml files * Create and save kml file (#406) * create folder structure, add readme, metadata.json * split to mvc and add fxml file * ui and button events * UI and sketch mode * add basic kml sketching * show and hide style window after sketch complete * UI toggling based on app state * refactoring * add applying style * add saving * add combobox item list cell * show preview in combobox * JavaDoc comments * comments and refactoring * UI improvements * copyright in list cell factory * Center labels in UI * update README.md * add screenshot * improve saving * tidy ui, wait for map to load to enable ui * formatting * formatting fxml * optmise imports * remove unused css classes * improve file saving * refactor sample and improve UI * refactoring and comments * simplify UI (#407) * simplify UI * reuse file chooser * update readme, metadata, and image * add comments * remove unused imports * Apply scheduled updates to preplanned map area (#392) * initial commit * fix launcher * add apache commons dependencies, fix runtime version * update runtime version * update gradle script * review changes * add README.metadata.json * remove gif * update screenshot * mmpk to class member * update README.metadata.json * add second check for updates after applying * refactor checking for update * title typo, widen UI * update runtime build * remove error message details, refactoring * remove unused imports * move downloading from build to settings.gradle * update README.metadata.json * remove unneeded sync direction code * remove unneeded imports * update runtime version * replace UI with alert * update screenshot and readme.md * fix alert typo * remove progress indicator, add javadocs * remove update checks and update automatically * update README.metadata.json * Revert "remove update checks and update automatically" This reverts commit b9ee5ec630a52d1fd986cd4c531b47a37d45e8b6. * Revert "update README.metadata.json" This reverts commit 74e6859785e0737b24833e7d98a24e8b8adbda8e. * minor cleanup * Rewording * Patch/apply scheduled updates (#412) * remove rollback on fail * create new instance when reopen mmpk * update comments * clean up imports * Data parent directory (#413) * Specify samples-data directory in File constructors * remove sout * add missing parent directory * add missing parent dir * Revert "add missing parent dir" This reverts commit 29c5abe24bce0f227a88225808558c3f5b593e89. * add missing parent dir * change canonicalPath to absolutePath * specify parent directory in File constructor * avoid explicit list of excluded directories * show progress indicator on initial load * Jon/remove unpack workflow2 (#422) * remove unpack workflow * add System.getProperty(data.dir), * Custom dictionary style [into dev] (#421) * add sample * add toggle box and use only overrides with effect * change initial viewpoint, rearrange code * update screenshot for new UI * update readme to reflect changes * update 'how to use' * simplify sample * var naming and comments * update screenshot, readme, comments * update README.md * update readme.md * changes from design review * review changes * remove extra comma * minor rewording * readme formatting * add data.dir property * Edit kml ground overlay [into dev] (#420) * initial commit * fix comments * refactoring * comments * fix URI * remove unused CSS, add screenshot * implement review corrections * update screenshot for new UI * UI changes, simplify applying opacity * setGroundOverlayOpacity() comment wording * update scene comment for clarity * review corrections * Change fields to local variables * add data.dir param * add panel-region class to vbox * update arcgis version to 100.7.0 * remove reference to toggling coordinates (#428) * Display subtype feature layer (#427) * set up sample * Update DisplaySubtypeFeatureLayerSample.java * update readme * refactor for fxml * self review * address review comments and update UI * fix typo * update method name * enable UI once sublayer has loaded * minor rewording * correct package * correct category case (#431) * Patch/iwa self signed (#430) * update api version * change api version to 100.5.0 * change version to 100.5.0 * start updates for java 11 * update java 11 parts * add dependencies for all platforms * Delete module-info.java * Update README Update README to alert Java 11 users to potential exceptions which may occur when running the project. Providing a suggested workaround from the OpenJavaFX docs. * Update README.md * add an integrated mesh layer sample * update arcgis version * use javafx plugin * remove jar task config * update arcgis version * move stage show * add point cloud data to sample data downloads * view point cloud data offline sample * Update build.gradle * change camera viewpoint * remove unused imports * update image * update api version * edit about the data and additional info sections * fix comment * Removed errant full stop * Open Mobile Scene Package (#318) * Gradle script includes path to download mspk file (further work required here) and implementation of sample in Java * Create README.md * Create OpenMobileScenePackage.png * Update typo in README * Updated gradle to point to correct data on AGOL * Update to sample code following review * Updates to ReadMe following review * Additional update to read me to include isDirectReadSupported.get * Updated from markdown to HTML * Remove id tags from HTML * Map reference scale (#319) * Create MapReferenceScaleSample.java * Set up MVC structure for sample * Set up basic map with MVC structure * Added label which updates scale of map as it changes * Set up means to change the map view to the selected reference scale * Set up check boxes for map layers * Update MapReferenceScaleController.java * Update MapReferenceScaleController.java * Allow string in combobox, split to return double to feed into map reference scale * Link checkbox with map layer to set reference scale * Method descriptions and remove unused imports * Fix indents * Create MapReferenceScale.png * Create README.md * Convert markdown to HTML * Addressed comments from review. ComboBox now double, vBoxes will load after map has loaded * Add a method to handle setting the reference scale when interacting with the combobox and the scale sync button. * Code updates following review removed unneeded label, added if loaded statement, and refactored map reference scale. Also updated Readme to account for behavior change. * move checkbox logic in with instanceof check * Update MapReferenceScaleController.java * Corrected title for sample * Merge master into dev (#322) * Camera controller US english update (#320) * Replace "aeroplane" with "plane" in README and code * Update image to show corrected spelling * Fix grammar * Updates to Tiled Layer to show support for .tkpx files (#321) * Updates to tiled layer, including .tpkx support * Update tile cache readme to include support .tpkx * Allow downloading of non zip sample data (#324) * Allow downloading of non zip sample data * point scene layer sample (#323) * point scene layer sample * Merge master into Dev (#329) * Camera controller US english update (#320) * Replace "aeroplane" with "plane" in README and code * Update image to show corrected spelling * Fix grammar * Updates to Tiled Layer to show support for .tkpx files (#321) * Updates to tiled layer, including .tpkx support * Update tile cache readme to include support .tpkx * Update slider to show values from 1-5 rather than 0-5 (#328) * remove online elevation data source (#327) * remove online elevation data source * remove unneeded ArcGISScene object * View content beneath terrain surface (#325) * Initiating sample with Scene URL * add done loading listener for changes * portal item entry for data * Add readme and image * Update ViewContentBeneathTerrainSurfaceSample.java * update build and refactor float code * Update ViewContentBeneathTerrainSurfaceSample.java * Add layer view state changed listene…
1 parent 4b36776 commit 7b6de95

File tree

12 files changed

+838
-0
lines changed

12 files changed

+838
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Edit features with feature-linked annotation
2+
3+
Edit feature attributes which are linked to annotation through an expression.
4+
5+
![Image of edit features with feature-linked annotation](EditFeaturesWithFeatureLinkedAnnotation.png)
6+
7+
## Use case
8+
9+
Annotation 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). Feature-linked annotation will update when a feature attribute referenced by the annotation expression is also updated. Additionally, the position of the annotation will transform to match any transformation to the linked feature's geometry.
10+
11+
## How to use the sample
12+
13+
Pan and zoom the map to see that the text on the map is annotation, not labels. Click one of the address points to update the house number (AD_ADDRESS) and street name (ST_STR_NAM). Once you have edited the feature attributes, click "Update" and then click again on the map to move the address point to a new location. You can also click one of the dashed parcel polylines and click another location to change its geometry and update its annotation (distance in feet). NOTE: Selection is only enabled for points and straight (single segment) polylines.
14+
The feature-linked annotation will update accordingly.
15+
16+
## How it works
17+
18+
1. Load the geodatabase. NOTE: Read/write geodatabases should normally come from a `GeodatabaseSyncTask`, but this has been omitted here. That functionality is covered in the sample *Generate geodatabase*.
19+
2. Create `FeatureLayer`s from `GeodatabaseFeatureTable`s found in the geodatabase with `Geodatabase.getGeodatabaseFeatureTable()`.
20+
3. Create `AnnotationLayer`s from `GeodatabaseFeatureTable`s found in the geodatabase with `Geodatabase.getGeodatabaseAnnotationTables()`.
21+
4. Add the `FeatureLayer`s and `AnnotationLayer`s to the map's operational layers.
22+
5. Use `MapView.setOnMouseClicked()` to handle clicks on the map to either select address points or parcel polyline features. NOTE: Selection is only enabled for points and straight (single segment) polylines.
23+
6. For the address points, a dialog opens 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.
24+
7. For the parcel lines, a second mouse click will change one of the polyline's vertices. Note that the dimension annotation updates according to the expression `Round(Length(Geometry($feature), 'feet'), 2)`.
25+
26+
Both expressions were defined by the data author in ArcGIS Pro using [the Arcade expression language](https://developers.arcgis.com/arcade/).
27+
28+
## Relevant API
29+
30+
* AnnotationLayer
31+
* Feature
32+
* FeatureLayer
33+
* Geodatabase
34+
35+
## About the data
36+
37+
This sample uses data derived from the [Loudoun GeoHub](https://geohub-loudoungis.opendata.arcgis.com/).
38+
39+
## Tags
40+
41+
annotation, attributes, features, feature-linked annotation, fields
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"category": "Editing",
3+
"description": "Edit feature attributes which are linked to annotation through an expression.",
4+
"ignore": false,
5+
"images": [
6+
"EditFeaturesWithFeatureLinkedAnnotation.png"
7+
],
8+
"keywords": [
9+
"annotation",
10+
"attributes",
11+
"feature-linked annotation",
12+
"features",
13+
"fields",
14+
"AnnotationLayer",
15+
"Feature",
16+
"FeatureLayer",
17+
"Geodatabase"
18+
],
19+
"redirect_from": [],
20+
"relevant_apis": [
21+
"AnnotationLayer",
22+
"Feature",
23+
"FeatureLayer",
24+
"Geodatabase"
25+
],
26+
"snippets": [
27+
"src/main/java/com.esri.samples.edit_features_with_feature_linked_annotation/EditAttributesDialog.java",
28+
"src/main/java/com.esri.samples.edit_features_with_feature_linked_annotation/EditFeaturesWithFeatureLinkedAnnotationSample.java",
29+
"src/main/resources/edit_features_with_feature_linked_annotation/edit_attributes_dialog.fxml"
30+
],
31+
"title": "Edit features with feature-linked annotation"
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
plugins {
2+
id 'application'
3+
id 'org.openjfx.javafxplugin' version '0.0.5'
4+
}
5+
6+
group = 'com.esri.samples'
7+
8+
ext {
9+
arcgisVersion = '100.9.0'
10+
}
11+
12+
javafx {
13+
version = "11.0.2"
14+
modules = [ 'javafx.controls', 'javafx.fxml' ]
15+
}
16+
17+
compileJava.options.encoding = 'UTF-8'
18+
19+
repositories {
20+
jcenter()
21+
maven {
22+
url 'https://esri.bintray.com/arcgis'
23+
}
24+
maven {
25+
url 'http://olympus.esri.com/artifactory/arcgisruntime-repo'
26+
}
27+
}
28+
29+
configurations {
30+
natives
31+
}
32+
33+
dependencies {
34+
compile "com.esri.arcgisruntime:arcgis-java:$arcgisVersion"
35+
natives "com.esri.arcgisruntime:arcgis-java-jnilibs:$arcgisVersion"
36+
natives "com.esri.arcgisruntime:arcgis-java-resources:$arcgisVersion"
37+
}
38+
39+
task copyNatives(type: Copy) {
40+
description = "Copies the arcgis native libraries into the project build directory for development."
41+
group = "build"
42+
configurations.natives.asFileTree.each {
43+
from(zipTree(it))
44+
}
45+
// store native libraries in a common location shared with other samples
46+
into "${System.properties.getProperty("user.home")}/.arcgis/$arcgisVersion"
47+
}
48+
49+
run {
50+
dependsOn copyNatives
51+
mainClassName = 'com.esri.samples.edit_features_with_feature_linked_annotation.EditFeaturesWithFeatureLinkedAnnotationLauncher'
52+
}
53+
54+
jar {
55+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
56+
manifest {
57+
attributes("Main-Class": "$mainClassName")
58+
}
59+
from {
60+
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
61+
}
62+
}
63+
64+
task productionZip(type: Zip) {
65+
group = 'distribution'
66+
from ("samples-data") {
67+
into "samples-data"
68+
}
69+
from copyNatives
70+
from jar.destinationDir
71+
into (project.name)
72+
baseName = project.name
73+
}
74+
75+
wrapper {
76+
gradleVersion = '6.5.1'
77+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
#!/usr/bin/env sh
2+
3+
##############################################################################
4+
##
5+
## Gradle start up script for UN*X
6+
##
7+
##############################################################################
8+
9+
# Attempt to set APP_HOME
10+
# Resolve links: $0 may be a link
11+
PRG="$0"
12+
# Need this for relative symlinks.
13+
while [ -h "$PRG" ] ; do
14+
ls=`ls -ld "$PRG"`
15+
link=`expr "$ls" : '.*-> \(.*\)$'`
16+
if expr "$link" : '/.*' > /dev/null; then
17+
PRG="$link"
18+
else
19+
PRG=`dirname "$PRG"`"/$link"
20+
fi
21+
done
22+
SAVED="`pwd`"
23+
cd "`dirname \"$PRG\"`/" >/dev/null
24+
APP_HOME="`pwd -P`"
25+
cd "$SAVED" >/dev/null
26+
27+
APP_NAME="Gradle"
28+
APP_BASE_NAME=`basename "$0"`
29+
30+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31+
DEFAULT_JVM_OPTS=""
32+
33+
# Use the maximum available, or set MAX_FD != -1 to use that value.
34+
MAX_FD="maximum"
35+
36+
warn () {
37+
echo "$*"
38+
}
39+
40+
die () {
41+
echo
42+
echo "$*"
43+
echo
44+
exit 1
45+
}
46+
47+
# OS specific support (must be 'true' or 'false').
48+
cygwin=false
49+
msys=false
50+
darwin=false
51+
nonstop=false
52+
case "`uname`" in
53+
CYGWIN* )
54+
cygwin=true
55+
;;
56+
Darwin* )
57+
darwin=true
58+
;;
59+
MINGW* )
60+
msys=true
61+
;;
62+
NONSTOP* )
63+
nonstop=true
64+
;;
65+
esac
66+
67+
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68+
69+
# Determine the Java command to use to start the JVM.
70+
if [ -n "$JAVA_HOME" ] ; then
71+
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72+
# IBM's JDK on AIX uses strange locations for the executables
73+
JAVACMD="$JAVA_HOME/jre/sh/java"
74+
else
75+
JAVACMD="$JAVA_HOME/bin/java"
76+
fi
77+
if [ ! -x "$JAVACMD" ] ; then
78+
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79+
80+
Please set the JAVA_HOME variable in your environment to match the
81+
location of your Java installation."
82+
fi
83+
else
84+
JAVACMD="java"
85+
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86+
87+
Please set the JAVA_HOME variable in your environment to match the
88+
location of your Java installation."
89+
fi
90+
91+
# Increase the maximum file descriptors if we can.
92+
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93+
MAX_FD_LIMIT=`ulimit -H -n`
94+
if [ $? -eq 0 ] ; then
95+
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96+
MAX_FD="$MAX_FD_LIMIT"
97+
fi
98+
ulimit -n $MAX_FD
99+
if [ $? -ne 0 ] ; then
100+
warn "Could not set maximum file descriptor limit: $MAX_FD"
101+
fi
102+
else
103+
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104+
fi
105+
fi
106+
107+
# For Darwin, add options to specify how the application appears in the dock
108+
if $darwin; then
109+
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110+
fi
111+
112+
# For Cygwin, switch paths to Windows format before running java
113+
if $cygwin ; then
114+
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115+
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116+
JAVACMD=`cygpath --unix "$JAVACMD"`
117+
118+
# We build the pattern for arguments to be converted via cygpath
119+
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120+
SEP=""
121+
for dir in $ROOTDIRSRAW ; do
122+
ROOTDIRS="$ROOTDIRS$SEP$dir"
123+
SEP="|"
124+
done
125+
OURCYGPATTERN="(^($ROOTDIRS))"
126+
# Add a user-defined pattern to the cygpath arguments
127+
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128+
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129+
fi
130+
# Now convert the arguments - kludge to limit ourselves to /bin/sh
131+
i=0
132+
for arg in "$@" ; do
133+
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134+
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135+
136+
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137+
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138+
else
139+
eval `echo args$i`="\"$arg\""
140+
fi
141+
i=$((i+1))
142+
done
143+
case $i in
144+
(0) set -- ;;
145+
(1) set -- "$args0" ;;
146+
(2) set -- "$args0" "$args1" ;;
147+
(3) set -- "$args0" "$args1" "$args2" ;;
148+
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149+
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150+
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151+
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152+
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153+
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154+
esac
155+
fi
156+
157+
# Escape application args
158+
save () {
159+
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160+
echo " "
161+
}
162+
APP_ARGS=$(save "$@")
163+
164+
# Collect all arguments for the java command, following the shell quoting and substitution rules
165+
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166+
167+
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168+
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169+
cd "$(dirname "$0")"
170+
fi
171+
172+
exec "$JAVACMD" "$@"

0 commit comments

Comments
 (0)