在原生反应中使用Mapbox上的以下视图呈现自定义注释(Rendering custom annotation with following view on Mapbox in react native)
我如何使用React Native中的Mapbox和Annotations来实现这一点。 我试图嵌套注释,渲染为折线,但没有得到所需的结果。 任何人都可以帮助解决这个问题吗?
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
满意答案
几个脸掌心后,这一切都归结为缺乏这一行代码:
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 theUISearchController
.
相关问答
更多状态栏和导航栏出现在iOS 7的视图范围之内(Status bar and navigation bar appear over my view's bounds in iOS 7)
搜索结果可见地在状态栏下滚动(Search Results Visibly Scrolling Underneath the Status Bar)
CoordinatorLayout + CollapsingToolbarLayout在状态栏下方滚动(CoordinatorLayout + CollapsingToolbarLayout scrolling underneath the status bar)
点击状态栏时间(Tap Status Bar Time)
半透明状态栏没有导航栏(Translucent Status Bar with No Navigation Bar)
移动Android状态栏(Move the Android Status Bar)
使用safeAreaLayoutGuide没有状态栏(Using safeAreaLayoutGuide without status bar)
iOS TableViewController在状态栏下滚动内容和导航栏(iOS TableViewController Scrolling away content and navigation bar under status bar)
状态栏下方的UIView(UIView underneath Status Bar)
滚动时隐藏导航栏而不隐藏状态栏及其背景(Hide navigation bar when scrolling without hiding the status bar and its background)
相关文章
更多Hadoop的本地库(Native Libraries)介绍
Hadoop0.20+ custom MultipleOutputFormat
微信支付开发(11) Native支付
[译文] 恶意软件行为综述 - A View on Current Malware Behaviors
[15] 微信公众帐号开发教程第15篇-自定义菜单的view类型(访问网页)
Android编程之仿微信显示更多文字的View
Android编程之仿微信显示更多文字的View
Hadoop-lzop-mater安装执行 ant compile-native tar 报错
问个spring annotation的问题
微信公众平台开发(58)自定义菜单
最新问答
更多python的访问器方法有哪些
使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
透明度错误IE11(Transparency bug IE11)
linux的基本操作命令。。。
响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)
在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)
NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)
元素上的盒子阴影行为(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
Copyright ©2023
peixunduo.com All
Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!
Laravel检查是否存在记录(Laravel Checking If a Record Exists)
设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!