Start a new topic

Google maps polylines not displaying

I have an HTML page with Google maps polylines which works perfectly in Chrome, but does not work when using the HTMLDrawables object in Wikitude 8.2 Javascript SDK.

Polyline...

var route = new google.maps.Polyline({
path: [],
geodesic : true,
strokeColor: color,
strokeOpacity: 1.0,
strokeWeight: 2,
editable: false,
map: map,
zIndex: globalZIndex++
});

htmldrawable.js

var mapHTML = new AR.HtmlDrawable({
uri: "assets/lol_map.html"
}, 1, {
scale: 2,
viewportHeight: 480,
viewportWidth: 480,
backgroundColor: "#FFFFFF",
horizontalAnchor: AR.CONST.HORIZONTAL_ANCHOR.CENTER,
verticalAnchor: AR.CONST.VERTICAL_ANCHOR.MIDDLE,
clickThroughEnabled: true,
allowDocumentLocationChanges: false,
onDocumentLocationChanged: function onDocumentLocationChangedFn(uri) {
AR.context.openInBrowser(uri);
},
onError: World.onError
});




Login or Signup to post a comment