Created
April 15, 2012 16:42
-
-
Save claytantor/2393775 to your computer and use it in GitHub Desktop.
Simple use of the multi place widget to create a map with many places
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//used for the place display when selected | |
var placeSelected = new WELOCALLY_PlaceWidget({}).init(); | |
//config the widget, use the places array | |
var cfg = { | |
id:'multi_map_1', | |
imagePath: 'images/marker_all_base.png', | |
observers:[placeSelected], | |
places: places | |
}; | |
//instantiate it | |
var placesMulti = | |
new WELOCALLY_PlacesMultiWidget(cfg).init(); | |
//set the place viewer when selected | |
placeSelected.setWrapper( | |
cfg, jQuery(placesMulti._selectedSection)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment