Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPS Observation App DEPRECATED
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
VIPS
VIPS Observation App DEPRECATED
Commits
67c5959e
Commit
67c5959e
authored
4 years ago
by
Bhabesh Bhabani Mukhopadhyay
Browse files
Options
Downloads
Patches
Plain Diff
#VOAPP-13 : POI type list created and bind with POI
parent
695ddc9e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/CommonUtil.vue
+2
-0
2 additions, 0 deletions
src/components/CommonUtil.vue
src/components/MapPOI.vue
+21
-6
21 additions, 6 deletions
src/components/MapPOI.vue
with
23 additions
and
6 deletions
src/components/CommonUtil.vue
+
2
−
0
View file @
67c5959e
...
@@ -18,6 +18,8 @@ export default {
...
@@ -18,6 +18,8 @@ export default {
CONST_STORAGE_IMAGE_LIST
:
'
store-image-list
'
,
CONST_STORAGE_IMAGE_LIST
:
'
store-image-list
'
,
CONST_STORAGE_POI_LIST
:
'
store-poi-list
'
,
CONST_STORAGE_POI_LIST
:
'
store-poi-list
'
,
CONST_POI_TYPES
:
'
[{"point_of_interest_type_id":0,"default_name":"General"},{"point_of_interest_type_id":4,"default_name":"Region"},{"point_of_interest_type_id":1,"default_name":"Weather Station"},{"point_of_interest_type_id":2,"default_name":"Farm"},{"point_of_interest_type_id":3,"default_name":"Field"}]
'
,
CONST_IMAGE_WIDTH
:
100
,
CONST_IMAGE_WIDTH
:
100
,
CONST_IMAGE_HEIGHT
:
100
,
CONST_IMAGE_HEIGHT
:
100
,
CONST_IMAGE_CANVAS_WIDTH
:
100
,
CONST_IMAGE_CANVAS_WIDTH
:
100
,
...
...
This diff is collapsed.
Click to expand it.
src/components/MapPOI.vue
+
21
−
6
View file @
67c5959e
...
@@ -2,7 +2,15 @@
...
@@ -2,7 +2,15 @@
<div>
<div>
<router-link
id=
'btnBack'
:to=
"
{name:'PlacesList', params: {}}" class="btn btn-success">Back
</router-link>
<router-link
id=
'btnBack'
:to=
"
{name:'PlacesList', params: {}}" class="btn btn-success">Back
</router-link>
<div
id=
'map-poi'
style=
"border: 2px solid green;height: 400px;"
></div>
<div
id=
'map-poi'
style=
"border: 2px solid green;height: 400px;"
></div>
<div
id=
"poiMarker"
>
<div
id=
'divPoiData'
>
<input
id=
'poiName'
ref=
'poiName'
v-model=
"poi.name"
/>
<br>
<select
v-model=
"poi.pointOfInterestTypeId"
>
<option
v-for=
"poiType in poiTypes"
v-bind:key=
"poiType.point_of_interest_type_id"
:value=
'poiType.point_of_interest_type_id'
>
{{
poiType
.
default_name
}}
</option>
</select>
</div>
<div
id=
"poiMarker"
style=
"display:none"
>
<img
src=
"@/assets/map_icon.png"
>
<img
src=
"@/assets/map_icon.png"
>
</div>
</div>
</div>
</div>
...
@@ -42,8 +50,9 @@ export default{
...
@@ -42,8 +50,9 @@ export default{
props
:
[
'
pointOfInterestId
'
],
props
:
[
'
pointOfInterestId
'
],
data
()
{
data
()
{
return
{
return
{
poi
:
{},
poi
:
{},
mapZoom
:
0
mapZoom
:
0
,
poiTypes
:
[],
}
}
},
},
methods
:
{
methods
:
{
...
@@ -69,7 +78,7 @@ export default{
...
@@ -69,7 +78,7 @@ export default{
let
pointMarker
=
this
.
myOverLay
(
coordinate
);
let
pointMarker
=
this
.
myOverLay
(
coordinate
);
let
pointMarkerCoord
=
this
.
myOverLayCoord
(
longitude
,
latitude
);
let
pointMarkerCoord
=
this
.
myOverLayCoord
(
longitude
,
latitude
);
//let mapInteractions = this.myInteractions(this.mapInteractions);
//let mapInteractions = this.myInteractions(this.mapInteractions);
console
.
log
(
vectorSource
);
fetch
(
urlMap
)
fetch
(
urlMap
)
.
then
(
function
(
response
){
.
then
(
function
(
response
){
return
response
.
text
();
return
response
.
text
();
...
@@ -224,7 +233,8 @@ console.log(vectorSource);
...
@@ -224,7 +233,8 @@ console.log(vectorSource);
appDiv
.
style
.
paddingLeft
=
"
0
"
;
appDiv
.
style
.
paddingLeft
=
"
0
"
;
mapDiv
.
style
.
height
=
(
screen
.
height
-
navDiv
.
offsetHeight
)
+
"
px
"
;
mapDiv
.
style
.
height
=
(
screen
.
height
-
navDiv
.
offsetHeight
)
+
"
px
"
;
this
.
mapZoom
=
CommonUtil
.
CONST_GPS_OBSERVATION_ZOOM
;
this
.
mapZoom
=
CommonUtil
.
CONST_GPS_OBSERVATION_ZOOM
;
this
.
poiTypes
=
JSON
.
parse
(
CommonUtil
.
CONST_POI_TYPES
);
this
.
getPointOfInterest
(
this
.
$route
.
params
.
pointOfInterestId
);
this
.
getPointOfInterest
(
this
.
$route
.
params
.
pointOfInterestId
);
//this.initMap();
//this.initMap();
this
.
mapInit
();
this
.
mapInit
();
...
@@ -247,6 +257,11 @@ console.log(vectorSource);
...
@@ -247,6 +257,11 @@ console.log(vectorSource);
#btnBack
{
#btnBack
{
position
:
fixed
;
position
:
fixed
;
z-index
:
2000
;
z-index
:
1000
;
}
#divPoiData
{
position
:
fixed
;
z-index
:
1100
;
bottom
:
0
;
}
}
</
style
>
</
style
>
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