Hello all.
Xojo 2026 R1.1.
I am trying to open this file in a web app using this code which is in the page open event:
Var HTMLFile As FolderItem
htmlfile = GetFolderItem("C:/Git Repository/Wall App/WallMap.html", 0)
If HTMLFile <> Nil And HTMLFile.Exists Then
Var HTML As String
Try
Var HTMLInput As TextInputStream = TextInputStream.Open(HTMLFile)
HTML = HTMLInput.ReadAll
HTMLInput.Close
Catch E As IOException
HTML = "<html><body><h1>Error Loading Map File.</h1></body></html>"
End Try
MapViewer.LoadHTML(Html)
Else
MapViewer.LoadHTML("<html><body><h1> Map File not found.</h1></body></html>")
End If
WallMap.zip (4.2 KB)
It opens, however the objects shown are not the same as when I simply use a browser to load it. Can anyone suggest the correct way to do this?
Thank you,
Tim