Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liulinboyi/togeojson-wxapp
togeojson-wxapp miniprogram
https://github.com/liulinboyi/togeojson-wxapp
gpx kml miniprogram togeojson togeojson-wxapp wxapp
Last synced: about 2 months ago
JSON representation
togeojson-wxapp miniprogram
- Host: GitHub
- URL: https://github.com/liulinboyi/togeojson-wxapp
- Owner: liulinboyi
- License: mit
- Created: 2020-07-22T23:59:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:16:50.000Z (about 2 years ago)
- Last Synced: 2023-03-05T02:03:22.488Z (almost 2 years ago)
- Topics: gpx, kml, miniprogram, togeojson, togeojson-wxapp, wxapp
- Language: JavaScript
- Homepage: https://blog.heyliubo.top/togeojson-wxapp/example/index.html
- Size: 380 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![npm](https://img.shields.io/npm/v/togeojson-wxapp)
# kml、gpx格式转geojson格式。
# 可在小程序、浏览器、Node使用。# 使用
```
npm install togeojson-wxapp
```# 例子
## 浏览器:[立即体验](https://blog.heyliubo.top/togeojson-wxapp/example/index.html)
## 小程序:待补充
## Node:
```javascript
const togeojsonWxapp = require('togeojson-wxapp/dist/togeojson-wxapp.cjs')
togeojsonWxapp.togeojson()
```# API
## togeojson(path: string, fileContent: string): togeojson
### path: 文件路径
### fileContent: 文件内容## stringTogeojson(type, fileContent: string): togeojson
### type: 文件类型
### fileContent: 文件内容