arcgis-js-api-devtools
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Custom ArcGIS API 4 for JavaScript object formatting for Chrome DevTools.

Chrome DevTools provides an option to take control over how objects are formatted in DevTools. More info: https://docs.google.com/document/d/1FTascZXT9cxfetuPRT2eXPQKXui4nWFivUnS_335T3U/preview?pref=2&pli=1

These formatters display public properties from objects produced by the ArcGIS API 4 for JavaScript.

Example of an esri/Map default console formatting:
esri/Map default console formatting

Example of an esri/Map custom console formatting:
esri/Map custom console formatting

Example of an esri/symbols/SimpleFillSymbol custom console formatting:
esri/symbols/SimpleFillSymbol custom console formatting

Usage

Enable custom formatters in Chrome Devtools

Open the Chrome DevTools settings page and check the option "Enable custom formatters"

DevTools settings

Import and install the devtools formatters

Require the appropriate module and invoke install() to enable the formatter.

require({
  packages: [
    { name: "arcgis-devtools", location: "https://cdn.jsdelivr.net/gh/ycabon/arcgis-js-api-devtools@1.0/dist" }
  ]
}, [
  "arcgis-devtools",
 
  "esri/Map"
], function(
  arcgisDevtools,
  Map
) {
  arcgisDevtools.install();
 
  var map = new Map({
    basemap: "dark-gray",
    ground: "world-elevation"
  });
 
  console.log(map);
});

Package Sidebar

Install

npm i arcgis-js-api-devtools

Weekly Downloads

4

Version

2.0.1

License

Apache-2.0

Unpacked Size

20.4 kB

Total Files

6

Last publish

Collaborators

  • ycabon