summaryrefslogtreecommitdiff
path: root/map_prepare.php
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-05-08 22:59:04 +0100
committerComment <tim@gray.(none)>2013-05-08 22:59:04 +0100
commit4f81e9399051cc90ccddeb69b785d7422a28a1ff (patch)
treeea5187184ed61114b9315371e5c2d709bdf26c4f /map_prepare.php
initial commit
Diffstat (limited to 'map_prepare.php')
-rwxr-xr-xmap_prepare.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/map_prepare.php b/map_prepare.php
new file mode 100755
index 0000000..288f104
--- /dev/null
+++ b/map_prepare.php
@@ -0,0 +1,19 @@
+
+
+
+<script type="text/javascript">
+ var G=google.maps;
+ <?php echo"startsearch='".$search."';\n";?>
+ <?php echo"startmenu='".$menu."';\n";?>
+ <?php echo"startmarkers='".$markers."';\n";?>
+
+
+ //security flags for js
+ <?php echo "EDITABLE=".$editable."\n";?>
+ <?php echo "DEBUG=".$debug."\n";?>
+ <?php echo "STARTPOS=new G.LatLng(".$startlat.",".$startlng.")\n";?>
+ // Pass any POST variables to Javascript, which are then used in maps-extra.js
+ var search_posted = '<?php echo $_GET['q']; ?>';
+ var quicklinks_posted = '<?php echo $quicklinks_posted; ?>';
+ var submit_the_query_form = false;
+</script> \ No newline at end of file