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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ngx-arcgis

v0.0.8

Published

Angular bindings for [`@arcgis/core`](https://developers.arcgis.com/javascript/latest/).

Readme

NgxArcgis

Angular bindings for @arcgis/core.

Install

npm install ngx-arcgis @arcgis/core

Quick start

// app.config.ts
import { provideArcgis } from 'ngx-arcgis';

providers: [
  provideArcgis()
]

// or 

providers: [
  provideArcgis({
    apiKey: 'YOUR_ARCGIS_API_KEY',
    props: { zoom: 12 }
  })
]

// or 

providers: [
  provideArcgis({
    apiKey: 'YOUR_ARCGIS_API_KEY',
    maps: [
      { 
        id: 'default', 
        props: { zoom: 12 } 
      }, 
      { 
        id: 'secondary', 
        props: { zoom: 8, center: [-118.2437, 34.0522] }
      }
    ]
  })
]
// app.component.ts
import { NgxArcgisMapComponent } from 'ngx-arcgis';

@Component({
  imports: [NgxArcgisMapComponent],
  template: `<ngx-arcgis-map />`
})
export class AppComponent {}

That's it — <ngx-arcgis-map /> renders the map registered under MAP_ID ('default' unless you change it), you need a parent that has height and width to show up.

Reading the map

import { injectMapRef } from 'ngx-arcgis';

private map = injectMapRef();
mapView = this.map.mapView; // MapView instance

Multiple maps

Declare them all in provideArcgis, then reach the extra ones from a nested component that provides its own MAP_ID:

provideArcgis({
  apiKey: 'YOUR_ARCGIS_API_KEY',
  maps: [
    { id: 'default', props: { zoom: 12 } },
    { id: 'secondary', props: { zoom: 8, center: [-118.2437, 34.0522] } }
  ]
})
import { MAP_ID, NgxArcgisMapComponent, injectMapRef } from 'ngx-arcgis';

@Component({
  imports: [NgxArcgisMapComponent],
  providers: [{ provide: MAP_ID, useValue: 'secondary' }],
  template: `<ngx-arcgis-map style="display: block; height: 400px;"></ngx-arcgis-map>`
})
export class SecondaryMapComponent {
  private map = injectMapRef();
  mapView = this.map.mapView; // the 'secondary' MapView
}

Everything inside SecondaryMapComponent — the <ngx-arcgis-map>, injectMapRef() — resolves 'secondary'. Everywhere else keeps resolving 'default'.

API

| | | | --- | --- | | provideArcgis({ apiKey?, props? }) | Register a single map (id 'default'). | | provideArcgis({ apiKey?, maps: [...] }) | Register several maps, each with its own id. | | <ngx-arcgis-map> | Renders the map for the current MAP_ID. | | injectMapRef() | Returns { id, mapView } for the current MAP_ID. Call from an injection context. | | MAP_ID | Injection token. Override it in a nested provider to target a different map. | | ArcgisStore | Advanced: getMapView(id), isMapReady(id), createMap({ id, props }), mapReady signal. |