Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institut für Informatik
dbis
dbis-isochrone
isochrone-web
Commits
dc1a6886
Unverified
Commit
dc1a6886
authored
Oct 01, 2017
by
User expired
Browse files
added logging of mean isochrones to console
parent
e80d0c3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
dc1a6886
Upcoming version:
-----------------
-
added logging of mean isochrones to console (Nikolaus Krismer)
-
calling algorithms clear method explicitly to free memory earlier (Nikolaus Krismer)
-
added support for multiple remote repositories (as fallbacks) (Nikolaus Krismer)
-
improved request/response trace logging (using separate threads and introduced a config value) (Nikolaus Krismer)
...
...
src/main/webapp/js/isochrone/meanCalculator.js
View file @
dc1a6886
...
...
@@ -457,10 +457,14 @@ define(['jquery', 'leaflet', 'evispa-timo-jsclipper', 'util/loggingUtils', 'isoc
});
// add layers to map (skewness first, so on initial add the mean isochrone border is visible)
geoJsonBorderline
=
null
;
geoJsonFrequency
=
null
;
geoJsonSkewness
=
null
;
layers
=
{};
if
(
intersectedIsochrones
.
skewness
)
{
geoJsonSkewness
=
toGeoJsonCollection
(
intersectedIsochrones
.
skewness
);
layers
.
skewness
=
{
layer
:
L
.
geoJson
(
toGeoJsonCollection
(
intersectedIsochrones
.
skewness
)
),
layer
:
L
.
geoJson
(),
name
:
LanguageUtils
.
get
(
'
layer.skewnessIsochrones
'
)
};
layers
.
skewness
.
layer
.
eachLayer
(
function
(
layer
)
{
...
...
@@ -472,8 +476,10 @@ define(['jquery', 'leaflet', 'evispa-timo-jsclipper', 'util/loggingUtils', 'isoc
bounds
=
layers
.
skewness
.
layer
.
getBounds
();
}
if
(
intersectedIsochrones
.
frequency
)
{
geoJsonBorderline
=
intersectedIsochrones
.
frequency
[
Math
.
floor
(
intersectedIsochrones
.
frequency
.
length
/
2
)];
geoJsonFrequency
=
toGeoJsonCollection
(
intersectedIsochrones
.
frequency
);
layers
.
frequency
=
{
layer
:
L
.
geoJson
(
toG
eoJson
Collection
(
intersectedIsochrones
.
f
requency
)
)
,
layer
:
L
.
geoJson
(
g
eoJson
F
requency
),
name
:
LanguageUtils
.
get
(
'
layer.meanIsochrones
'
)
};
layers
.
frequency
.
layer
.
eachLayer
(
function
(
layer
)
{
...
...
@@ -484,7 +490,7 @@ define(['jquery', 'leaflet', 'evispa-timo-jsclipper', 'util/loggingUtils', 'isoc
isoMap
.
addLayer
(
layers
.
frequency
.
layer
,
layers
.
frequency
.
name
,
true
);
layers
.
frequencyBorderline
=
{
layer
:
L
.
geoJson
(
intersectedIsochrones
.
frequency
[
Math
.
floor
(
intersectedIsochrones
.
frequency
.
length
/
2
)]
,
{
layer
:
L
.
geoJson
(
geoJsonBorderline
,
{
style
:
GeoJsonStyle
.
getMeanBorderStyle
()
}),
name
:
LanguageUtils
.
get
(
'
layer.meanIsochrone50
'
)
...
...
@@ -496,6 +502,10 @@ define(['jquery', 'leaflet', 'evispa-timo-jsclipper', 'util/loggingUtils', 'isoc
}
}
console
.
debug
(
'
Added skewness isochrone:
'
,
geoJsonSkewness
);
console
.
debug
(
'
Added frequency isochrone:
'
,
geoJsonFrequency
);
console
.
debug
(
'
Added mean isochrone (borderline):
'
,
geoJsonBorderline
);
isoMap
.
getMap
().
fitBounds
(
bounds
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment