[Chameleon] Resizeable Map - my next prob

Peter Thomann pameleon at gmx.de
Tue Mar 15 06:13:19 EST 2005


I tried to parse a variable to the template file that defines the width and
height of my displayed map. this doesn't work isn't it possible to include
php code in the template file?
is there another way to solve this problem any solutions are welcome
i only need a few sizes or is it even possible to have a easy - like window
resize - function.
<td align="center">
	<?php
		$size = "640x480";
		$size_array = explode("x",$size);
		$size_width = $size_array[0];
		$size_height = $size_array[1];
	?>
	<CWC2 TYPE="MapDHTML"
		VISIBLE="true"
		<?php
			echo "WIDTH=\"$size_width\"\n";
			echo "HEIGHT=\"$size_height\"\n";
		?>
		ALLOWRESIZE="true"
		MARQUEECOLOR="#FF3333"
		MARQUEEWIDTH="2"
		MINSCALE="1"
	/>
</td>

-- 


SMS bei wichtigen e-mails und Ihre Gedanken sind frei ...
Alle Infos zur SMS-Benachrichtigung: http://www.gmx.net/de/go/sms


More information about the Chameleon mailing list