 
   NMIS.settings =
     openLayersRoot: "/static/openlayers/"
+    leafletRoot: "/static/leaflet/"
     pathToMapIcons: "/static/images"
 
   NMIS.url_root = do ->


  NMIS.loadOpenLayers = (url)->
    url = "#{NMIS.settings.openLayersRoot}OpenLayers.js" if !url and NMIS.settings.openLayersRoot
    $.ajax url: url, dataType: "script", cache: false

  NMIS.loadGmapsAndOpenlayers = do ->

      $elem = $(eselector).css width: 680, height: 476, position: 'absolute'
      launcher = NMIS.loadOpenLayers()
      launcher.done ()->
        OpenLayers._getScriptLocation = ()-> NMIS.settings.openLayersRoot
        $(".map-loading-message").hide()
        elem = $elem.get(0)
        mapId = "nmis-ol-country-map"
