ghettovoice / vuelayers

Web map Vue components with the power of OpenLayers
https://vuelayers.github.io/
MIT License
682 stars 230 forks source link

loading features #480

Closed npltr62 closed 2 years ago

npltr62 commented 2 years ago

hello when i switched to v0.12 this code below not working. `

                <vl-style>
                    <vl-style-fill color="#cacee6"></vl-style-fill>
                    <vl-style-stroke :width=0.5 color="grey"></vl-style-stroke>
                </vl-style>
            </vl-layer-vector>
    data() {
        return {
     dept_url: null
      }
      },
    mounted () {
            this.isLoading = true;
            setTimeout(() => {
                this.dept_url = process.env.VUE_APP_GEOSERV + "geoserver/fd/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=fdp49%3Adept_49&outputFormat=application%2Fjson"
                this.isLoading = false;
            }, 2000);
    },

` in latest version, a url validator was added cf doc. Should i use loader property?

ghettovoice commented 2 years ago

Hello @npltr62 , I have forgot to add source refresh on url, loader prop changes. I'll fix this ASAP. Thanks for report!