在原生反应中使用Mapbox上的以下视图呈现自定义注释(Rendering custom annotation with following view on Mapbox in react native)

地图盒上的自定义注释

我如何使用React Native中的Mapbox和Annotations来实现这一点。 我试图嵌套注释,渲染为折线,但没有得到所需的结果。 任何人都可以帮助解决这个问题吗?


Custom annotation on mapbox

How can I achieve this using Mapbox and Annotations in React Native. I have tried nesting the annotations, rendering as polyline but am not getting the desired result. Can anyone help with resolving this?


原文:https://stackoverflow.com/questions/45590951
2024-04-22 07:04

满意答案

几个脸掌心后,这一切都归结为缺乏这一行代码:

self.definesPresentationContext = YES;

将表示上下文设置为YES表示当视图控制器显示UISearchController时应该覆盖视图控制器的视图。


After several face palms, it all came down to the lack of this line of code:

self.definesPresentationContext = YES;

Setting the presentation context to YES indicates that the view controller's view should be covered when the view controller presents the UISearchController.

相关问答

更多

状态栏和导航栏出现在iOS 7的视图范围之内(Status bar and navigation bar appear over my view's bounds in iOS 7)

您可以通过在iOS7 SDK中实现一个名为edgesForExtendedLayout的新属性来实现此目的。 请添加以下代码来实现这一点, if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) self.edgesForExtendedLayout = UIRectEdgeNone; 您需要在-(void)viewDidLoad方法中添加以上内容。 iOS 7为您的UI布局和自定义外观带来了几个更改。 视...

搜索结果可见地在状态栏下滚动(Search Results Visibly Scrolling Underneath the Status Bar)

几个脸掌心后,这一切都归结为缺乏这一行代码: self.definesPresentationContext = YES; 将表示上下文设置为YES表示当视图控制器显示UISearchController时应该覆盖视图控制器的视图。 After several face palms, it all came down to the lack of this line of code: self.definesPresentationContext = YES; Setting the pres...

CoordinatorLayout + CollapsingToolbarLayout在状态栏下方滚动(CoordinatorLayout + CollapsingToolbarLayout scrolling underneath the status bar)

将android:fitsSystemWindows="true"到布局的根,即CoordinatorLayout 大多数情况下,您的应用程序不需要在状态栏或导航栏下绘制,但如果您这样做:您需要确保交互式元素(如按钮)不会隐藏在它们下面。 这就是android:fitsSystemWindows =“true”属性的默认行为:它设置View的填充以确保内容不会覆盖系统窗口。 在这里阅读更多内容。 Add android:fitsSystemWindows="true" to the root of...

点击状态栏时间(Tap Status Bar Time)

UITableView是UIScrollView的扩展,UITableViewDelegate是UIScrollViewDelegate的扩展。 UIScrollViewDelegate可以实现此方法: - (BOOL)scrollViewShouldScrollToTop:(UIScrollView *)scrollView 那将允许你拦截它。 您也可以使用tableview的“scrollsToTop”属性将其关闭。 如果您只是想知道它何时发生,您可以使用此委托方法: - (void)scr...

半透明状态栏没有导航栏(Translucent Status Bar with No Navigation Bar)

如果没有任何code您的问题很难猜测。我相信当您在Apple Music应用程序中提到的tableview内容滚动时,您会尝试实现半透明的状态栏。 在你的viewdidLoad方法中尝试下面的代码。 第1步:隐藏navigation bar 。 如果你的controller嵌入了navigationController 。 navigationController?.navigationBar.isHidden = true 第2步:将一个statusBar大小的UIView放置到您的控制器中,...

移动Android状态栏(Move the Android Status Bar)

该问题的解决方案如下: 在frameworks/base/services/java/com/android/server/status/StatusBarService.java Gravity.TOP Gravity.BOTTOM更改为Gravity.BOTTOM 。 frameworks/policies/base/phone/com/android/internal/policy/impl/PhoneWindowManager.java替换mDockTop = mContentTop = ...

使用safeAreaLayoutGuide没有状态栏(Using safeAreaLayoutGuide without status bar)

您可以使状态栏透明以保留空间,而不是使用prefersStatusBarHidden 。 在间距方面,这对iPhone X没有影响。 let statusBarWindow = application.value(forKey: "statusBarWindow") as? UIWindow statusBarWindow.alpha = 0.0 "statusBarWindow"实际上是私有API,因此最好像"status" + "BarWindow"类的那样将它拉开。 You could m...

iOS TableViewController在状态栏下滚动内容和导航栏(iOS TableViewController Scrolling away content and navigation bar under status bar)

在创建这种结构(表+其他元素)时,最好的方法是实际拥有一个包含TableView和其他元素(如导航)的ViewController 。 不要试图将不属于表本身的元素放在表中。 这是一个结构示例,我有意将自定义视图(在您的情况下是导航)着色为橙色。 如你所见,它在桌子之外。 这样,表的显示和滚动与其他元素完全分离。 When creating this kind of structure (table + other elements), the best approach is to actual...

状态栏下方的UIView(UIView underneath Status Bar)

