Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
4f396db5
Commit
4f396db5
authored
2 years ago
by
xaralis
Browse files
Options
Downloads
Patches
Plain Diff
feat(maps_utils): preload map collection images
parent
4caf90d5
No related branches found
No related tags found
2 merge requests
!536
Release
,
!533
Preload map collection images upfront, more content options for map collection, allow aligning button, new generic headline block
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
maps_utils/static/maps_utils/geo-feature-collection.js
+14
-1
14 additions, 1 deletion
maps_utils/static/maps_utils/geo-feature-collection.js
with
14 additions
and
1 deletion
maps_utils/static/maps_utils/geo-feature-collection.js
+
14
−
1
View file @
4f396db5
...
...
@@ -236,6 +236,14 @@ const GeoFeatureCollection = Vue.component("GeoFeatureCollection", {
});
}
// Preload images
annotatedFeatures
.
forEach
((
feature
)
=>
{
if
(
feature
.
properties
.
image
)
{
const
i
=
new
Image
();
i
.
src
=
feature
.
properties
.
image
;
}
});
// Draw the map.
this
.
initMap
({
type
:
"
FeatureCollection
"
,
...
...
@@ -651,7 +659,12 @@ const GeoFeatureCollection = Vue.component("GeoFeatureCollection", {
{{ currentItem.description }}
</div>
<a v-if="currentItem.link" :href="currentItem.link" class="mt-4 text-sm btn btn--grey-125 btn--hoveractive"><div class="btn__body">Zjistit více</div></a>
<a v-if="currentItem.link" :href="currentItem.link" class="mt-4 text-sm btn btn--black btn--icon">
<div class="btn__body-wrap">
<div class="btn__body">Zjistit více</div>
<div class="btn__icon"><i class="ico--chevron-right"></i></div>
</div>
</a>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment