【文件属性】:
文件名称:ngGeodist:AngularJS 的一个简单的半正弦模块
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-01 16:34:51
JavaScript
#ngGeodist
一个简单的 AngularJS 模块,用于使用基于的计算两个地理位置之间的距离
###安装
使用 Bower 安装:
bower install ngGeodist --save
在您的应用程序中包含ngGeodist模块,并且不要忘记在您的 index.html 中包含ng-geodist.js
###基本使用ngGeodist.getDistance(start, end, [options]);
[选项] = 带有键值对的对象 - 更多信息如下。
####例子
angular.module('myApp', [
'myApp.controllers',
'ngGeodist'
])
angular.module('myApp.controllers', [])
.controller('SearchCtrl', function($scop
【文件预览】:
ngGeodist-master
----bower.json(529B)
----src()
--------index.js(2KB)
----Gulpfile.js(423B)
----README.md(2KB)
----dist()
--------ng-geodist.js(2KB)
----.gitignore(39B)
----package.json(692B)