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

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -