From 1c0616f0578a246beedbdbaf49a617b46f1e9380 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 03 Feb 2019 23:17:35 +0000
Subject: [PATCH] Increase IconImageCache max size to 512

---
 map.js   |    2 ++
 map.html |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/map.html b/map.html
index 7bff2d4..49e0a5b 100644
--- a/map.html
+++ b/map.html
@@ -18,6 +18,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?v3" id="lang_script"></script>
 <script tyle="text/javascript" src="common.js?v5"></script>
-<script tyle="text/javascript" src="map.js?v8"></script>
+<script tyle="text/javascript" src="map.js?v9"></script>
 </body>
 </html>
diff --git a/map.js b/map.js
index 8959003..3705044 100644
--- a/map.js
+++ b/map.js
@@ -783,6 +783,8 @@
 		}),
 	});
 	
+	ol.style.IconImageCache.shared.setSize(512);
+	
 	map = new ol.Map({
 		target: 'map',
 		layers: [

--
Gitblit v1.9.1