Code Monkey home page Code Monkey logo

convgps's Introduction

##根据html5 Geolocation API 提供的地理位置信息,调用各大地图api获取需要的数据。

该插件是jQery插件,使用前请先引用jQuery类库。

例(cdn):
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.js" type="text/javascript" charset="utf-8"></script>

###用法
$.convgps({
apis:"qq",
key:"",
des:'距离计算',
destination:'30.123123,120,42321' });

###参数options
1.apis 地图API,暂时默认"qq",即腾讯地图API
2.contentarea 显示地址的对应的jq元素选择器
3.key 开发者密钥(暂时只有用腾讯地图,所以填的腾讯地图的开发者密钥)

其他的地图API,以后丰富。

convgps's People

Contributors

kanweiwei avatar

Watchers

 avatar  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.