Skip to content

esridc/hub-annotations-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hub Annotations Component

This is a web component for embedding Hub annotations into websites.

Using this component

Script tag

  • Publish to NPM
  • Put a script tag similar to this <script src='https://unpkg.com/hub-annotations-component@0.0.1/dist/annotationscomponent.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install hub-annotations-component --save
  • Put a script tag similar to this <script src='node_modules/hub-annotations-component/dist/annotationscomponent.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install hub-annotations-component --save
  • Add an import to the npm packages import hub-annotations-component;
  • Then you can use the element anywhere in your template, JSX, html etc

Develop this components

  • Clone the repository
  • cd hub-annotations-component
  • npm install
  • npm run start

Built With Stencil