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.
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
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:
autocomplete search box
POIs search
direction
add markers and drawing
search in bounds
select city
can do in BMap.NET:
can do in BMap.NET.WindowsForm:
cant do:
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.
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:
BPlaceBox
BPlacesBoard
BMapControl
BDirectionBoard
press F5 without any other writed codes.
BTabControl
is only used as a container which contains BPlacesBoard
and
BDirectionBoard
.
my thanks below:
all source code follow the MIT license.