如何绘制pre-构建地图从谷歌地图上的一个图形页面 [英] How to plot a pre-build map from google maps on a MapView
问题描述
我想从一个链接看地图(http://maps.google.com/maps/ms?msid=216892338463540803496.000494dd57eb5ebce6db2&msa=0),并绘制它的一个图形页面,这可能吗?
I'm trying to read a map from a link (http://maps.google.com/maps/ms?msid=216892338463540803496.000494dd57eb5ebce6db2&msa=0) and plot it on a MapView, is it possible?
推荐答案
正如你在我的previous答案(,但我不想来解析KML和情节逐点发布更多信息。我想知道如果theres的方式来绘制一次全部的),我现在可以redifine我的答案。
As you posted more information in my previous answer ("but I don't want to parse the KML and plot point by point. I was wondering if theres a way to plot all at once"), I can now redifine my answer.
您应该尝试这些线路,并根据需要进行修改:
You should try these lines and adapt it to your needs:
Intent mapIntent = new Intent(Intent.ACTION_VIEW);
Uri uri1 = Uri.parse("geo:0,0?q=http://code.google.com/apis/kml/
documentation/KML_Samples.kml");
mapIntent.setData(uri1);
startActivity(Intent.createChooser(mapIntent, "Sample"));
不幸的是,你不会有任何控制,因为这不是一个MapActivity。 如果您打算添加更多的东西在你的地图上,你一定要试试我的第一个建议,并分析自己的KML!
Unfortunately, you won't have any control, as this is not a MapActivity. If you plan to add more stuff on your map, you have to try my first proposal and parse yourself the kml!
类似的问题:如何使用的图形页面KML文件安卓
这篇关于如何绘制pre-构建地图从谷歌地图上的一个图形页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!