Skip to content

amapapi/Android_CustomMarker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

本工程为基于高德地图Android SDK进行封装,实现了三种定义的Marker样式,包括根据2012年各省人口年龄结构数据绘制统计饼图、柱状图以及显示详细信息的例子

##前述:

##效果图如下:

  • Screenshot
  • Screenshot
  • Screenshot

##版本更新1.0.0

提供了基本的饼图,柱状图和详细显示的Marker样式的绘制

##下载资源:

Screenshot

使用方法:

  • 1:搭建高德地图 AndroidSDK工程方法见:配置方法
  • 2:接口使用
  • 绘制饼图接口
//获取饼图
				MarkerOptions markerOptions = MarkerOptionsFactory
						.createPieChartMarkerOptions(getApplicationContext(),
								ConstantUtils.latlngs[i],
								ConstantUtils.AGEData[i], colors, 50);
  • 绘制柱状图接口
//获取柱状图
				MarkerOptions markerOptions = MarkerOptionsFactory
						.createBarChartMarkerOptions(getApplicationContext(),
								ConstantUtils.latlngs[i],
								ConstantUtils.AGEData[i], colors, 100);
  • 绘制详细信息图接口:
	MarkerOptions markerOptions = MarkerOptionsFactory
						.createInfoWindowMarkerOptions(getApplicationContext(),
								ConstantUtils.latlngs[i],
								ConstantUtils.names[i],
								ConstantUtils.contents[i], drawable,contentDrawable);	

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages