App Connect Geo Location Support Product Page

What are the php requirements for this feature?

Asked 28 Mar 2018 02:19:41
1
has this question
28 Mar 2018 02:19:41 Don Johnson posted:
I have created a php page from the example for the app connect and can not get geolocation working in appconnect google maps.

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script type="text/javascript" src="dmxAppConnect/dmxAppConnect.js"></script>
<script type="text/javascript" src="dmxAppConnect/dmxGeolocation/dmxGeolocation.js"></script>
<script type="text/javascript" src="dmxAppConnect/dmxGoogleMaps/dmxGoogleMaps.js"></script>
<script type="text/javascript" src="maps.googleapis.com/maps/api/js?key=xxx"></script>
</head>

<body id="index" is="dmx-app">
<dmx-geolocation id="geo1" enable-high-accuracy="true" tracking="true" dmx-on:success="geo1.getCurrentPosition()"></dmx-geolocation>
<dmx-google-maps id="maps1" dmx-bind:latitude="geo1.coords.latitude" dmx-bind:longitude="geo1.coords.longitude">
<dmx-google-maps-marker id="marker1" dmx-bind:latitude="geo1.coords.latitude" dmx-bind:longitude="geo1.coords.longitude"></dmx-google-maps-marker>
</dmx-google-maps>

</body>
</html>

Replies

Replied 28 Mar 2018 23:45:27
28 Mar 2018 23:45:27 Don Johnson replied:
Actually I see the demo is .html. Really not sure whats at issue here. My html seems the same and im not getting any js errors.
Replied 02 Apr 2018 12:25:57
02 Apr 2018 12:25:57 Don Johnson replied:
This might be related to depreciated calls using non ssl. going to put a certificate on this and try agian.
Replied 02 Apr 2018 21:18:59
02 Apr 2018 21:18:59 Don Johnson replied:
yeah sorry guys. Looks like user error. Turns out that unless you localhost or use h t t p s : / /
"
thanks for your time.

this can be marked resolved.

Reply to this topic