你可以通过在viewDidLoad方法甚至viewWillAppear设置它来解决这个问题: self.view.frame = [[UIScreen mainScreen] applicationFrame]; 另外,我猜你最初是在隐藏你的状态栏? 或者你有它总是显示? You can fix this by setting this in your viewDidLoad method or even the viewWillAppear: self.view.frame = [[UIScr...

滚动时隐藏导航栏而不隐藏状态栏及其背景(Hide navigation bar when scrolling without hiding the status bar and its background)

请添加此方法 - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView { [[self navigationController] setNavigationBarHidden:YES animated:YES]; } 迅速 func scrollViewWillBeginDecelerating(scrollView: UIScrollView) { } please add this method - (v...

相关文章

更多

Hadoop的本地库(Native Libraries)介绍

Hadoop是使用Java语言开发的,但是有一些需求和操作并不适合使用java,所以就引入了本地库(N ...

Hadoop0.20+ custom MultipleOutputFormat

Hadoop0.20.2中无法使用MultipleOutputFormat,多文件输出这个方法。尽管0 ...

微信支付开发(11) Native支付

关键字:微信公众平台 微信支付 Native原生支付 作者:方倍工作室 原文:http://www.c ...

[译文] 恶意软件行为综述 - A View on Current Malware Behaviors

A View on Current Malware Behaviors Ulrich Bayer ...

[15] 微信公众帐号开发教程第15篇-自定义菜单的view类型(访问网页)

引言及内容概要 距离写上一篇文章《自定义菜单的创建及菜单事件响应》整整过了两个月的时间,那时公众平台还 ...

Android编程之仿微信显示更多文字的View

微信朋友圈中,如果好友发表的文字过长,会自动收缩起来,底下有提示,当点击“显示更多”时才会展开。 首先 ...

Android编程之仿微信显示更多文字的View

微信朋友圈中,如果好友发表的文字过长,会自动收缩起来,底下有提示,当点击“显示更多”时才会展开。 首先 ...

Hadoop-lzop-mater安装执行 ant compile-native tar 报错

执行 ant compile-native tar 报错 错误: error getting http ...

问个spring annotation的问题

小弟初次使用spring的annotion,有个问题非常困惑 就是如果我要在spring的conte ...

微信公众平台开发(58)自定义菜单

微信公众平台开发 微信公众平台开发模式 企业微信公众平台自定义菜单 开发教程 作者:方倍工作室 地址: ...

最新问答

更多

python的访问器方法有哪些

使用方法: class A(object): def foo(self,x): #类实例方法 print "executing foo(%s,%s)"%(self,x) @classmethod def class_foo(cls,x): #类方法 print "executing class_foo(%s,%s)"%(cls,x) @staticmethod def static_foo(x): #静态方法 print "executing static_foo(%s)"%x调用方法: a =

使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)

我认为你必须将两个TableGetway传递给UserTable构造。 你必须改变Module.php看看: public function getServiceConfig() { return array( 'factories' => array( 'User\Model\UserTable' => function($sm) { $userTableGateway = $sm->get('UserTable

透明度错误IE11(Transparency bug IE11)

这是一个渲染错误,由使用透明度触发,使用bootstrap用于在聚焦控件周围放置蓝色光环的box-shadow属性。 可以通过添加以下类覆盖来解决它。 .form-control:hover { -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,255,1); -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,255,1); box-shadow: 0px 0px 4px 0px rgba(0,0,255,1)

linux的基本操作命令。。。

ls 显示目录 mkdir 建立目录 cd 进入目录

响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)

将z-index设置为.main-nav这将解决您的重叠问题 .main-nav { position:relative; z-index:9; } set z-index to .main-nav This will fix your overlaping issue .main-nav { position:relative; z-index:9; }

在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)

这是因为模式规范"a"打开一个文件以便追加,文件指针在末尾。 如果您尝试从此处读取,则由于文件指针位于EOF,因此没有数据。 您应该打开"r+"进行阅读和写作。 如果在写入之前读取整个文件,则在写入更多数据时,文件指针将正确定位以追加。 如果这还不够,请探索ftell()和fseek()函数。 That is because the mode spec "a" opens a file for appending, with the file pointer at the end. If you

NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)

支持空中接口的数据速率是一回事。 在消除协议开销,等待eeprom写入以及所有需要时间的其他内容之后,您看到的数据速率是完全不同的故事。 长话短说,从标签读取或进行对等传输时的实际数据速率峰值约为2.5千字节/秒。 取决于具体的标签或对等技术,它可能比这慢很多。 The supported data-rates of the air-interface are one thing. The data-rate that you see after removing protocol overhe

元素上的盒子阴影行为(box-shadow behaviour on elements)

它看起来像只在Windows上的Chrome的错误。 我在Google Canary (Chrome 63)中也进行了测试,问题依然存在,所以有可能它不会很快修复。 这个问题是由overflow: auto引起的overflow: auto ,在你的情况下,它可以很容易地通过删除或设置为可见(默认)来解决。 但是 ,将鼠标悬停在右侧(顶部和底部)时,会出现滚动条。 一个解决方案可以设置overflow: hidden的身体,所以预期的结果是所需的。 我想指出,这不是一个很好的解决方案,但我建议暂

Laravel检查是否存在记录(Laravel Checking If a Record Exists)

这取决于您是否要以后与用户合作,或仅检查是否存在。 如果要使用用户对象(如果存在): $user = User::where('email', '=', Input::get('email'))->first(); if ($user === null) { // user doesn't exist } 如果你只想检查 if (User::where('email', '=', Input::get('email'))->count() > 0) { // user found

设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)

$scope.getData= function () { var reader = new FileReader(); reader.onload = $('input[type=file]')[0].files; var img = new Image(); img.src =(reader.onload[0].result); img.onload = function() { if(this.width > 640