Coder Social home page Coder Social logo

mapview's Introduction

onlylemi

mapview's People

Contributors

onlylemi avatar wafer-li avatar ydcool avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mapview's Issues

Node Contact list

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所存储的点,自己设置点坐标测试时,也会时常报错

MapView.refresh() is not working.

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.

MapView.setCurrentZoom(float zoom) working on Debug Mode but not on Run Mode

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 ?

mapview图片变黑

在使用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

setCurrentZoom失效

this.currentMatrix.postScale(zoom / this.currentZoom, zoom / this.currentZoom, x, y);
设置初始方法倍数,短时间运行了两次

Zoom out doesn't work

I'm using custom floor plan. After zoom in map , I can't return back initial zoom level again.

Help

How can I control how to drag pictures like photoView without leaving the screen?

Arrow of LocationLayer doesn't rotate when mapView rotating if sensor is off

有时可能是feature吧......

我想了俩解决方法

  1. 好在Layer都有mapView的引用。添加以下代码至LocationLayer.java
// ...
 if (compassIndicatorArrowBitmap != null) {
     canvas.rotate(mapView.getCurrentRotateDegrees(), goal[0], goal[1]); // 新增
// ...
  1. MapView添加一个onCurrentRotateDegreesChanged事件。这样至少用户可以在旋转时设置指向,这也是Demo中的**,但Demo中是由onSensorChanged不断发出事件来做到刷新的。不想改这个代码,因为在处理touchEvent的时候没调用setCurrentRotateDegrees,我又懒得看处理过程。

How to generate ShortestPath on custom map

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.