Skip to content

Sirtrack/PointTrackWithArrows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

PointTrackWithArrows

Create an OpenLayers PointTrack with direction (arrows).

Usage


        var l = new OpenLayers.Layer.PointTrack( "PointTrack", {
          styleMap : new OpenLayers.Style({
              graphicName : "track",
              strokeColor : "red",
              fillColor : "red",
              pointRadius : 2,
              fillOpacity : 0.5,
              strokeWidth : 2,
              graphicName: "arrow",
              rotation : "${angle}"
          });
        });

Background

I’ve merged OpenLayer’s PointTrack code from these sources (thank you for all the hard work!):

http://gaganb.wordpress.com/2010/09/30/draw-line-direction-on-openlayers-feature/
http://geometricnet.sourceforge.net/examples/directions.html
http://geometricnet.sourceforge.net/examples/Direction.js

About

Create an OpenLayers PointTrack with direction (arrows)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published