Hi everyone
I'd like to use the API in an ionic-project. But i ran into a strange behaviour:
It works, as long as the id="map"-div is NOT inside an <ion-content>-element. If it is inside a <ion-content>-element, no layers are created/added.
E.g. this works:
<ion-header>
<ion-toolbar>
<ion-title>My Title</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
</ion-content>
<div style="width: 360px; height: 180px;" id="map">
</div>
this doesn't:
<ion-header>
<ion-toolbar>
<ion-title>My Title</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<div style="width: 360px; height: 180px;" id="map">
</div>
</ion-content>
Since the id="map"-div gets populated with ol-viewport in both cases, I assume the script finds the div in both cases.
Also, I don't see any "Forbidden" responses.
Has anyone ever seen this behaviour? Do you know how to resolve it?
Kind regards,
Olivier Stuker