Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Ionic 3 - list / detail with google map problem only in Safari Browser

$
0
0

@martinmildner wrote:

I am having a strange problem:

I am using a list and detail page, each includes a google map (via Javascript API).

When opening the detail page for the first time, going back via “Back-Button” works just fine. When I do the same thing for the second time, Ionic opens the list page for a few milli seconds and then sets the detail page as the root page.

Does anyone have an idea what the problem might be?
Thanks a lot for your help!!!

Code on the detail page is straight forward:

declare var google;
...
@ViewChild('mapdetail') mapElement: ElementRef;
...
viewDidLoad()
{
this.initMap();
}
...
initMap () {
this.mapdetail = new google.maps.Map (this.mapElement.nativeElement, {
                center: startPosition,
                zoom: 15
                mapTypeId: 'roadmap'
            }
        );
}
...

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles