I confirmed it works (on Windows7), but prefer adding scheme "data:text/html," before your code.
It looks the behavior without scheme had changed.
Help in FM14 says
and "If you" sentence is removed from FM15, on Windows working as if there is data: (open temp file fm....htm) without description.
Hello Malcom, thank you for your comment but I think I might misunderstand you. Replacing double quotes with single quotes is easy enough but what do you mean by '... then put pasted that between double quotes ...'?
I tried to quote everything between double quotes: "<!doctype html .... </html" but that resulted in the text "Loading..." in the bottom of the webviewer or an informational screen with the text "The address is not valid.
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x --> <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
So now I have
And that works for me, more or less.
So, polyfill seems to translate some things so the user agent from the webviewer can render the map but reading the replies above it must be possible without. I'm tempted to mark it as answered but it this is not THE answer, more of a work around...
for the moment it will do.
Next step is to figure out how to render multipolygons read from my gis database. I'll keep you posted, thanks for your replies.
2 of 2 people found this helpful
It is IE emulation version problem, so there is another solution.
Adding a line in <header> section.
<meta http-equiv='x-ua-compatible' content='ie=edge'/>
(I'd already edited windows registry for same effect)
Great! This meta header works!
So now the first part of the file reads:
"<!DOCTYPE html> <html> <head> <meta http-equiv='x-ua-compatible' content='ie=edge'/> <title>Clickable afdelingen KDHL</title> <link rel='stylesheet' href='https://openlayers.org/en/v4.1.0/css/ol.css' type='text/css' /> </head> <body> and so on and so on ...
This weekend I learned that filemaker uses the browser from the underlaying operating system so behaviour of one and the same filemaker solution using webviewer can vary between iOS and windows.
This complicates matter as I develop on a windows7 desktop but my solution will be used from iPad, but hey, if it was easy, everybody would be doing it ...
2 of 2 people found this helpful
but hey, if it was easy, everybody would be doing it ...
Add to the variations in the browsers, the 'ways of the web' change... daily sometimes is seems.
Test your browser(s):
When I host the geojson on an external server the map works and shows the polygons (but unfortunately my clients don't have cellphone coverage when in the middle of the woods) So I want to read the geojson locally as well.
Why can't I get the geojson to display in the custom function in the webviewer? I'm confused and would very much appreciate your input.
170607_clean_fubr.fmp12.zip 230.3 K
I haven't got why the function does not work, but it downloads map from openstreetmap.org then wouldn't work without internet access.
But in openlayers it must be possible to use locally stored tiles so the next step would be to get those tiles locally (preferrably in FM) so I can read them.
I read a book from packt publishers in which creating tiles and georeferencing those tiles is talked about, (openlayers 3.x beginners guide) Alas the book is somewhat outdated as openlayers is in active development, still a valuable read.
For the moment my foresters would be happy to see the polygons without basemap as it would help them to know in which polygon they are.
Thanks for your response!