Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: (0 , o.default) is not a function #1

Open
nosehair opened this issue Oct 17, 2019 · 1 comment
Open

TypeError: (0 , o.default) is not a function #1

nosehair opened this issue Oct 17, 2019 · 1 comment

Comments

@nosehair
Copy link

nosehair commented Oct 17, 2019

Hello, hoping you can help out here please. Getting there error above, not sure if its me doing something wrong.

Importing like so:

import { LMap, LTileLayer, LWMSTileLayer, LGeoJson } from 'vue2-leaflet'
import VEditableCircleMarker from 'vue2-leaflet-editablecirclemarker'

Loading components:

components: {
    LMap, LTileLayer, LGeoJson,
    'l-wms-tile-layer': LWMSTileLayer,
    VEditableCircleMarker
}

Rendering component (inside l-map):

<v-editable-circle-marker v-for="(point, $index) in pointsWithRadius " :key="$index" :latLng="point.latLng" :rad="point.radius" :options="point.options" />`

and here is my pointsWithRadius:

    this.pointsWithRadius = [
        {
            latLng: L.latLng(-26, 28),
            radius: 1000,
            options: {}
        }
    ]
@nosehair
Copy link
Author

Apologies, this is acually for the vue2 plugin vue2-leaflet-editablecirclemarker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant