From c5940e28ce389e3c738291a1eaae3cf4872b0808 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 20 Apr 2014 16:19:04 +1200 Subject: Use CDN for OpenLayers (fix #150) --- src/org/traccar/web/client/view/MarkerIconFactory.java | 2 +- 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 bc850bdd..46965d57 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 255b09e6..f5de9fea 100644 --- a/war/traccar.html +++ b/war/traccar.html @@ -6,7 +6,7 @@ - + -- cgit v1.2.3