Не отображается карта в MapView, т.е. не видно тайлов карты.
Задача, отобразить заданное место на карте маркером.(И нужен ли apiKey для такой задачи? Может дело в нём?)
Содержимое axml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/llMap"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/header"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_alignParentTop="true"
android:layout_height="72dp"
android:textAlignment="center"
android:background="#ef6c00">
<include
android:layout_width="fill_parent"
layout="@layout/Header"/>
</LinearLayout>
<ru.yandex.yandexmapkit.MapView
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:tag="static"/>
</LinearLayout>
Код активности:
public class YandexMapActivity : Activity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
try
{
SetContentView(Resource.Layout.YandexMap);
var map = FindViewById<MapView>(Resource.Id.map);
MapController mMapController = map.MapController;
mMapController.SetPositionAnimationTo(new GeoPoint(60.113337, 55.151317));
}
catch(Exception ex)
{
}
}
}