Witam,
Korzystam z RCP/RAP api, mapa z biblioteki OpenLayers 3, kod wygląda następująco:
mapView_Browser = new Browser(parent, SWT.MULTI);
mapView_Browser.setVisible(true);
mapView_Browser.setEnabled(true);
mapView_Browser.setJavascriptEnabled(true);
mapView_Browser.setUrl("GMap.html");
skrypt:
var map = new ol.Map({
target: 'map',
layers: [
new ol.layer.Tile({
source: new ol.source.MapQuest({layer: 'sat'})
})
],
view: new ol.View({
center: ol.proj.transform([0.41, 0.82], 'EPSG:4326', 'EPSG:3857'),
zoom: 4
})
});
html:
<html lang="en">
<head>
<link rel="stylesheet" href="ol.css" type="text/css">
<style>
.map {
height: 800px;
width: 100%;
}
</style>
<script src="ol.js" type="text/javascript"></script>
<title>OpenLayers 3 example</title>
</head>
<body>
<h2>ssss</h2>
<div id="map" class="map"></div>
<script type="text/javascript" src="olMapScript.js"></script>
</body>
</html>
Mianowicie komponent browser nie wyświetla mi mapy, a żeby cokolwiek ruszyć dalej z projektem potrzebna jest mi wizualizacja. Jakieś pomysły?
Dodam, że po otwarciu html'a w chrome mapa jest wyświetlana bez zarzutu.