Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSLogic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
VIPS
VIPSLogic
Commits
6cbec2e9
Commit
6cbec2e9
authored
4 months ago
by
Lene Wasskog
Browse files
Options
Downloads
Patches
Plain Diff
fix: Errors when drawing on map [VIPSUTV-946]
parent
7a1e13f7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/webapp/js/objectGISInfoMap.js
+6
-4
6 additions, 4 deletions
src/main/webapp/js/objectGISInfoMap.js
with
6 additions
and
4 deletions
src/main/webapp/js/objectGISInfoMap.js
+
6
−
4
View file @
6cbec2e9
...
@@ -204,6 +204,11 @@ var app = window.app;
...
@@ -204,6 +204,11 @@ var app = window.app;
// Transform the center coordinates from EPSG:4326 to EPSG:3857
// Transform the center coordinates from EPSG:4326 to EPSG:3857
const
centerPosition
=
ol
.
proj
.
fromLonLat
(
center
,
'
EPSG:3857
'
);
const
centerPosition
=
ol
.
proj
.
fromLonLat
(
center
,
'
EPSG:3857
'
);
view
=
new
ol
.
View
({
center
:
centerPosition
,
zoom
:
zoomLevel
})
// Creating the map
// Creating the map
GISInfoMap
=
new
ol
.
Map
({
GISInfoMap
=
new
ol
.
Map
({
target
:
olMapDivId
,
// Defined at the top of this file
target
:
olMapDivId
,
// Defined at the top of this file
...
@@ -216,10 +221,7 @@ var app = window.app;
...
@@ -216,10 +221,7 @@ var app = window.app;
]),
]),
layers
:
allLayers
,
layers
:
allLayers
,
renderer
:
'
canvas
'
,
renderer
:
'
canvas
'
,
view
:
new
ol
.
View
({
view
:
view
center
:
centerPosition
,
zoom
:
zoomLevel
})
});
});
// Marker overlay
// Marker overlay
...
...
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