From f64858ea0fb3ce263ad2f2316041cd77c3771281 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Wed, 13 Mar 2019 00:19:40 +0000 Subject: [PATCH] Update line numbers on existing icons --- map.js | 1 + map.html | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/map.html b/map.html index 5992df6..2ec087e 100644 --- a/map.html +++ b/map.html @@ -26,6 +26,6 @@ <script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v5.3.0/build/ol.js" integrity="sha384-iQkGyyH4ioz3m+maM3s9MX1Oq67mACa4B9Z3ovUv3Sv37LJ96fx3WnZfLoiC3Wfl" crossorigin="anonymous"></script> <script tyle="text/javascript" src="lang_pl.js?v6" id="lang_script"></script> <script tyle="text/javascript" src="common.js?v6"></script> -<script tyle="text/javascript" src="map.js?v14"></script> +<script tyle="text/javascript" src="map.js?v15"></script> </body> </html> diff --git a/map.js b/map.js index 089a952..3e846d8 100644 --- a/map.js +++ b/map.js @@ -301,6 +301,7 @@ } else { vehicle_feature.setProperties(vehicle); vehicle_feature.getStyle().getImage().setRotation(Math.PI * parseFloat(vehicle.heading ? vehicle.heading : 0) / 180.0); + vehicle_feature.getStyle().getText().setText(vehicle.line); } } -- Gitblit v1.9.1