November 24, 20223 yr Hi, for some time now my previous webviewer showing lat- lon coordinates is showing an overlay stating this website cannot be loaded correctly. I checked my api key if its working, if my google account has billing enabled and if the java is enabled. However, still the overlay persists. This is my code in the webviewer. Would anyone know what is wrong? I spent 4 hours looking but unfortunately I am not finding an answer. Thank you. SetzeVar ( [ lat = Readasurlencoded ( lat ); lng = Readasurlencoded ( lon )) ]; "<!DOCTYPE html> <html> <head> <title>Simple Map</title> <meta name=\"viewport\" content=\"initial-scale=1.0\"> <meta charset=\"utf-8\"> <style> /* Always set the map height explicitly to define the size of the div * element that contains the map. */ #map { height: 100%; } /* Optional: Makes the sample page fill the window. */ html, body { height: 100%; margin: 0; padding: 0; } </style> </head> <body> <div id=\"map\"></div> <script> var map; function initMap() { var myLatLng = {lat: " & lat &", "&"lng: "& lng &"}; map = new google.maps.Map(document.getElementById('map'), { center: myLatLng, zoom: 17 }); var marker = new google.maps.Marker({ position: myLatLng, map: map, title: 'Hello' }); } </script> <script src=\"https://maps.googleapis.com/maps/api/js?key=" & MYAPIKEY & "&callback=initMap\" async defer></script> </body> </html>"
November 25, 20223 yr This looks to be a recent and helpful thread. https://community.claris.com/en/s/question/0D53w00005n68bBCAQ/google-maps-in-web-viewer-confused-by-all-the-options-grateful-for-a-really-clear-tutorial-or-similar-please
November 30, 20223 yr Author Thank you! I did see that post on the community forum. If I use the code and open the map via Filemaker or Filemaker Go, the website displays fine, however on Chrome, Firefox and Safari on web direct, it only renders a while rectangle. I am unfortunately stuck.
December 3, 20223 yr https://community.claris.com/en/s/question/0D50H00006h9GmBSAU/webviewers-in-webdirect
Create an account or sign in to comment