本文整理汇总了Java中de.fhpotsdam.unfolding.providers.MBTilesMapProvider类的典型用法代码示例。如果您正苦于以下问题:Java MBTilesMapProvider类的具体用法?Java MBTilesMapProvider怎么用?Java MBTilesMapProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MBTilesMapProvider类属于de.fhpotsdam.unfolding.providers包,在下文中一共展示了MBTilesMapProvider类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setup
import de.fhpotsdam.unfolding.providers.MBTilesMapProvider; //导入依赖的package包/类
public void setup() {
size(800, 600, OPENGL);
map = new UnfoldingMap(this, new MBTilesMapProvider(mbTilesString));
MapUtils.createDefaultEventDispatcher(this, map);
map.setZoomRange(1, 3);
}
示例2: setup
import de.fhpotsdam.unfolding.providers.MBTilesMapProvider; //导入依赖的package包/类
public void setup() {
size(1000, 600);
String mbTilesString = sketchPath(DATA_DIRECTORY + "/map/WuxiMap.mbtiles");
map = new UnfoldingMap(this, new MBTilesMapProvider(mbTilesString));
map.zoomToLevel(initZoomLevel);
map.panTo(wuxiLocation);
map.setZoomRange(9, 15);
// map.setPanningRestriction(wuxiLocation, 50);
MapUtils.createDefaultEventDispatcher(this, map);
frameRate(60);
loadCnt = (int) (frameRate * 6);
// load logo
phoneLogo = loadShape(DATA_DIRECTORY + "/phone1.svg");
Toolkit tk = Toolkit.getDefaultToolkit();
icon = tk.createImage(DATA_DIRECTORY + "/phone1.png");
// String uriAPI = "http://219.224.169.45:8080/GsmService/query.action?ak=421081564";
// String uriAPI = "http://219.224.169.45:8080/GsmService/query.action?"
// + "ak=421081564"
// + "&deviceId=99694252503308235"
// + "&startTime=20131111000000"
// + "&endTime=20131112000000";
// String jsonString = HttpUtil.sendPost(uriAPI, "");
String jsonString = dataFromFile();
// System.out.println(jsonString);
GsmResponse response;
response = JSonUtil.jsonToObject(jsonString, GsmResponse.class);
System.out.println(response.getStatus());
BaseStationTransform transform = BaseStationTransform.getInstance();
locList = transform.getLocations(response);
}