[TYPO3] Center a Typoscript Object
rupali.ffm at googlemail.com
rupali.ffm at googlemail.com
Mon Sep 15 16:56:11 CEST 2008
in case u dont want to do it with wecmap extensiion, i added google map with
javascript, like this..works fyn:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example</title>
<script src="
http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAIB7WVzMjcHdWHA6d5DegahSlOyk0sE_kk7q6HorHrmz0aU2GbhQ8SEvBtJRKGSesMSWbg4_n1tr9RQ
"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px"></div>
</body>
</html>
On Mon, Sep 15, 2008 at 4:21 PM, Sergio Catalá Gil <scatala at iti.upv.es>wrote:
> > Hi!
> >
> > Sergio Catalá Gil wrote:
> > how could I center on the page a TypoScript Object (created with the
> > "tscobj" extension)?
> >
> > By using CSS style in wrap?
>
> But, what if this object is not the usual (TEXT, IMAGE, etc) but a
> plugin? The object I want to center (lib.mymap) is a Google map created
> with the extension wec_map. My TS config is:
>
>
> lugin.tx_wecmap_pi1 {
> apiKey = xxxxxx
> height = 300
> width = 500
> showDirections = 1
> prefillAddress = 0
> initialMapType = G_NORMAL_MAP
> controls.mapControlSize = zoomonly
> controls.showOverviewMap = 0
> controls.showMapType = 0
> controls.showScale = 0
> showSideBar = 0
> maxAutoZoom = 17
> }
>
> lib.mymap < plugin.tx_wecmap_pi1
>
> lib.mymap {
> zoomLevel = 12
> maxAutoZoom = 12
> centerLat = xxx
> centerLong = xxx
> }
>
> I can't find any reference to wrap with this kind of object. Sorry for
> my poor knowledge of Typoscript.
>
> Thanks,
> Sergio
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list