When setting bounds: TypeError: t.isValid is not a function
See original GitHub issueWhen setting bounds it throws a type error
t.isValid is not a function
<template>
<div>
<v-map :bounds="bounds"></v-map>
</div>
</template>
<script>
export default {
name: 'LeafLet',
data () {
return {
bounds: [[47.262943, 6.030290], [55.093354, 14.909721]]
}
}
</script>
Actual Results
TypeError: t.isValid is not a function
at VueComponent.setBounds (vue2-leaflet.min.js?31d2:1)
at VueComponent.boundFn [as setBounds] (vue.esm.js?efeb:188)
at VueComponent.mounted (vue2-leaflet.min.js?31d2:1)
at callHook (vue.esm.js?efeb:2868)
at Object.insert (vue.esm.js?efeb:4045)
at invokeInsertHook (vue.esm.js?efeb:5806)
at Vue$3.patch [as __patch__] (vue.esm.js?efeb:6025)
at Vue$3.Vue._update (vue.esm.js?efeb:2613)
at Vue$3.updateComponent (vue.esm.js?efeb:2741)
at Watcher.get (vue.esm.js?efeb:3084)
Browsers Affected
- Chrome
Versions
- Leaflet: v1.2.0
- Vue: v2.5.2
- Vue2Leaflet: v0.0.57
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10
Top Results From Across the Web
javascript - Bounds are not valid error calling fitBounds
After calling geoJson(jsonData) I want the map to fit this border with fitBounds() but I get Uncaught Error: Bounds are not valid. ....
Read more >JavaScript: Uncaught TypeError: n is not a function
This error occurs if you try to execute a function that is not initialized or is not initialized correctly. This means that the...
Read more >TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >Uncaught (in promise) TypeError: t[Yn] is not a function
I am getting this error when trying to write the below-mentioned logic. <template> <div class="form-group"> <span class="icon"></span> ...
Read more >typeerror is not a function angular 6 - macellerialucio.it
0 but getting this error - TypeError: Object() is not a function at Module ... In an attempt to try to follow npm's...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mhsystem @psychosis448 Vue2Leaflet was not able to manage raw array as bounds but this issue should now be fixed in 0.0.58.
Let me know if it works for you.
Micka
Works fine now! Thx 😃