Skip to content

unvt/itoma

Repository files navigation

itoma

ArcGIS REST API from style.yml of Charites

social preview image

About the social preview image

the social preview image is Brush Rest (Fude-oki) in the Shape of a Narcissus Spray and Blossoming Plum Branch.

Install

$ npm install -g @unvt/itoma

How to use

$ itoma serve [path/to/style.yml]

More information on options are available with the --help option.

$ itoma --help
Usage: itoma [options] [command]

Options:
  -v, --version             output the version number
  -h, --help                display help for command

Commands:
  serve [options] <source>  serve your map locally
  help [command]            display help for command

Map Preview

Map Previews by Mapbox GL JS, MapLibre GL JS, and ArcGIS API for Javascript can be seen from http://localhost:8080 (or any specified port).

ArcGIS REST API response

Once "itoma serve" starts, we can see the ArcGIS REST API responses from http://localhost:8080/arcgis/rest/services/{any_name}/VectorTileServer.

It is important to understand that ArcGIS Online now supports https protocol only (not http). When you use unvt/itoma to preview your tile with ArcGIS online, please use https protocol for localhost.

Development

$ git clone https://github.com/unvt/itoma
$ cd itoma
$ npm install

Then you can install:

$ npm install -g .

License

MIT