kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
Fixed the NOT bugs as reported by a eslint
rodzic
19d22940db
commit
b43b31e656
|
@ -85,11 +85,10 @@ function makeParkFeature(park, active)
|
|||
}
|
||||
if (parkObj.feature == null)
|
||||
{
|
||||
parkObj.feature = iconFeature(ol.proj.fromLonLat([0,0]), g_gtParkIconActive, 1);
|
||||
parkObj.feature = iconFeature(ol.proj.fromLonLat([0, 0]), g_gtParkIconActive, 1);
|
||||
}
|
||||
feature.key = park;
|
||||
feature.size = 1;
|
||||
|
||||
}
|
||||
}
|
||||
catch (e)
|
||||
|
@ -128,7 +127,7 @@ function getPotaParks()
|
|||
if (g_mapSettings.offlineMode == false && g_potaEnabled == 1)
|
||||
{
|
||||
getBuffer(
|
||||
"https://storage.googleapis.com/gt_app/pota.json?cb="+Date.now(),
|
||||
"https://storage.googleapis.com/gt_app/pota.json?cb=" + Date.now(),
|
||||
processPotaParks,
|
||||
null,
|
||||
"https",
|
||||
|
@ -142,8 +141,10 @@ function getPotaParks()
|
|||
function uniqueArrayFromArray(input)
|
||||
{
|
||||
let unique = [];
|
||||
input.forEach((c) => {
|
||||
if (!unique.includes(c)) {
|
||||
input.forEach((c) =>
|
||||
{
|
||||
if (!unique.includes(c))
|
||||
{
|
||||
unique.push(c);
|
||||
}
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue