问题标签 [mapactivity]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 如何解决mapactivity的并发修改异常?
我正在开发一个应用程序,它使用地图活动和逐项叠加类来跟踪和显示地图上的标记。但是我有时会遇到并发修改异常。
android - 强制关闭地图控制器?
我有一个奇怪的问题。我想在地图上显示某个位置。问题是有时一切正常,但有时我强制关闭,在 DDMS 中我得到:06-03 18:24:14.171: ERROR/AndroidRuntime(2228): at com.google.android.maps.MapController.setCenter( MapController.java:345) 似乎问题出在以下行:mapView.getController().setCenter(pt)。我能理解,为什么有时一切都很好,有时却不行。
这是我的代码:
这是 LogCat :
android - 在 2 个叠加层之间绘制路线
在我的应用程序中,我显示在地图 2 的位置上,并用标记对其进行了标记。现在,我想画出它们之间的路线,我不知道该怎么做。我的函数绘制应该是什么样子?
这是我的代码:
谢谢..
android - MapView 的标记显示问题
我有一个 MapActivity。它显示了一个带有一些标记的谷歌地图。在 MapActivity 运行时,我想通过使用代码在地图上添加一些新标记,还想删除以前的标记,以便地图将显示刚刚更新的新标记,而不是以前的标记。我怎样才能做到这一点?非常感谢使用示例/示例代码给出的答案。提前致谢 ..... :)
android - 使用 MapActivity 在 Android 中创建库项目并在另一个项目中使用它?
我创建了一个项目作为使用 MapActivity 的库,但是当它在另一个项目中被引用时,它无法与该项目链接。但是如果同一个项目只与 Activity 一起使用,那么一切都会正常工作。该项目已正确链接,并且该库的活动从其他项目中调用。
logcat 中出现的错误是 Unable to resolve superclass of packagename/SampleLibActivity;(13)
仅在使用 MapActivity 扩展时,我真的不明白错误的原因。创建库项目有什么限制吗?
android - 尝试使用 Android Mapview 类的问题
我是 Android 的菜鸟,所以如果我的帖子是白痴,请耐心等待并道歉。基本上,我正在尝试向导致一些问题的 XML 添加一个 mapview,我得到的错误是:
据我所知,此调用发生了错误:
地图类本身是:
如果我换掉,这就是有趣的地方
并将其替换为
然后它绝对正确地工作(尽管没有调用 MapActivity)。清单中有对地图的引用:
我猜我在 xml 中的活动方面做错了什么?我试过摆弄,但到目前为止无济于事,有人有什么想法吗?
谢谢,
android - ActivityNotFoundException (MapActivity)
我的应用程序中有一个 MapActivity。我将它包含在我的清单文件中,但是当我运行应用程序时,除了 MapActivity 之外,一切都运行良好,每当我尝试通过单击按钮启动 MapActivity 时,它都会出现以下错误,
我的 MapActivity 有什么问题?为什么找不到?
我的 MapActivity 的代码:
公共类地图扩展 MapActivity {
}
我的清单文件的代码:
android - 加入 OverlayItems
在从类派生的MapActivity
类中,我想OverlayItems
用一条线连接两个。到目前为止,我已经尝试重写MapView
'sonDraw
方法,但这是不可能的,因为该方法是声明的final
。
我能怎么做?
提前感谢您花时间帮助我。
android - Android launching a MapActivity?
I'm trying to set up the google maps API for an application. I'm following this link: http://developer.android.com/guide/tutorials/views/hello-mapview.html
Yes, I got my own APK key in the xml and added all the manifest stuff they wanted. But my Java code is giving me an error:
import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.widget.Toast; import com.google.android.maps.MapActivity;
}
Apparently MapActivity is an undefined class, and my last import doesn't help.
Can anyone help me access the MapActivity class?
Thanks.
android - 获取海拔高度
在从该类派生的MapActivity
类中,我想获取用户单击的点的高度。到目前为止,我知道如何检索纬度,经度而不是高度。
有可能吗?怎么做?
提前感谢您花时间帮助我。