aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-26 20:58:47 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-26 20:58:47 +1300
commit56c396b939ece1927fca536dc2379ebd66c7f1ef (patch)
tree8acea7581feca4a10cbdeb7c7c05aacabf42ca1b /src/org/traccar/web
parenta0193f2b96bc41de02d7a2e07c13e829643d17f5 (diff)
downloadtrackermap-web-56c396b939ece1927fca536dc2379ebd66c7f1ef.tar.gz
trackermap-web-56c396b939ece1927fca536dc2379ebd66c7f1ef.tar.bz2
trackermap-web-56c396b939ece1927fca536dc2379ebd66c7f1ef.zip
Change track line style (fix #17)
Diffstat (limited to 'src/org/traccar/web')
-rw-r--r--src/org/traccar/web/client/view/MapView.java7
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 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();