ThinkGeo.com    |     Documentation    |     Premium Support

Xamarin Android/iOS Evaluation DLL's

Hello,

I recently started a new project which references 60 day evaluation dll’s from the ThinkGeo Product Center. I can get everything to build, deploy and run okay with out any references to the dll’s I obtained. But, when I add a MapVIew

Main.axml:

<ThinkGeo.MapSuite.AndroidEdition.MapView
android:id="@+id/RoverMap"
android:layout_width=“fill_parent”
android:layout_height=“fill_parent” />

MainActivity.cs

MapView map = FindViewById(Resource.Id.RoverMap);
map.MapUnit = GeographyUnit.DecimalDegree;

The app will build, deploy but then crash. I am unsure how to proceed as I have tried many different options to get this working. Could anyone provide and tips as to what I may be doing wrong. I am using Visual Studio 2017 with the VisualStudio_android-23_arm_tablet(Android 6.0 - API 23) emulator. I do also have the iOS project in the same solution with my android application.

Thanks!

Hi Mike,

We noticed that you didn’t set CurrentExtent when using map. Please add following code:

mapView.CurrentExtent = new RectangleShape(-134.01, 70.08, -56.60, 7.80); // This is extent for US States.	

There is a quick start guide, please refer http://wiki.thinkgeo.com/wiki/map_suite_mobile_for_android for detail.

We upgrade products to MapSuite10.0, you can use it through NuGet.

If you have any questions, please feel free to contact us.

Thanks,
Bill

Thank you for your help! That did the trick.

I do have one more question. Do the new 10.0 dll’s happen to support SqliteFeatureLayers for both iOS and Android? I could not find any documentation with regards to this matter and it doesn’t appear to be showing up in intellisense with Visual Studio.

Thanks!

Hi Mike,

MapSuite10.0 supports SqliteFeatureLayer for iOS and Android. The full name of Sqlite package is “ThinkGeo.MapSuite.Layers.SqliteForMono”.
Please refer http://wiki.thinkgeo.com/wiki/map_suite_platform_coverage for the platform coverage of each product.

There is a sqlite sample. Please refer https://github.com/ThinkGeo/SqliteSample-ForMono for detail.

If you have any questions, please feel free to contact us.

Thanks,
Bill