A simply packaging of baidu maps sdk(android v4.1.1/ios v3.1)
- Replace MapStateChanged to MapStateChangedFinish (Android)
- Fix crash problem (Android)
- ZoomLevel setting conflict with map moving (iOS)
- Fix crash problem (iOS)
- Update baidu sdk to v4.1.1(android) and v3.1(ios)
- Update Xamarin.Forms to v2.3.2.127
- Support change Pin.Image(Android)
- Pin.Title now can be null (iOS)
- ILocationService callback satellites always -1 (Android)
- Add Polygon support
- Add Circle support
- Add ICalculateUtils interface
- Add IProjection interface
iOS Project configuration:
1. Right click project, enter Options->iOS Build->Additional mtouch arguments:
-gcc_flags "-L${ProjectDir} -framework MapKit -framework CoreMotion -framework CoreGraphics
-framework QuartzCore -framework CoreText -framework CoreLocation -framework SystemConfiguration
-framework CoreTelephony -framework OpenGLES -framework Foundation -framework Security
-lz -lstdc++.6.0.9 -lsqlite3.0 -ObjC"
2. Open Info.plist
2.1 Bundle identifier must accord with your baidu key
2.2 Add items:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true />
</dict>
2.3 Add NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription
3. Add whole mapapi.bundle to project
4. Open AppDelegate.cs, add init code before LoadApplication:
Xamarin.FormsBaiduMaps.Init(“your baidu ios key”);
Android Project configuration:
1. Open MainActiveity.cs,add init code before LoadApplication:
Xamarin.FormsBaiduMaps.Init(null);
2. Open Properties/AndroidManifest.xml, add permissions and your baidukey,
also package must accord with your baidu key