onlylemi / mapview Goto Github PK
View Code? Open in Web Editor NEWA MapView on Android platform.
License: MIT License
A MapView on Android platform.
License: MIT License
Hi,
Can you please explain how i could generate nodes and nodes contact list for a custom map to provide navigation?
您好,demo里移动图片时,图片会抖动是什么原因呢?我研究了,没找到原因
似乎导航起始点不能随意设置,有时候默认起始点是mark.size - 1所存储的点,自己设置点坐标测试时,也会时常报错
I copied the whole code from BitmapLayerTestActivity from example project, I am using IndoorAtlas for indoor positioning inside the onLocationChanged i am using the below code
Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher);
IALatLng latLng = new IALatLng(iaLocation.getLatitude(), iaLocation.getLongitude());
PointF point = mFloorPlan.coordinateToPoint(latLng);
mBitmapLayer = new BitmapLayer(mMapView, bmp);
mBitmapLayer.setLocation(point);
mBitmapLayer.setOnBitmapClickListener(new BitmapLayer.OnBitmapClickListener() {
@OverRide
public void onBitmapClick(BitmapLayer layer) {
Toast.makeText(getApplicationContext(), "click", Toast.LENGTH_SHORT).show();
}
});
mMapView.addLayer(mBitmapLayer);
mMapView.refresh();
but refresh is not working. Everytime icon is rendering on map.
Can you give some information about map layers?Can we share wms layers?or things like that?I mead does you have followed OGC standards?
Hi,
I copied the code used for the routeLayerActivity but my map is too big for the screen so it is too tiny. I decided to set a zoom in the OnCreate of the activity.
PointF target = null;
if(item.getItemMark() != null){
target = new PointF(item.getItemMark().x, item.getItemMark().y);
routeList = MapUtils.getShortestDistanceBetweenTwoPoints(marks.get(0), target, nodes, nodesContract);
routeLayer.setNodeList(nodes);
routeLayer.setRouteList(routeList);
mapView.refresh();
}
mapView.setCurrentZoom(mapView.getCurrentZoom() * 4, 0, 300);
mapView.refresh();
On debug mode if I suspend the thread from my var target, the zoom method will be apply to the map but if I don't suspend the thread or I launch the activity with the run session zoom won't be apply.
Any idea ?
GeoJson is an open standard format for mapping information (http://geojson.org/).
There are also initiatives like : https://github.com/asaarinen/indoor-json to override GeoJson and manage levels. However, it does not seems to be an active project anymore.
请问一下在使用导航功能时,nodescontract和nodes分别代表什么
Hello, thanks for this project.
I don't understand - What is nodesСontract in RouteLayerTestActivity? How calculate it for my own map?
在使用LocationLayerTest过程中发现,当把传感器开启之后,mapview load进来的图很容易就变黑了,不显示图片了,并且log显示如下信息:
05-12 14:18:31.710 12247-12247/com.onlylemi.mapview I/View: ssignParent(ViewParent parent) parent is: null
05-12 14:18:31.710 12247-12247/com.onlylemi.mapview W/InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
05-12 14:18:41.430 12247-12261/com.onlylemi.mapview W/art: Suspending all threads took: 16.904ms
this.currentMatrix.postScale(zoom / this.currentZoom, zoom / this.currentZoom, x, y);
设置初始方法倍数,短时间运行了两次
I'm using custom floor plan. After zoom in map , I can't return back initial zoom level again.
Can I disable rotation on map?
It would be very nice to have support for multiple floor.
There could also be a floor selector.
间隔时间内刷新地图loadMap(bitmap),图片会自己移动,如果让其一直保持在中间位置?
请问有没有IOS版本的呀
How can I control how to drag pictures like photoView without leaving the screen?
有时可能是feature吧......
我想了俩解决方法
LocationLayer.java
// ...
if (compassIndicatorArrowBitmap != null) {
canvas.rotate(mapView.getCurrentRotateDegrees(), goal[0], goal[1]); // 新增
// ...
onSensorChanged
不断发出事件来做到刷新的。不想改这个代码,因为在处理touchEvent的时候没调用setCurrentRotateDegrees
,我又懒得看处理过程。Well, It loads it correctly, but of the screen!, Any idea why or how to fix?
I tried to print all the PontF in getNodesContactList() and getNodesList() on the map as MarkLayers, and i can tell that the points in getNodesList() mean the point that you can turn, but the points in getNodesContactList() gathers on the Top-left corner ,which i cannot understand.What does that mean?
加入了卻沒有辦法使用
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.