Skip to content

Instantly share code, notes, and snippets.

@claytantor
Created April 15, 2012 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claytantor/2393775 to your computer and use it in GitHub Desktop.
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
//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