GithubHelp home page GithubHelp logo

smartfire / bmap.net Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sherlockchou86/bmap.net

0.0 3.0 0.0 3.67 MB

a library for operating baidu map,encapsulating web service API with C# language. also contains a list of controls which can be used in winform.

C# 66.05% JavaScript 33.95%

bmap.net's Introduction

BMap.NET

a library for operating baidu maps,encapsulating Web Service API with C# language,also contains a list of controls which can be used in winform.

see more here(chinese blog): my cnblogs


overview

the source code contains 3 projects: BMap.NET,BMap.NET.WindowsForm and BMap.NET.WinformDemo.

  • BMap.NET

    encapsulates web service api, which return JObject(json.net) object.

  • BMap.NET.WindowsForm

    contains some controls which can be used in winform.for example: BMapControl which can display baidu map, BDirectionBoard is responsible for navigation, etc.

  • BMap.NET.WinformDemo

    a demo showing how to use controls in BMap.NET.WindowsForm.

some screenshots below:

  1. autocomplete search box

  2. POIs search

  3. direction

  4. add markers and drawing

  5. search in bounds

  6. select city

can do and cant do

can do in BMap.NET:

  • Search places by city, bounds, circle(nearby);
  • Place suggestion;
  • Geocoding;
  • Direction(transit, driving, walking);
  • Located by IP;
  • Coordinates transofrm;

can do in BMap.NET.WindowsForm:

  • Display Baidu Map(drag, move, zoom etc);
  • Select map mode(normal, satellite, roadnet);
  • Set map load mode(cache, cache_first, server);
  • Drawing shapes in map;
  • Measturing distance;
  • Add Markers in map;
  • Save map to image (screenshot by selectting a region);
  • Autocomplete search box;
  • Direction control;
  • Places list control;

cant do:

  • 3D map;
  • Street view;
  • Direction according to real-time traffic conditions;

In addition, this project is used only for Baidu map, so the Extension ability is so so. you can modify the source code to meet your needs.

how to use

BMap.NET is very simple to use(just some interfaces to get json data from baidu map server).

BMap.NET.WindowsForm only opens 5 controls: BPlaceBox, BMapControl, BPlacesBoard, BDirectionBoard and the BTabControl. you can drag them into form desinger and set few properties to let them build associations like this:

  1. BPlaceBox

  2. BPlacesBoard

  3. BMapControl

  4. BDirectionBoard

press F5 without any other writed codes.

BTabControl is only used as a container which contains BPlacesBoard and BDirectionBoard.

thanks

my thanks below:

  1. baidu map api documents(http://developer.baidu.com/map/index.php?title=webapi)
  2. json.net(https://json.codeplex.com/)
  3. json visualization(http://www.bejson.com/)

all source code follow the MIT license.

bmap.net's People

Watchers

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