Code Monkey home page Code Monkey logo

geomap's Introduction

解析geojosn文件,绘制地图

demo ##example var p1 = [[103.96203476539,30.73992311664],[103.96213785625945, 30.739684501136967],[103.96209673532,30.73980937962],[103.96208759218746, 30.739811116021762],[103.9620969208462, 30.739810522099],[103.96210521298727, 30.73981081906037],[103.96209864837557, 30.739654122312533],[103.96199833650218, 30.740024730002123],[103.96195042635367, 30.73994752018434],[103.96204025788211, 30.739750634868994],[103.96206121857207, 30.739860015649427],[103.96202540112932, 30.739883277609312],[103.96195213028,30.73985653109],[103.96209265960702, 30.739789239864486],[103.96210014556772, 30.73976350320253], [103.96202079438427, 30.739643827634154]] var map = new R.map('main',[103.9620178,30.739842],12) var geo = new R.loadMap('./test.geojson') geo.load().addTo(map)

var marker = new R.Marker()
marker.setIcon('./images/marker-icon.png').setCoordinates(p1)
marker.addTo(map)
		
var heatmap = new R.heatmap()
heatmap.setCoordinates(p1)
heatmap.addTo(map)

geomap's People

Contributors

pitaya921 avatar

Watchers

James Cloos 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.