mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 07:06:38 +02:00
geo_distance by geo_fencing
This commit is contained in:
parent
d928abe0ec
commit
e79c8f1894
5 changed files with 20 additions and 8 deletions
|
@ -58,6 +58,10 @@ sub tpl(){
|
|||
|
||||
require "Mod/KMLout.pm";
|
||||
my $kmlfile = Mod::KMLout::kmlGenerator($api_return,$varenv,$users_sharee);
|
||||
my $filesize = -s "$varenv->{metahost}/xml/$kmlfile";
|
||||
my $preserve_view = "false";
|
||||
$preserve_view = "true" if($filesize < 200);#it's like empty without publixc stations
|
||||
|
||||
print "<div style='background-color:#cccccc;width:100%;margin-top:40px;'>\n";
|
||||
print "$initMap|$varenv->{dbname}|$api_return->{authcookie}|$users_sharee->{c_id}|$kmlfile" if($users_dms->{u_id} == $dbt->{copri_conf}->{superu_id});
|
||||
|
||||
|
@ -76,7 +80,7 @@ print<<EOF
|
|||
|
||||
var ctaLayer = new google.maps.KmlLayer({
|
||||
position: map.getCenter(),
|
||||
//preserveViewport: true,
|
||||
preserveViewport: $preserve_view,
|
||||
//url: '$dbt->{primary}->{sharee_primary}->{primaryApp}/KMLout?kml=' + (new Date()).getTime() + '$users_sharee->{c_id}',
|
||||
//url: '$varenv->{metahost}/xml/KMLout-3',
|
||||
//url: '$varenv->{wwwhost}/?kml=' + (new Date()).getTime(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue