Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

arcgis-map-viewer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arcgis-map-viewer

A package to display street-level maps using ESRI ArcGIS API

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

ArcGIS Map Viewer

A package to display street-level maps using ESRI ArcGIS API. This package allows you to display maps, search for addresses, and display coordinates.

Installation

npm install arcgis-map-viewer

Usage

Basic Usage

import ArcGISMapView from 'arcgis-map-viewer';

// Create a map in a div with id "mapDiv"
const mapViewer = new ArcGISMapView('mapDiv');

// Set view by address
await mapViewer.setViewByAddress('1600 Amphitheatre Parkway, Mountain View, CA');

// Set view by coordinates
await mapViewer.setViewByCoordinates(37.4224082, -122.0856086);

// Clean up
mapViewer.destroy();

With API Key

You need an ArcGIS API key for most production uses. Get a free key from https://developers.arcgis.com/.

import ArcGISMapView from 'arcgis-map-viewer';

const mapViewer = new ArcGISMapView('mapDiv', {
    apiKey: 'YOUR_API_KEY',
    zoom: 15
});

await mapViewer.setViewByAddress('1600 Amphitheatre Parkway, Mountain View, CA');

You can also use coordinates:

await mapViewer.setViewByCoordinates(37.4224082, -122.0856086);

Options

You can pass options to customize the map:

const mapViewer = new ArcGISMapView('mapDiv', {
    zoom: 15 // Default zoom level
});

Features

  • Street-level maps using ArcGIS
  • Address search functionality
  • Coordinate display
  • Customizable zoom levels
  • Marker placement

Requirements

  • Node.js
  • ESRI ArcGIS API (included as dependency)

License

MIT

Keywords

arcgis

FAQs

Package last updated on 04 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts