[TYPO3-mvc] Fluid objects inside javascript doesn't work

Fernando Arconada falcifer2001 at yahoo.es
Sun Nov 14 00:14:27 CET 2010


My fluid variable {map.zoom} inside this block of javascript doesnt work 
(doesnt return its value). Ideas? Alternative syntax?

<script type="text/javascript">
(function() {
	window.onload = function() {
		var mapDiv = document.getElementById
('map-39c3b9f0d181f0eb9e89531043148975');
		var latlng = new google.maps.LatLng(0,0);
		var options = {
			 center: latlng,
			 zoom: {map.zoom},
			 mapTypeId: google.maps.MapTypeId.ROADMAP,
			 mapTypeControlOptions: {
				style: 
google.maps.MapTypeControlStyle.DROPDOWN_MENU,
				position: google.maps.ControlPosition.TOP,
				},
			navigationControl: true,
			navigationControlOptions: {
			style: google.maps.NavigationControlStyle.ANDROID
			 }
		};
		var map = new google.maps.Map(mapDiv, options);
		// Adding a marker to the map
		var marker = new google.maps.Marker(Array);

	}
})();
</script>


More information about the TYPO3-project-typo3v4mvc mailing list