All Projects → sakitam-fdd → maptalks.plot

sakitam-fdd / maptalks.plot

Licence: MIT license
🎨 | maptalks plot

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to maptalks.plot

Graphical Debugging
GraphicalDebugging extension for Visual Studio
Stars: ✭ 88 (+363.16%)
Mutual labels:  geometry, plot
Polyhedra Viewer
Explore the relationships between convex regular-faced polyhedra.
Stars: ✭ 253 (+1231.58%)
Mutual labels:  geometry
Threejs Sandbox
Set of experiments and extensions to THREE.js.
Stars: ✭ 163 (+757.89%)
Mutual labels:  geometry
Ifc.js
Ifc viewer for client applications.
Stars: ✭ 211 (+1010.53%)
Mutual labels:  geometry
Matgeom
Matlab geometry toolbox for 2D/3D geometric computing
Stars: ✭ 168 (+784.21%)
Mutual labels:  geometry
Scikit Geometry
Scientific Python Geometric Algorithms Library
Stars: ✭ 220 (+1057.89%)
Mutual labels:  geometry
Doctrine Postgis
Spatial and Geographic Data with PostGIS and Doctrine.
Stars: ✭ 161 (+747.37%)
Mutual labels:  geometry
Goodreads visualization
A Jupyter notebook where I play with my Goodreads data
Stars: ✭ 51 (+168.42%)
Mutual labels:  plot
Mathnet Spatial
Math.NET Spatial
Stars: ✭ 246 (+1194.74%)
Mutual labels:  geometry
Trimesh2
C++ library and set of utilities for input, output, and basic manipulation of 3D triangle meshes
Stars: ✭ 206 (+984.21%)
Mutual labels:  geometry
Glslviewer
Console-based GLSL Sandbox for 2D/3D shaders shaders
Stars: ✭ 2,834 (+14815.79%)
Mutual labels:  geometry
Cheap Ruler Go
📏 cheapruler in Go: fast geodesic measurements
Stars: ✭ 176 (+826.32%)
Mutual labels:  geometry
Geokit
Geo-Toolkit for PHP.
Stars: ✭ 223 (+1073.68%)
Mutual labels:  geometry
Hole fixer
Demo implementation of smoothly filling holes in 3D meshes using surface fairing
Stars: ✭ 165 (+768.42%)
Mutual labels:  geometry
publib
Produce publication-level quality images on top of Matplotlib
Stars: ✭ 34 (+78.95%)
Mutual labels:  plot
Elm Geometry
2D/3D geometry package for Elm
Stars: ✭ 162 (+752.63%)
Mutual labels:  geometry
Unity.library.eppz.geometry
2D Geometry for Unity. Suited for everyday polygon hassle. Polygon clipping, polygon winding direction, polygon area, polygon centroid, centroid of multiple polygons, line intersection, point-line distance, segment intersection, polygon-point containment, polygon triangulation, polygon Voronoi diagram, polygon offset, polygon outline, polygon buffer, polygon union, polygon substraction, polygon boolean operations, and more. It is a polygon fest.
Stars: ✭ 198 (+942.11%)
Mutual labels:  geometry
Cgal
The public CGAL repository, see the README below
Stars: ✭ 2,825 (+14768.42%)
Mutual labels:  geometry
rush
R One-Liners from the Shell
Stars: ✭ 44 (+131.58%)
Mutual labels:  plot
sigstar
add significance stars to MATLAB plots
Stars: ✭ 33 (+73.68%)
Mutual labels:  plot

maptalks.plot

maptalks 扩展的 plot symbol 的自定义绘制插件

Build Status codecov NPM downloads JS gzip size Npm package GitHub stars GitHub license

下载

git clone https://github.com/sakitam-fdd/maptalks.plot.git
npm install
npm run dev
npm run build

安装

npm安装

npm install maptalks.plot --save
import maptalksPlot from 'maptalks.plot'

cdn

目前可通过 unpkg.com 获取最新版本的资源。

https://unpkg.com/maptalks.plot/dist/maptalks.plot.js
https://unpkg.com/maptalks.plot/dist/maptalks.plot.min.js

示例

maptalks demo
<div id="map" class="container"></div>
<script src="../node_modules/maptalks/dist/maptalks.js"></script>
<script src="../dist/maptalks.plot.js"></script>
<script>
  var map = new maptalks.Map('map', {
      center: [108.93, 34.27],
      zoom: 5,
      baseLayer: new maptalks.TileLayer('base', {
        urlTemplate: 'https://webst01.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}'
      })
    });
  
    var layer = new maptalks.VectorLayer('vector', {
      enableSimplify : false
    }).addTo(map);
  
    var drawTool = new MaptalksPlot.PlotDraw({
      mode: 'Curve'
    }).addTo(map).disable();
    drawTool.on('drawend', function (param) {
      console.log(param.geometry);
      if (param.geometry.getPlotType() === 'PlotPoint') {
        param.geometry.setSymbol({
          'markerFile': './static/images/5.png',
          'markerWidth': 28,
          'markerHeight': 40,
          'markerDx': 0,
          'markerDy': 0,
          'markerOpacity': 1
        })
      }
      layer.addGeometry(param.geometry);
    });
    var itemsRight = ['Polygon',
      'CurveFlag', 'TriangleFlag', 'RectFlag',
      'RectAngle', 'Circle', 'Ellipse'].map(function (value) {
      return {
        item: value,
        click: function () {
          drawTool.setMode(value).enable();
        }
      };
    });
    // right
    new maptalks.control.Toolbar({
      position : 'top-right',
      items: [
        {
          item: 'Shape',
          children: itemsRight
        },
        {
          item: 'Disable',
          click: function () {
            drawTool.disable();
          }
        },
        {
          item: 'Clear',
          click: function () {
            layer.clear();
          }
        }
      ]
    }).addTo(map);
</script>

截图示例

demo

Resources

maptalks

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].