简体   繁体   English

AngularJS和Google Maps-iOS上无法识别标记上的链接

[英]AngularJS and Google Maps - Links on Markers don't recognized on iOS

I have an app which loads a map of Google Maps with a set of markers. 我有一个可加载带有一组标记的Google Maps地图的应用。 I have set in each bubble of the markers the html with a link pointing a route (relative url) like this: #/page/:id . 我在标记的每个气泡中都设置了html,并带有指向路线的链接(相对网址),如下所示: #/page/:id In android, on touch, the links works perfect. 在android上,触摸时,链接可以完美运行。 But in iOS the links don't work and I cannot enter the url of the link. 但是在iOS中,链接不起作用,我无法输入链接的网址。 It does nothing, throws no error (I am inspecting with Safari web inspector) and don't navigate. 它什么也不做,不会引发任何错误(我正在使用Safari Web检查器进行检查)并且不会导航。

HTML Code of the markers: 标记的HTML代码:

var content = "<div class='globo_mapa'>
    <div style='max-width: 33%'>
        <img src='"+servicio.service_data[0].picture+"' />
    </div>
    <div style='max-width: 66%'>
        <h3>"+servicio.service_data[0].nombre+"</h3> " + servicio.service_data[0].descripcion+"
    </div>
    <a href='#/dashboard/unique/"+servicio.id_servicio+"'>Ver Servicio</a>  
</div>";

Route: 路线:

.state('dashboard.unique', {
        url:'/unique/:id',
        cache: false,
        resolve: {
          auth: function resolveAuthentication(AuthResolver) {
            return AuthResolver.resolve();
          }
        },
        views: {
          'menuContent': {
            templateUrl: 'closerViews/dashboard/uniqueservice.html',
            controller: 'uniqueController'
          }
        }
    })

Is this an iOS feature? 这是iOS功能吗? Do I have to do something special for this to work in iOS? 我必须要做一些特殊的事情才能在iOS中工作吗?

I solved the issue. 我解决了这个问题。 There is a bug with iOS 9.x solved in angular and ionic last version. iOS 9.x的一个错误已在角度和离子的最新版本中解决。 If you are having this issues, like an infinite digest, it is solved updating your angular libraries. 如果您遇到此问题(例如无限摘要),则可以通过更新角度库来解决。

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

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