npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

demand-web-components

v1.19.5

Published

HERE Mobility Web Components

Downloads

15

Readme

aBuilt With Stencil

Demand-Web-Components

A component that displays Here Maps, using Stencil.

Getting Started

npm i demand-web-components

Setup after installation depends on which framework you are using. See link below: https://stenciljs.com/docs/overview

Testing

In browser:

In one terminal run npm start In another run npm run storybook Then in the browser open localhost:3000

Unit tests

npm run test

Sample Usage (embedding)

Get an api key, app id and app code from: https://developer.here.com/products/maps

<hm-map-component class="map"
                  api_key="MY_API_KEY_NY_HERE_MAPS_API"
                  app_id="MY_APP_ID_NY_HERE_MAPS_API"
                  app_code="MY_APP_CODE_NY_HERE_MAPS_API"
></hm-map-component>

API:

Inputs

api_key:

Type string, Mandatory. This is used for the HERE MAPS API for JavaScript.

app_id:

Type string, Mandatory. This is used for the HERE Location Services.

app_code:

Type string, Mandatory. This is used for the HERE Location Services.

markers:

Type Marker, Optional. See below for more details.

routes:

Type Route, Optional. See below for more details.

zoom:

Type 'PICKUP' | 'DESTINATION' | 'CONFIRMED_PICKUP' | 'ALL', Optional.

zoom_level:

Type number, between 1 and 20. Optional.

locale:

Type 'de-DE' | 'en-GB' | 'en-US' | 'es-ES' | 'fi-FI' | 'fr-FR' | 'it-IT' | 'nl-NL' | 'pl-PL' | 'pt-BR' | 'pt-PT' | 'ru-RU' | 'tr-TR' | 'zh-CN', Optional.

map_style:

Type object, Optional. See below for more details.

center:

Type Point ({lat: number, lng: number}), Optional. See below for more details.

Types:

Marker

type:

Type 'PICKUP' | 'DESTINATION', Mandatory.

location:

Type Location, Mandatory. See below for more details.

tooltip_text:

Type string, Optional. Will show a bubble info.

tooltip_icon:

Type 'PICKUP' | 'DESTINATION' | 'TAXI' | 'HIGH_SPEED_TRAIN' | 'INTERCITY_TRAIN' | 'INTER_REGIONAL_TRAIN' | 'CITY_TRAIN' | 'BUS' | 'FERRY' | 'SUBWAY' | 'LIGHT_RAIL' | 'PRIVATE_BUS' | 'INCLINED' | 'AERIAL' | 'BUS_RAPID' | 'MONORAIL' | 'WALK' | 'BIKE', Optional.

Route

type:

Type 'TAXI' | 'HIGH_SPEED_TRAIN' | 'INTERCITY_TRAIN' | 'INTER_REGIONAL_TRAIN' | 'CITY_TRAIN' | 'BUS' | 'FERRY' | 'SUBWAY' | 'LIGHT_RAIL' | 'PRIVATE_BUS' | 'INCLINED' | 'AERIAL' | 'BUS_RAPID' | 'MONORAIL' | 'WALK' | 'BIKE', Optional.

legs:

Type RouteLeg[], Mandatory. The list of legs for the route.

faded:

Type boolean, Optional. If true, will draw the route in gray, and hide the bubble info.

click_callback:

Type: function, Optional. Will be called on route line click.

RouteLeg:

start:

Type Location, Mandatory. See below for more details.

end:

Type Location, Mandatory. See below for more details.

tooltip_text:

Type string, Optional. Will show a bubble info.

tooltip_position:

Type 'START' | 'MIDDLE' | 'END', Optional.

color:

Type string, Optional. Will display the leg polyline in this color.

Location

point:

Type Point ({lat: number, lng: number}), Mandatory.

free_text:

Type string, Optional. Will display the address as a text.

Polygon

vertices:

Type Point [] ([{lat: number, lng: number}]), Mandatory.

style:

Type object, Optional. Will define polygon look-and-feel. If not provided default values will be used.