地图注释披露指示器-Xamarin.Form [英] Map Annotation Disclosure Indicator - Xamarin.Form

查看:56
本文介绍了地图注释披露指示器-Xamarin.Form的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xamarin.Form平台在我的应用程序中使用地图功能.我可以在地图上添加注释.但是,我想知道是否有一种方法可以在注释上添加公开指示器,从而使用户可以点击以进入DetailViewController.

I am using Xamarin.Form platform to use Map feature in my application. I could able to add an annotation on the map. However, I would like to know is there a way to add disclosure indicator on annotation that enables user to tap to go to DetailViewController.

        using Xamarin.Forms.Maps;

        Map map;
        Title= "MapView";

        map = new Map { 
            IsShowingUser = true,
            HeightRequest = 100,
            WidthRequest = 960,
            VerticalOptions = LayoutOptions.FillAndExpand
        };

        map.Pins.Add(new Pin {
            Position = new Position(29.7,-95.0177232),
            Label = "Boardwalk"
        });

我想要类似以下内容的内容.

I want something similar to the following screnshot.

推荐答案

我认为无法在当前的 Xamarin.Forms 地图中提供您自己的视图>组件( v1.2.3x ),因为它已被锁定.

I don't believe this is possible to provide your own views in the current Xamarin.Forms Maps component (v1.2.3x) as it is very locked down.

更新1:-

不幸的是没有.截至10月24日

Unfortunately not. This is a requested feature for Xamarin.Forms, as of October 24 here.

目前唯一的解决方法是创建自己的自定义渲染器.

The only way around at present would be to create your own custom renderer.

这篇关于地图注释披露指示器-Xamarin.Form的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