We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the official documentation of poly line author described following code as a template to use polylines:
<template> <GMapPolyline :path="path" :editable="true" ref="polyline" /> </template> <script> export default { name: 'App', data() { return { center: {lat: 1.38, lng: 103.8}, path: [ {lat: 1.33, lng: 103.75}, {lat: 1.43, lng: 103.85}, ], } }, } </script>
This code throws following error, so it doesn't wodk:
uncaught typeerror: this.$mappromise.then is not a function polyline
Reading documentation further, I decided that I should wrap GMapPolyLine inside GMapMap, so the correct code should look like this:
<template> <GMapMap :center="center" :zoom="4" style="width: 100vw; height: 100vh" > <GMapPolyline :path="path" :editable="true" ref="polyline" /> </GMapMap> </template> <script> export default { name: 'App', data() { return { center: {lat: 1.38, lng: 103.8}, path: [ {lat: 1.33, lng: 103.75}, {lat: 1.43, lng: 103.85}, ], } }, } </script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the official documentation of poly line author described following code as a template to use polylines:
This code throws following error, so it doesn't wodk:
Reading documentation further, I decided that I should wrap GMapPolyLine inside GMapMap, so the correct code should look like this:
The text was updated successfully, but these errors were encountered: