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
});




1 Comment

Hi Jamie,


Again, sorry for the late response.


Cannot give you a clear answer without testing your example. May i ask you to send me the necessary files ( .htmls and .js) so i could try to reproduce your error? I also would need some kind of log so i can compare.


Thank you,


Aitor.

Login or Signup to post a comment