GithubHelp home page GithubHelp logo

react-amap-plugin-trajectory's Introduction

Trajectory Plugin for react-amap

说明

初次接触reactjs,插件写的半吊子不伦不类,没有发布npm。此处只为给初次使用地图媛类一个引导"如何在reactjs中使用 高德地图的 AMapUI".

参数配置

Map上要配置属性 useAMapUI
Trajectory 配置visible 和routeData

轨迹路线

let routeData = [{
      name: '轨迹0',
      path: [
        [118.765364, 31.975531],
        [118.765771, 31.975604],
        [118.766083, 31.975604],
        [118.766533, 31.975658],
        [118.766533, 31.975658],
        [118.768057, 31.975822],
        [118.771544, 31.976095],
        [118.773389, 31.976286],
        [118.774408, 31.975868],
        [118.774591, 31.974521],
        [118.774966, 31.972983],
      ],
      desc:"鼠标停留在这,tip提示"
    }

使用:

<Map plugins={['ToolBar']}  zoom={5} amapkey="xxxxxx" center={this.mapCenter} resizeEnable={true} useAMapUI={true}>
 <Trajectory visible={true} routeData={routeData}/>
   <Marker position ={this.mapCenter}/>
</Map>

react-amap-plugin-trajectory's People

Watchers

James Cloos avatar

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.