Skip to content
Snippets Groups Projects
Feature_edit.vue 33.4 KiB
Newer Older

    getLinkedFeatures() {
      featureAPI
        .getFeatureLinks(this.$route.params.slug_signal)
        .then((data) => this.addExistingLinkedFormset(data));
    },
Timothee P's avatar
Timothee P committed
    this.$store.commit(
      "feature_type/SET_CURRENT_FEATURE_TYPE_SLUG",
      this.$route.params.slug_type_signal
    );
      this.getFeatureAttachments();
    this.$store
      .dispatch("GET_PROJECT_INFO", this.$route.params.slug)
      .then((data) => {
        console.log(data);
DESPRES Damien's avatar
DESPRES Damien committed
        this.initForm();
        this.initMap();
        this.onFeatureTypeLoaded();
        this.initExtraForms(this.feature);
DESPRES Damien's avatar
DESPRES Damien committed

        setTimeout(
          function () {
            mapUtil.addGeocoders(this.$store.state.configuration);

  destroyed() {
    //* be sure that previous Formset have been cleared for creation
    this.$store.commit("feature/CLEAR_ATTACHMENT_FORM");
    this.$store.commit("feature/CLEAR_LINKED_FORM");
  },
  height: 70vh;
  width: 100%;
#get-geom-from-image-file {
  margin-bottom: 5px;
}
  max-width: 400px;
}
@media only screen and (max-width: 767px) {
  #map {
    height: 80vh;
  }
}
/* // ! missing style in semantic.min.css, je ne comprends pas comment... */
.ui.right.floated.button {
  float: right;
  margin-right: 0;
  margin-left: 0.25em;
}
/* // ! margin écrasé par class last-child first-child, pas normal ... */
.ui.segment {
  margin: 1rem 0 !important;
}
/* override to display buttons under the dimmer of modal */
.leaflet-top,
.leaflet-bottom {
  z-index: 800;
}