English 中文(简体)
Android地图
原标题:Android Maps Caching Lines Drawn

我正在开发一个能够追踪谷歌地图SDK Add-On上公路的应用程序。

有许多点被描绘,无意中使地图非常简练。 看起来,SOS地图会关注这一问题,因为如果不绘制地图,就可以绘制出大量要点。

我开始采样点,取决于动物群。 例如,7级动物群只使用并沿用每20个点,以追踪路线。 但是,即便如此,也仍然太多,其结果却充满了非常缓慢的pan积和om淡的经验。

两个问题:

一种:能否发现电话中显示的地图的目前区域,再不设掩饰点?

<>strong>EDIT——经过一些初步调查,很容易发现剪辑区,而不是油漆点/线。 quickReject是用于这一目的的I ve。 由于所有要点仍在探讨之中,以确定是否必须加以利用,这无助于业绩的取得——我相信,可以优化。

两点:由于对要点的预测,是否完全有可能打脚,或许是走了这条道路(必须做的是每个动物群级的工作)。

最佳回答

能否探测到电话中显示的地图的目前区域,再不要在屏幕上放置油漆点?

是的,你可以预测你的屏幕四角:

Projection proj = mapView.getProjection();
GeoPoint topLeft = proj.fromPixels(0, 0);

GeoPoint bottomRight = proj.fromPixels(mapView.getWidth()-1, mapView.getHeight()-1);

double topLat = topLeft.getLatitudeE6()/1E6;
double topLon = topLeft.getLongitudeE6()/1E6;
double bottomLat = bottomRight.getLatitudeE6()/1E6;
double bottomLon = bottomRight.getLongitudeE6()/1E6;

在作出这一规定时,你只应选择这些界限中的点。

另见:

如果你处于非常高的血清水平,就会发现:

个人使用:outeeuptetics,以减少直线的点数。 例如,如果20点位于同一线,就应当使用起始点和终点点,并划定一条直线。

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签