Skip to content
Snippets Groups Projects
Commit 588c4c6c authored by Timothee P's avatar Timothee P :sunflower:
Browse files

removes click on map and enable drag map

parent 3a900717
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ const map = { ...@@ -159,7 +159,7 @@ const map = {
dispatch("ADD_FEATURES"); dispatch("ADD_FEATURES");
// Remove multiple interactions with the map // Remove multiple interactions with the map
mapUtil.getMap().dragging.disable(); //mapUtil.getMap().dragging.disable();
mapUtil.getMap().doubleClickZoom.disable(); mapUtil.getMap().doubleClickZoom.disable();
mapUtil.getMap().scrollWheelZoom.disable(); mapUtil.getMap().scrollWheelZoom.disable();
......
...@@ -159,12 +159,7 @@ ...@@ -159,12 +159,7 @@
</div> </div>
<div class="seven wide column"> <div class="seven wide column">
<a <div id="map"></div>
id="feature-list-link"
href="{% url 'geocontrib:feature_list' slug=feature.project.slug %}"
>
<div id="map"></div>
</a>
</div> </div>
</div> </div>
...@@ -398,7 +393,7 @@ export default { ...@@ -398,7 +393,7 @@ export default {
}, },
], ],
mock_linked_features: [ mock_linked_features: [
{ /* {
relation_type: "Doublon", relation_type: "Doublon",
feature_to: { feature_to: {
title: "Éolienne offshore", title: "Éolienne offshore",
...@@ -408,48 +403,21 @@ export default { ...@@ -408,48 +403,21 @@ export default {
title: "Éolienne", title: "Éolienne",
}, },
}, },
}, }, */
], ],
attachments: [ attachments: [
// TODO : Récupérer depuis l'api // TODO : Récupérer depuis l'api
{ /* {
attachment_file: { attachment_file: {
url: "http://localhost:8000/media/user_1/albinoscom.jpg", url: "http://localhost:8000/media/user_1/albinoscom.jpg",
}, },
extension: "jpg", extension: "jpg",
title: "albinos", title: "albinos",
info: "Drôle de bête", info: "Drôle de bête",
}, }, */
], ],
// TODO : Récupérer depuis l'api // TODO : Récupérer depuis l'api
events: [ events: [],
{
event_type: "create",
object_type: "feature",
created_on: new Date().toDateString(),
display_user: "Babar",
},
{
event_type: "create",
object_type: "comment",
created_on: new Date().toDateString(),
display_user: "Babar",
related_comment: {
attachments: [
{
title: "Albinos",
url: "http://localhost:8000/media/user_1/albinoscom.jpg",
},
],
},
},
{
event_type: "update",
object_type: "feature",
created_on: new Date().toDateString(),
display_user: "Babar",
},
],
comment_form: { comment_form: {
attachment_file: { attachment_file: {
errors: null, errors: null,
...@@ -483,7 +451,8 @@ export default { ...@@ -483,7 +451,8 @@ export default {
}, },
linked_features: function () { linked_features: function () {
// todo: vérifier avec données réels si ça fonctionne correctement // todo: vérifier avec données réels si ça fonctionne correctement
return this.mock_linked_features.filter((el) => el.feature_to); //return this.mock_linked_features.filter((el) => el.feature_to);
return [];
}, },
}, },
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div v-if="tempMessage" class="ui positive message"> <div v-if="tempMessage" class="ui positive message">
<!-- <i class="close icon"></i> --> <!-- <i class="close icon"></i> -->
<!-- <div class="header">You are eligible for a reward</div> --> <!-- <div class="header">You are eligible for a reward</div> -->
<p><i class="check icon"></i> {{ tempMessage }}</p> <p><i class="check icon"></i> {{ tempMessage }}</p>
</div> </div>
</div> </div>
...@@ -230,12 +230,7 @@ ...@@ -230,12 +230,7 @@
</div> </div>
</div> </div>
<div class="seven wide column"> <div class="seven wide column">
<router-link <div id="map"></div>
:to="{ name: 'liste-signalements', params: { slug: project.slug } }"
class="item"
>
<div id="map"></div>
</router-link>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment