google maps - Backbone GoogleMaps MarkerCollectionView collection and pagination -


i'm building page holds 2 different views. first view list of locations , information , second view google map shows markers of locations displayed on first view.

the problem @ moment since collection can big , page holds pagination , displays 20 locations on each page, second view shows whole locations markers.

i show in second view google map markers depending on page i'm on.

how can approach problem?

you should have view number 2(the map), listen change in collection shown in view number 1(the list).

in view 2, when collection of places/markers change, need call setmap, clear markers, call collection.foreach, , place marker on map.


Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -