Closed ethanclevenger91 closed 8 years ago
Your code is correct, except mapObject is not available at that point because the Map instance hasn't called new google.maps.Map(...).
You need to wait on map.mapCreated
promise.
vm.$refs.map.mapCreated.then((gmapObject) => ...)
That worked, thanks a lot. Is that promise documented?
I wasn't one minute ago...
I'm not too sure about whether it should be part of the API, but I'll just document it anyway since we're not at v1.0.0 yet.
Hey, trying to get the map object to render some directions and some other stuff that either isn't in this library or isn't documented. The documentation says to use
vm.mapObject
, but what isvm
referring to in that context?Right now I've got a component with a
<map v-ref:map></map>
as a child component, butthis.$refs.map.mapObject
is undefined: