Giter Site home page Giter Site logo

webclient-vue's Introduction

MapGIS WebClient for Vue

npm version apache licensed

目录

一、开始

1、主页

MapGIS Client for JavaScript

2、特性

  1. 组件式风格 - Vue组件式开发
  2. 面向对象编程 - 地图元素拥有 Vue 的生命周期,将原生地图事件封装成 Vue 的事件

二、深入了解

1、代码结构

 |-- WebClient-Vue
    |-- cesium                    -- Cesium的代码结构
        |--src                    -- Cesium源代码
        |--docs                   -- Vuepress文档说明
    |-- mapboxgl                  -- Mapboxgl 代码结构
        |--src                    -- MapboxGL源代码
        |--docs                   -- Vuepress文档说明

2、编译

如果您需修改源码,可自行编译打包生成MapBoxGL、Cesium的地图引擎库、API文档。

以MapboxGL为例,首先进入对应的目录下

  1. 进入目录

    cd /path/to/mapboxgl
  2. 安装依赖

    npm install
    # 或者
    yarn
  3. 地图组件编译

    npm run build           #编译 将源代码编译成Vue的地图组件
  4. API文档生成

    npm run docs:serve      #服务实时预览-生成API参考文档
    npm run docs:build      #编译打包预览-生成API参考文档

3、本地调试

以MapboxGL为例,首先进入对应的目录下,假设用户存在2个工程:1.WebClient-Vue 2.项目工程 MyProject

  1. 进入对应的目录

    cd /path/to/WebClient-Vue/mapboxgl
  2. 执行本地链接操作

    npm link

    得到对应的结果

  3. 进入自己的项目工程

    cd /path/to/MyProject
  4. 指定连接的WebClient-Vue库

    npm link @mapgis/webclient-vue-mapboxgl

    得到对应的结果

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.