iD - OpenStreetMap的友好的JavaScript编辑器

基础知识

iD is a JavaScript OpenStreetMap editor.
It’s intentionally simple. It lets you do the most basic tasks while not breaking other people’s data.
It supports all popular modern desktop browsers: Chrome, Firefox, Safari, Opera, Edge, and IE11.
iD is not yet designed for mobile browsers, but this is something we hope to add!
Data is rendered with d3.js.

前提条件

Node.js version 4 or newer

安装

git clone https://github.com/openstreetmap/iD.git

cd iD

npm install cnpm --registry=https://registry.npm.taobao.org

make

npm run-script web  #打开web服务 端口号为8080 http://localhost:8080/

注意事项
1、如果提示
iD - OpenStreetMap的友好的JavaScript编辑器_第1张图片

**

就采用 npm install phantomjs cnpm –registry=https://registry.npm.taobao.org 安装相应模块

**

2、npm安装一定不要用-g(全局安装)如果采用(-g)参数的话会报错 Cannot find module ‘glob’

你可能感兴趣的:(web服务器,OSMGIS)