All Projects → nickcam → DirectionalLineSymbol

nickcam / DirectionalLineSymbol

Licence: MIT license
ArcGIS javascript custom Line Symbol. Subclass of SimpleLineSymbol to display direction markers on line symbols.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to DirectionalLineSymbol

AnimatedEnvironmentLayer
A custom arcgis js api layer to display GRIB data formatted as json as animated particles on a canvas
Stars: ✭ 41 (-2.38%)
Mutual labels:  arcgis, esri-jsapi
GISPython
Additional tools for administering and automating different ArcPy and ArcGIS Server geoprocessing operations. Package is intended for use with ArcGIS 10.2.1 and later (has been tested on ArcGIS 10.2.2, 10.3.1, 10.6.1).
Stars: ✭ 20 (-52.38%)
Mutual labels:  arcgis
Arcgis Cookbook
Chef cookbooks for ArcGIS
Stars: ✭ 227 (+440.48%)
Mutual labels:  arcgis
AuGeo
AuGeo - Augmented Reality for ArcGIS
Stars: ✭ 36 (-14.29%)
Mutual labels:  arcgis
Arcgis Rest Js
compact, modular JavaScript wrappers for the ArcGIS REST API
Stars: ✭ 231 (+450%)
Mutual labels:  arcgis
Course ArcGIS Python
Course on ArcGIS automation through scripting with Python
Stars: ✭ 27 (-35.71%)
Mutual labels:  arcgis
Minbus
a minbus system [ArcGIS API]
Stars: ✭ 177 (+321.43%)
Mutual labels:  arcgis
Hajk
A modern, full-featured OpenLayers based map viewer and editor
Stars: ✭ 65 (+54.76%)
Mutual labels:  arcgis
esri-polymer
A set of Esri web components built using the Polymer library
Stars: ✭ 14 (-66.67%)
Mutual labels:  arcgis
utility-network-swagger
Utility Network REST API expressed in Swagger / Open API Specification, code samples
Stars: ✭ 27 (-35.71%)
Mutual labels:  arcgis
portal-admin-examples
Example python scripts for working with the ArcGIS REST API.
Stars: ✭ 17 (-59.52%)
Mutual labels:  arcgis
R-Bridge-Tutorial-Notebooks
Jupyter notebooks demonstrating setup and use of the R-ArcGIS bridge. The repo includes datasets required to run the Jupyter notebooks.
Stars: ✭ 56 (+33.33%)
Mutual labels:  arcgis
WhiteboxTools-ArcGIS
ArcGIS Python Toolbox for WhiteboxTools
Stars: ✭ 190 (+352.38%)
Mutual labels:  arcgis
Cedar
JavaScript Charts for ArcGIS
Stars: ✭ 230 (+447.62%)
Mutual labels:  arcgis
awesome-arcgis
La mayor recopilación (Wiki) de recursos sobre ArcGIS que encontrarás (organizado por productos, conceptos, ...)
Stars: ✭ 21 (-50%)
Mutual labels:  arcgis
Angular Esri Map
A collection of directives to help you use Esri maps and services in your Angular applications
Stars: ✭ 213 (+407.14%)
Mutual labels:  arcgis
geocoder
Geocoder is a Typescript library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding manipulations
Stars: ✭ 28 (-33.33%)
Mutual labels:  arcgis
arcgis-android-moremap
基于 ArcGIS for Android 加载高德/百度/腾讯等切片底图
Stars: ✭ 38 (-9.52%)
Mutual labels:  arcgis
archook
Searches the system for arcgis and makes arcpy available to python (regardless of pythonpath/system path/registry settings)
Stars: ✭ 76 (+80.95%)
Mutual labels:  arcgis
OptimizeRasters
OptimizeRasters is a set of tools for converting raster data to optimized Tiled TIF or MRF files, moving data to cloud storage, and creating Raster Proxies.
Stars: ✭ 105 (+150%)
Mutual labels:  arcgis

DirectionalLineSymbol

ArcGIS javascript custom Line Symbol.

DirectionalLineSymbol inherits from SimpleLineSymbol. It displays directional symbols on the line that indicate the direction of the line. I needed some arrow symobls on my lines (in a feature or graphics layer) to indicate direction but I just wanted to be able to do it in one place.

Features

  • Adds directional graphics to the map along a SimpleLineSymbol starting from start of the line to the end.
  • Can be used for Polyline line symbols or as the outline of a Polygon SimpleFillSymbol.
  • A few pre-configured symbols to use, or pass in a custom path 'd' attribute string to display any symbol you want.
  • Set the amount of pixels in between each direction symbol to space them appropriately depending on the data.
  • Just for fun animate the direction symbols appearing along the line.
  • All logic contained in the DirectionalLineSymbol class, no need to create seperate renderers or add attributes to graphics (or use text symbols).

Note

Normallly symbol classes are really just used to define how a graphic will appear, but to actually draw the directional symbols along the line DirectionalLineSymbol breaks that paradigm. I wanted something super simple to call from anywhere - ie: without having to create a symbol class and a renderer and possibly other stuff, so just wanted to do -

var s = new DirectionalLineSymbol(options);

...and all sorted. But to do that had to add graphic specific functions and event handlers for graphics layers and the map (only once though) within DirectionalLineSymobl. So I can understand why this isn't in the actual api, but wanted a solution anyway.

Code is commented and the options explained in the constructor. How to use is in index.html which is the same as this example page: http://directionallinesymbol.azurewebsites.net/

Add to, edit or find bugs, thanks!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].