Using the Marker Controller and Searchbar together with POI Views

This example shows how you can use the marker controller and searchbar together to easily display search results with POI views.

To use the components in this example, you will have to include JQuery, wrld.css as shown in the code sample below.

    <script src=""></script>
    <link href="" rel="stylesheet" />

    <link href="" rel="stylesheet"/>
    <script src=""></script>
    <script src=""></script>
<script src=""></script>

  <div style="position: relative">
    <div id="widget-container" class="wrld-widget-container"></div>
    <div id="map" style="height: 400px"></div>
      var map ="map", "your_api_key_here", {
        center: [37.79505, -122.40815],
        zoom: 15

      var searchbarConfig = {
        apiKey: "your_api_key_here",
        outdoorSearchMenuItems: [
          {name: "Around Me", searchTag: "", iconKey: "aroundme"},
          {name: "Tourism", searchTag: "tourist_info", iconKey: "tourist_info"}
        locationJumps: [
          {name: "San Francisco", latLng: [37.7952, -122.4028]}
      var searchbar = new WrldSearchbar("widget-container", map, searchbarConfig);
      var markerController = new WrldMarkerController(map, {
        searchbar: searchbar,
        poiViewsEnabled: true

      searchbar.on("searchresultselect", goToResult);

      function goToResult(event) {
        map.setView(event.result.location.latLng, 15);