Permalink - http://pastebin.ws/98nmth - PHP - 81.133.xx.xx - Posted January 27, 2009, 9:16 pm
Validate HTML - Validate CSS
Reply tree
- e01rf6 - 1 year, 2 months, 2 days, 6 hours, 27 minutes ago - by 86.11.xx.xx
- 98nmth - 1 year, 1 month, 2 weeks, 1 day, 23 hours, 19 minutes ago - by 81.133.xx.xx
- 5dg12g - 1 year, 1 week, 3 days, 4 hours, 27 minutes ago - by 64.255.xx.xx
- 2iv8ql - 1 year, 1 week, 3 days, 4 hours, 26 minutes ago - by 64.255.xx.xx
- 7trh2q - 4 months, 4 weeks, 1 day, 10 hours, 52 minutes ago - by 84.126.xx.xx
- kdutd - 3 months, 3 weeks, 2 days, 15 hours, 17 minutes ago - by 71.250.xx.xx
- 9ezl4w - 3 months, 3 weeks, 2 days, 15 hours, 17 minutes ago - by 71.250.xx.xx
- 5nniq - 2 weeks, 5 days, 5 hours, 5 minutes ago - by 200.32.xx.xx
- 64qlyi - 1 month, 1 week, 2 days, 10 hours, 1 minute ago - by 94.224.xx.xx
Google Maps Block in Pixie (http://www.getpixie.co.uk/). Set the map canvas size in CSS: #map_canvas {width: 200px; height: 200px}
- <?php
- //*****************************************************************//
- // Pixie: The Small, Simple, Site Maker. //
- // ----------------------------------------------------------------//
- // Licence: GNU General Public License v3 //
- // Title: Display Google Map. //
- //*****************************************************************//
- $GOOGLEAPIKEY = "GOOGLEMAPSAPIKEY";
- ?>
- <div id="block_google_map" class="block">
- <div class="block_header">
- <h4>Google Map</h4>
- </div>
- <div class="block_body">
- <div id="map_canvas"></div>
- </div>
- <div class="block_footer">
- <script type="text/javascript" src="http://www.google.com/jsapi?key=<? echo $GOOGLEAPIKEY; ?>"></script>
- <script type="text/javascript">
- google.load("maps", "2", {"callback" : mapsLoaded});
- function mapsLoaded() {
- if (GBrowserIsCompatible()) {
- var map = new GMap2(document.getElementById("map_canvas"));
- map.setCenter(new GLatLng(37.4419, -122.1419), 13);
- }
- }
- </script>
- </div>
- </div>