Hi there
I want to display a map in a webwiev (or WkWebWiev) with the following html code.
All I get is a blank webview. No error messages neither in B4i log nor in system log on my Mac.
I'm using this line:
So my questions are: how to get the error messages? and how to display a map in (Wk)WebWiev?
I want to display a map in a webwiev (or WkWebWiev) with the following html code.
Html for Openstreetmap:
<!DOCTYPE HTML>
<title>OpenLayers Simplest Example</title>
<div id='demoMap' style='height:250px'></div>
<script src='https://www.openlayers.org/api/OpenLayers.js'></script>
<script>
map = new OpenLayers.Map('demoMap');
map.addLayer(new OpenLayers.Layer.OSM());
map.zoomToMaxExtent();
</script>
I'm using this line:
WebWiev with html string:
WKWebView1.LoadHtml("<!DOCTYPE HTML> <title>OpenLayers Simplest Example</title> <div id='demoMap' style='height:250px'></div> <script src='https://www.openlayers.org/api/OpenLayers.js'></script>")