This topic is locked

open map with button

3/21/2017 4:11:21 AM
PHPRunner General questions
ffrinai author

Hi,

i'd like to open a map in list page with a button.

I try with this in custom view:
$coordinate=$data["latitudine"].",".$data["longitudine"];

$value = "<input type='button' value='MAP' onclick=\"window.open('http://maps.googleapis.com/maps/api/staticmap?center=".$coordinate."&zoom=18&size=400x400&sensor=thrue','MAP','status = 1, height = 400, width = 400, resizable = 1'); return false;\"/>";
but this is static map.

How is possible to open the same map defined in list page "view as" Map with my Button in custom view?

thanks

Fabio
phprunner 9.6 enterprise build 27286 x64