Created
April 15, 2012 16:32
-
-
Save claytantor/2393709 to your computer and use it in GitHub Desktop.
The most simple use of the welocally places multi widget
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 pace display | |
var placeSelected = new WELOCALLY_PlaceWidget({}).init(); | |
//config the widget, use the places array | |
var cfg = { | |
id:'multi_trip_1', | |
zoom: 16, | |
imagePath: 'images/marker_all_base.png', | |
observers:[placeSelected], | |
places: places | |
}; | |
//instantiate it | |
var placesMulti = | |
new WELOCALLY_PlacesMultiWidget(cfg).init(); | |
//set the place viewer wehen 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