November 2017
Beginner to intermediate
398 pages
8h 42m
English
In the maps store, let's create a setBounds action that will be dispatched when the maps is idle after being panned or zoomed. This action will dispatch the fetchPosts from the posts module:
setBounds ({ dispatch }, value) { dispatch('posts/fetchPosts', { mapBounds: value, }, { root: true, }) },
<googlemaps-map ...
Read now
Unlock full access