diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-04-20 16:19:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-04-20 16:19:04 +1200 |
commit | c5940e28ce389e3c738291a1eaae3cf4872b0808 (patch) | |
tree | cfe1a68508a4c53f88b53545f42133165742271c | |
parent | 4416a24a37b5b50c6a5503f2ab9fd15941c24dfc (diff) | |
download | etbsa-traccar-web-c5940e28ce389e3c738291a1eaae3cf4872b0808.tar.gz etbsa-traccar-web-c5940e28ce389e3c738291a1eaae3cf4872b0808.tar.bz2 etbsa-traccar-web-c5940e28ce389e3c738291a1eaae3cf4872b0808.zip |
Use CDN for OpenLayers (fix #150)
-rw-r--r-- | src/org/traccar/web/client/view/MarkerIconFactory.java | 2 | ||||
-rw-r--r-- | war/traccar.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/web/client/view/MarkerIconFactory.java b/src/org/traccar/web/client/view/MarkerIconFactory.java index bc850bd..46965d5 100644 --- a/src/org/traccar/web/client/view/MarkerIconFactory.java +++ b/src/org/traccar/web/client/view/MarkerIconFactory.java @@ -24,7 +24,7 @@ class MarkerIconFactory { private static final Size iconSize = new Size(21, 25); private static final Pixel iconOffset = new Pixel(-10.5f, -25.0f); - private static final String iconUrl = "http://www.openlayers.org/api/img/"; + private static final String iconUrl = "http://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/img/"; private static final String iconRed = iconUrl + "marker.png"; private static final String iconBlue = iconUrl + "marker-blue.png"; private static final String iconGreen = iconUrl + "marker-green.png"; diff --git a/war/traccar.html b/war/traccar.html index 255b09e..f5de9fe 100644 --- a/war/traccar.html +++ b/war/traccar.html @@ -6,7 +6,7 @@ <link rel="stylesheet" type="text/css" href="traccar/reset.css" /> - <script src="http://www.openlayers.org/api/OpenLayers.js"></script> + <script src="http://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js"></script> <script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script> <script src="http://maps.google.com/maps/api/js?v=3&sensor=false"></script> <script type="text/javascript" src="traccar/traccar.nocache.js"></script> |