Skip to content

Instantly share code, notes, and snippets.

@claytantor
Created April 15, 2012 16:32
Show Gist options
  • Save claytantor/2393709 to your computer and use it in GitHub Desktop.
Save claytantor/2393709 to your computer and use it in GitHub Desktop.
The most simple use of the welocally places multi widget
//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