sjc-leaflet-map

Default Leaflet map for San Juan County WA

Usage no npm install needed!

<script type="module">
  import sjcLeafletMap from 'https://cdn.skypack.dev/sjc-leaflet-map';
</script>

README

sjc-leaflet-map

c Default Leaflet map for San Juan County WA

API

sjc-leaflet/map

San Juan County Leaflet Map

Parameters

  • id (string | HTMLElement) HTML element or id of HTML element to attach map
  • opts object Leaflet map options
    • opts.center [array] starting center of map (optional, default [48.5,-123.0])
    • opts.zoom [number] starting zoom level of map (optional, default 10)

Examples

var map = SjcMap('map')