Git Product home page Git Product logo

measurewidget's Introduction

MeasureWidget

Measure Widget for use with the ArcGIS Viewer for Flex

02/06/2015 - Compiled for FlexViewer 3.7

04/14/2014 - Compiled for FlexViewer 3.6

08/28/2013 - Fixed problem for calculating area in State Plane feet found by Josh White. The problem occured when the polygon was passed to the geometry service and the service was returning values in meters. Changes were made to the widget to be more explicit about the values returned.

08/16/2013 - Compiled for FlexViewer 3.4

05/24/2013 - Compiled for FlexViewer 3.3

01/07/2013 - Updated the download to include updates for the 3.0 version. Updated interface to display the measure form properly. Removed the cumulative total when drawing polyline is complete.

01/04/2013 - Compiled for FlexViewer 3.1. Fixed area calculation for spatial references other than WGS1984 and Web Mercator. Added functionality to allow for control of measurement text font, color and size.

11/05/2012 - added cumulative total to display at the end of a polyline being drawn as suggested by Andrew Edmonds. Also fixed code to properly round segment measurement lengths. The segment length measurements were previously truncated instead of being properly rounded.

9/10/2012 - added decimal places to the XML configuration to define how many decimal places are displayed on the measurement labels for each different unit of measure. Also added logic to only display a total measurement length when there is more than one segment in a polyline.

8/7/2012 - Added functionality to calculate measurements when basemap is using a spatial reference other than web mercator aux sphere. I have tested it with our state plane feet projection.

This widget is a modification of the FlexViewer Draw tool. Our planning staff at the City of Yakima wanted to have more interactive measurements than the draw tool provides. With the draw tool you have to complete the drawing of a line or polygon and a result will be returned from a geometry service. They needed to know the length of the vertex as they were drawing the line or polygon.

Requirements:

To install using the compiled version just copy the folder called Measure under the Widgets folder, and add this line to your config.xml

if your map units are in meters:

if your map units are in feet:

For the Source you need to copy the Measure folder to src/widgets

Finalize the install for Uncompiled version:

  • In Flex Builder on the left of the screen is the FlexNavigator tree, right click you Flex Sample Viewer project and go to properties
  • In the Properties dialog choose Flex Compiler in the left window.
  • Ensure your Flex SDK Version is 4.6
  • Check Require Flash Player Version under HTML Wrapper and enter 11.0
  • Now Flex Modules in the left window.
  • On the right hand side of the dialog will be an add buton click it
  • browse to src\widgets\Measure and add the MeasureWidget.mxml
  • click ok all the way out.
  • Change the MeasureWidget.xml the top item in the distanceunits tag is the default, which is feet. The default areaunits is square miles. Change the order to best suit your needs.

measurewidget's People

Contributors

tsellste avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.