vue2-google-maps json, как отформатировать входные данные
лат, lon из db как десятичные, отправить в формате json
computed: mapState({
company: state => state.company.company
})
{{company.latitude}}
<gmap-map :center="{ lat: 50.0200271000, lng: 8.8775603000 }"
works but I cant get it working like that:
<gmap-map :center="{ lat: company.latitude, lng: company.longitude }"
<gmap-map :center="{ lat: 'company.latitude', lng: 'company.longitude' }"
How to do it right? Thanks for support.