Java IndoorAtlas SDK 2.0映射未加载
我正试图在我的项目中使用IndoorAtlas。我创建了Java IndoorAtlas SDK 2.0映射未加载,java,android,location,maps,indoor-positioning-system,Java,Android,Location,Maps,Indoor Positioning System,我正试图在我的项目中使用IndoorAtlas。我创建了Activity示例,但当我启动Activity时,我什么也看不到,map没有加载到ImageView中,LogCat只显示了几行。请帮忙 带有“Indoratalas”过滤器的我的LogCat: 我的XML: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/an
Activity
示例,但当我启动Activity
时,我什么也看不到,map没有加载到ImageView
中,LogCat只显示了几行。请帮忙
带有“Indoratalas”过滤器的我的LogCat:
我的XML
:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include
android:id="@+id/toolbar"
layout="@layout/toolbar" />
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/toolbar" />
</RelativeLayout>
要加载和显示楼层平面,不需要imageview。您需要一个名为“BlueDotView”的类,可以从以下链接找到该类:。如果您正确地(从创建活动的位置)浏览了ImageViewActivity类,您将看到没有需要使用的imageview。ImageViewActivity类具有以下内容:
私有BlueDotView mImageView
要正确加载楼层平面,请执行以下步骤
1.使用ImageViewActivity正确交叉检查您的活动
2.必须将BlueDotView类作为单独的类
3.在activity_Indoratalas XML文件中,您应该具有以下内容,这些内容来自SDK 2.0的github存储库,而不是XML文件中的内容:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<com.indooratlas.android.sdk.examples.imageview.BlueDotView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
要加载和显示楼层平面,不需要imageview。您需要一个名为“BlueDotView”的类,可以从以下链接找到该类:。如果您正确地(从创建活动的位置)浏览了ImageViewActivity类,您将看到没有需要使用的imageview。ImageViewActivity类具有以下内容:
私有BlueDotView mImageView
要正确加载楼层平面,请执行以下步骤
1.使用ImageViewActivity正确交叉检查您的活动
2.必须将BlueDotView类作为单独的类
3.在activity_Indoratalas XML文件中,您应该具有以下内容,这些内容来自SDK 2.0的github存储库,而不是XML文件中的内容:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<com.indooratlas.android.sdk.examples.imageview.BlueDotView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
我已经从示例中复制了
BlueDotView
类和ImageViewActivity
,但仍然有没有地图的白色屏幕:(您是否已将平面图上传到IndoorAtlas网站,并进行过任何类型的映射过程?如果您的答案为“是”,请检查您的android清单,并删除您的activity_IndoorAtlas xml文件中的内容,并将其替换为我在上述答案中提供的代码。在该xml代码中,您需要使用自己的p软件包名称,随后将以Yourpackagename.BlueDotView结尾。您可以从以下链接获得更多帮助:我已在Indooralas服务器上上载了.png,但我尚未完成映射过程。我认为示例中的代码将从服务器加载.png图像。或许可以进行一些映射,或许可以帮助您在应用程序中获取地图。好的。我将尝试映射ng.感谢您的帮助我已经从示例中复制了BlueDotView
类和ImageViewActivity
,但仍然有白色屏幕,没有地图:(您是否已将平面图上传到IndoorAtlas网站,并进行过任何类型的映射过程?如果您的答案为“是”,请检查您的android清单,并删除您的activity_IndoorAtlas xml文件中的内容,并将其替换为我在上述答案中提供的代码。在该xml代码中,您需要使用自己的p软件包名称,随后将以Yourpackagename.BlueDotView结尾。您可以从以下链接获得更多帮助:我已在Indooralas服务器上上载了.png,但我尚未完成映射过程。我认为示例中的代码将从服务器加载.png图像。或许可以进行一些映射,或许可以帮助您在应用程序中获取地图。好的。我将尝试映射谢谢你的帮助
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<com.indooratlas.android.sdk.examples.imageview.BlueDotView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>