From 56c396b939ece1927fca536dc2379ebd66c7f1ef Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 26 Feb 2013 20:58:47 +1300 Subject: Change track line style (fix #17) --- src/org/traccar/web/client/view/MapView.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/org') diff --git a/src/org/traccar/web/client/view/MapView.java b/src/org/traccar/web/client/view/MapView.java index 3568d920..db51cd36 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(); -- cgit v1.2.3