C# develop Android Baidu map mobile application (multi map display)
1、 Introduction
Since v2.3.5, the map control supports multiple instances, that is, developers can create multiple map objects in one page, and operate on these objects separately without mutual interference.
File name: demo04multimapview.cs
Introduction: introduces the use of multiple mapviews
Details: in one interface, four texturemapview controls are established at the same time;
2、 Example
1. Running screenshot
The running effect in x86 simulator is as follows:
On the basis of the example in the previous section, you only need to add the following steps.
2. Add demo05_ Multimap.axml file
Add the file under the layout folder and change it to the following code:
3. Add demo05multimapview.cs file
Add the file in the sdkdemos folder, and then change its content to the following code:
4. Modify mainactivity.cs file
Add the following code to the demos field definition in the mainactivity.cs file.
The above describes the content related to the c# development of Android Baidu map mobile application (multi map display), hoping to help you.