diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-26 20:58:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-26 20:58:47 +1300 |
commit | 56c396b939ece1927fca536dc2379ebd66c7f1ef (patch) | |
tree | 8acea7581feca4a10cbdeb7c7c05aacabf42ca1b /src/org/traccar/web/client/view | |
parent | a0193f2b96bc41de02d7a2e07c13e829643d17f5 (diff) | |
download | etbsa-traccar-web-56c396b939ece1927fca536dc2379ebd66c7f1ef.tar.gz etbsa-traccar-web-56c396b939ece1927fca536dc2379ebd66c7f1ef.tar.bz2 etbsa-traccar-web-56c396b939ece1927fca536dc2379ebd66c7f1ef.zip |
Change track line style (fix #17)
Diffstat (limited to 'src/org/traccar/web/client/view')
-rw-r--r-- | src/org/traccar/web/client/view/MapView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/web/client/view/MapView.java b/src/org/traccar/web/client/view/MapView.java index 3568d92..db51cd3 100644 --- a/src/org/traccar/web/client/view/MapView.java +++ b/src/org/traccar/web/client/view/MapView.java @@ -22,6 +22,7 @@ import org.gwtopenmaps.openlayers.client.Map; import org.gwtopenmaps.openlayers.client.MapOptions; import org.gwtopenmaps.openlayers.client.MapWidget; import org.gwtopenmaps.openlayers.client.Projection; +import org.gwtopenmaps.openlayers.client.Style; import org.gwtopenmaps.openlayers.client.control.LayerSwitcher; import org.gwtopenmaps.openlayers.client.control.ScaleLine; import org.gwtopenmaps.openlayers.client.geometry.Point; @@ -128,7 +129,13 @@ public class MapView { mapWidget = new MapWidget("100%", "100%", defaultMapOptions); map = mapWidget.getMap(); + Style style = new Style(); + style.setStrokeColor("blue"); + style.setStrokeWidth(3); + style.setFillOpacity(1); + VectorOptions vectorOptions = new VectorOptions(); + vectorOptions.setStyle(style); vectorLayer = new Vector("Vector", vectorOptions); MarkersOptions markersOptions = new MarkersOptions(); |