A web-components based Leaflet & Esri Leaflet map app that supports adding Esri Feature layers, geo-json layers, custom markers, tooltips and legend.
This package used webpack
for build tasks. Two different build methods are available - Debug and production. Both these build tasks Publish to the Dist Folder.
Debug build task builds the library to an un-minified version with helpful debug messages. The production build task minifies the output file and removes all log statements.
npm i
Debug Build task
npm run build
Production Build task
npm run build:prod
Current release is 1.0.0
Coming Soon
Basic mockup is found here. More detailed mockup coming soon.
-
Map App (
<map-app>
)lat
,lng
andzoom
attributes set the default center latitude, center longitude and zoom levels for the mapbasemap
attribute sets the default basemap layer for the map. Currently supported basemaps:Topographic
,Aerial with labels
,Aerials
,Streets
legend
sets the legend display position
-
Feature Layer(
<map-feature-layer>
)url
attribute points to the URL for a GIS feature layer of a ESRI GIS servicedata-hover
attribute sets the Feature layter property to be displayed on hover over a markername
attribute sets the name to be displayed on the legend
-
GeoJSON Layer(
<map-geojson-layer>
)- Similar attributes to Feature layer.
url
attribute points to the URL for a resource that returns a valid GeoJSON.
- Similar attributes to Feature layer.
-
Info Template (
<map-info-template>
)- This block style template sets the content for popups/info box on click. Uses
{PROPERTY}
syntax for templating.
- This block style template sets the content for popups/info box on click. Uses
-
Map Marker (
<map-marker>
)- This tag is to define custom markers for points on the map
iconUrl
attribute is used for the icon ImageiconSize
attribute is a csv that sets the marker icon display size (width, height
)targetProperty
andtargetValue
sets conditional display of certain marker icons.targetProperty
refers to the GeoJSON/ Feature Layer property to target for the conditional check for thetargetValue
value. Currently only equal to conditional check is supported. No other conditional checks are supported at this time.
More detailed documentation coming soon
Currently this repository is not set up to accept contributions.
Currently this repository is not set up to receive and/or review Issues and bugs.