Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
GéoContrib
Géocontrib Frontend
Commits
112e6a5a
Commit
112e6a5a
authored
3 years ago
by
Timothee P
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into redmine-issues/12721
parents
64b50c32
2b43c0a7
No related branches found
No related tags found
2 merge requests
!295
Version 3.0.0
,
!237
REDMINE_ISSUE-12721
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/assets/icons/fa-icons.js
+1
-0
1 addition, 0 deletions
src/assets/icons/fa-icons.js
src/assets/js/map-util.js
+10
-4
10 additions, 4 deletions
src/assets/js/map-util.js
src/views/feature_type/Feature_type_symbology.vue
+10
-1
10 additions, 1 deletion
src/views/feature_type/Feature_type_symbology.vue
with
21 additions
and
5 deletions
src/assets/icons/fa-icons.js
+
1
−
0
View file @
112e6a5a
const
faIcons
=
[
const
faIcons
=
[
'
circle
'
,
'
address-book
'
,
'
address-book
'
,
'
address-card
'
,
'
address-card
'
,
'
adjust
'
,
'
adjust
'
,
...
...
This diff is collapsed.
Click to expand it.
src/assets/js/map-util.js
+
10
−
4
View file @
112e6a5a
...
@@ -394,7 +394,10 @@ const mapUtil = {
...
@@ -394,7 +394,10 @@ const mapUtil = {
if
(
color
==
undefined
){
if
(
color
==
undefined
){
color
=
featureType
.
color
;
color
=
featureType
.
color
;
}
}
const
colorValue
=
color
.
value
?
color
.
value
:
color
;
const
colorValue
=
color
.
value
&&
color
.
value
.
length
?
color
.
value
:
typeof
color
===
'
string
'
&&
color
.
length
?
color
:
'
#000000
'
;
if
(
geomJSON
.
type
===
'
Point
'
)
{
if
(
geomJSON
.
type
===
'
Point
'
)
{
if
(
if
(
customFieldOption
&&
customFieldOption
&&
...
@@ -403,7 +406,10 @@ const mapUtil = {
...
@@ -403,7 +406,10 @@ const mapUtil = {
featureType
.
colors_style
.
value
.
icons
&&
featureType
.
colors_style
.
value
.
icons
&&
!!
Object
.
keys
(
featureType
.
colors_style
.
value
.
icons
).
length
!!
Object
.
keys
(
featureType
.
colors_style
.
value
.
icons
).
length
)
{
)
{
if
(
featureType
.
colors_style
.
value
.
icons
[
customFieldOption
])
{
if
(
featureType
.
colors_style
.
value
.
icons
[
customFieldOption
]
&&
featureType
.
colors_style
.
value
.
icons
[
customFieldOption
]
!==
'
circle
'
)
{
const
iconHTML
=
`
const
iconHTML
=
`
<i
<i
class="fas fa-
${
featureType
.
colors_style
.
value
.
icons
[
customFieldOption
]}
fa-lg"
class="fas fa-
${
featureType
.
colors_style
.
value
.
icons
[
customFieldOption
]}
fa-lg"
...
@@ -424,7 +430,7 @@ const mapUtil = {
...
@@ -424,7 +430,7 @@ const mapUtil = {
.
addTo
(
featureGroup
);
.
addTo
(
featureGroup
);
}
else
{
}
else
{
L
.
circleMarker
(
geomJSON
.
coordinates
,
{
L
.
circleMarker
(
geomJSON
.
coordinates
,
{
color
:
color
,
color
:
color
Value
,
radius
:
4
,
radius
:
4
,
fillOpacity
:
0.5
,
fillOpacity
:
0.5
,
weight
:
3
,
weight
:
3
,
...
@@ -433,7 +439,7 @@ const mapUtil = {
...
@@ -433,7 +439,7 @@ const mapUtil = {
.
addTo
(
featureGroup
);
.
addTo
(
featureGroup
);
}
}
}
else
{
}
else
{
if
(
featureType
.
icon
)
{
if
(
featureType
.
icon
&&
featureType
.
icon
!==
'
circle
'
)
{
const
iconHTML
=
`
const
iconHTML
=
`
<i
<i
class="fas fa-
${
featureType
.
icon
}
fa-lg"
class="fas fa-
${
featureType
.
icon
}
fa-lg"
...
...
This diff is collapsed.
Click to expand it.
src/views/feature_type/Feature_type_symbology.vue
+
10
−
1
View file @
112e6a5a
...
@@ -247,7 +247,16 @@ export default {
...
@@ -247,7 +247,16 @@ export default {
this
.
GET_PROJECT_FEATURE_TYPES
(
this
.
$route
.
params
.
slug
)
this
.
GET_PROJECT_FEATURE_TYPES
(
this
.
$route
.
params
.
slug
)
.
then
(()
=>
{
.
then
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
success
=
'
La modification de la symbologie a été prise en compte.
'
;
this
.
success
=
'
La modification de la symbologie a été prise en compte. Vous allez être redirigé vers la page d
\'
acceuil du projet.
'
;
setTimeout
(()
=>
{
this
.
$router
.
push
({
name
:
'
project_detail
'
,
params
:
{
slug
:
this
.
$store
.
state
.
project_slug
,
},
});
},
1500
);
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
console
.
error
(
err
);
console
.
error
(
err
);
...
...
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