简体   繁体   English

如何使用Xamarin.Forms.GoogleMaps绘制自定义图钉

[英]How to draw custom pin with Xamarin.Forms.GoogleMaps

Hello I am trying to develop multiplatform application and I want to render shapes on my map. 您好,我正在尝试开发多平台应用程序,我想在地图上渲染形状。

I am able to render png files and etc, but is it possible to draw custom shapes created programatically? 我可以渲染png文件等,但是可以绘制以编程方式创建的自定义形状吗? I followed this example XFGoogleMapSample , but I am not able to create with PCL project. 我遵循了此示例XFGoogleMapSample ,但是无法使用PCL项目创建。

Can you please help me? 你能帮我么?

It is possible to draw lines (polylines) and shapes (polygons and circles), which can be drawn programmatically and interactive. 可以绘制线条(折线)和形状(多边形和圆),这些线条可以通过编程方式进行交互绘制。

Take a look at this example which demonstrates the API. 看一下演示API的示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM