使用xamarin.forms地图时改变引脚 [英] Change pins when using xamarin.forms map
问题描述
看起来好像我可能需要下井xamarin方式的路由我的应用程序开发
It appears as though I am likely to need to go down the xamarin forms route for my app development
不过,我已经发现了一个棘手的问题。
However I have spotted a nasty problem
我的用户在不同颜色的引脚
My users want different coloured pins
如果一个位置具有高于目标能耗这些点销需要是红色。低于指标绿色和目标橙色
If a location has energy consumption above target the pins for those points need to be red. Below target green and on target orange
我知道如何在iOS的做到这一点使用本地mapkit,但我怎么能做到这一点的xamarin形式?
I know how to do this using the native mapkit in iOS but how can I do this in xamarin forms?
有钩到针绘图code和覆盖其行为的一种方式?
Is there a way of hooking in to the pin drawing code and overriding its behaviour?
保
推荐答案
试试这个真棒Xamarin.Forms(的iOS / Android版)的地图项目,并更改自定义图像针/颜色也会相应。
Try this awesome Xamarin.Forms (iOS/Android) map project and change the custom pin images/colours accordingly.
https://github.com/raechten/BindableMapTest
祝你好运!
这篇关于使用xamarin.forms地图时改变引脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!