Osmdroid entry (1) Overview

                                1 Osmdroid Overview

table of Contents

                                1 Osmdroid Overview

1. About Osmdroid

2. Common package

2.1 org.osmdroid.tileprovider

2.2 org.osmdroid.tileprovider.tilesource

2.3 org.osmdroid.views

2.4 org.osmdroid.views.overlay

2.5 org.osmdroid.views.overlay.compass

2.6 org.osmdroid.views.overlay.gridlines

2.7 org.osmdroid.views.overlay.infowindow

2.8 org.osmdroid.views.overlay.milestones

2.9 org.osmdroid.views.overlay.mylocation

2.10 org.osmdroid.views.overlay.simplefastpoint


1. About Osmdroid

osmdroid is (almost) full / free Android MapView (v1 API) alternative to class. It also includes a modular tile provider system that supports a number of online and offline sources tile, and cover with a built-in support for overlay, used to draw icons, track position and draw the shape.

osmdroid current iteration version 6.15 to version, is based on android (API level 8 = Platform 2.2) Map control. Through such control, you can achieve a large loading vector data, to achieve location services, loading base map data and the like.

github Address: https://github.com/osmdroid/osmdroid

2. Common package

It is used as bloggers package in the project:

2.1 org.osmdroid.tileprovider

To solve all kinds of interactive maps MapView and a base map data (tile source) of (loading, unloading, etc.).

2.2 org.osmdroid.tileprovider.tilesource

Various types of base map data (tile source) composed of an object, comprising different types of map data corresponding to the source data should have information.

2.3 org.osmdroid.views

View control package (most importantly), it contains a map controls, map control, coordinate projection and other important geographic information exchange controls, and the concept of objects.

2.4 org.osmdroid.views.overlay

Covering layer, comprising a base wire dot type surface covering layers, we can complete the package cover layer based on their needs based on the type of cover layer.

2.5 org.osmdroid.views.overlay.compass

Compass Control has already done, it is actually based on a " org.osmdroid.views.overlay.Overlay oriented package of layers" category.

2.6 org.osmdroid.views.overlay.gridlines

Gridlines layer, the grid can be drawn according to latitude and longitude latitude and longitude lines on a map.

2.7 org.osmdroid.views.overlay.infowindow

Message box that contains three box object, the user clicks on the cover layer interaction means feedback to the user.

2.8 org.osmdroid.views.overlay.milestones

Milestone, the line can achieve a variety of styles symbol effect.

2.9 org.osmdroid.views.overlay.mylocation

Location information services, including network and Gps positioning both targeting methods, and contains location information presentation layer.

2.10 org.osmdroid.views.overlay.simplefastpoint

Based on the point to draw means large amount of data, we can ensure that the phone fluency, text label, but the reality point symbolic effect slightly worse.

The above package is often used in 10 projects in the wood, when mastered its use should be customized combination of business development APP.

The next section of the package and the use of specific analysis api analysis.

Published 16 original articles · won praise 2 · Views 3502

Guess you like

Origin blog.csdn.net/weixin_41012454/article/details/104315442