Controls

The ALK Maps controls extend the Leaflet Control. Controls can be added to the map by calling the Leaflet map object addControl method.

//L.ALKMaps.setApiKey("YourAPIKey");
var baseLayer = L.ALKMaps.Layer.baseMap({region: "NA", dataset: "Current", style: "default"});
var map = L.map("map", {
  layers: [baseLayer],
  center: [51.505, -0.09],
  zoom: 3
});
var singleSearchControl = L.ALKMaps.Control.singleSearch({
  position: 'topleft',
  // Other parameters
});
map.addControl(singleSearchControl);

SingleSearch Control

The L.ALKMaps.Control.SingleSearch control provides a single box for all search types. The user does not need to manually specify how the query should be broken down. For a more detailed explanation on the SingleSearch control please visit the SingleSearch Control page.