Login   Register  
PHP Classes
elePHPant
Icontem

MapBuilder & TinyBox2

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Map Builder  >  All threads  >  MapBuilder & TinyBox2  >  (Un) Subscribe thread alerts  
Subject:MapBuilder & TinyBox2
Summary:How to get them to play nice?
Messages:2
Author:Geoffrey Reiss
Date:2013-09-03 16:58:55
Update:2013-09-03 20:40:54
 

  1. MapBuilder & TinyBox2   Reply   Report abuse  
Picture of Geoffrey Reiss
Geoffrey Reiss
2013-09-03 16:58:55
Hi-

I'm trying to put a MapBuilder map -- example 1 (ex1.php) -- into a TinyBox2 div...triggered by a 'Show map' button on my page.

ex1.php runs fine solo...but when I invoke it from a TinyBox2 call, I get nothing -- the space is allocated for the map, but the map doesn't show....& the code seems to show that there is no mapping code.

I've altered $map->show(); five different ways to:

$map->show(false);
$map->show(true);
$var = $map->show(); echo $var;
$var = $map->show(false); echo $var;
$var = $map->show(true); echo $var;

I've tried callong TINY.box.show as an ajax call and as an iframe, neither of which display the mapů

Any ideas of what I need to do to get MapBuilder to output to a TinyBox2 div?

Thnx in advance,

-G

  2. Re: MapBuilder & TinyBox2   Reply   Report abuse  
Picture of Vagharshak Tozalakyan
Vagharshak Tozalakyan
2013-09-03 20:40:54 - In reply to message 1 from Geoffrey Reiss
Hi, the following should work:

TINY.box.show({iframe:'ex1.php',width:620,height:620})