Permalink - http://pastebin.ws/e01rf6 - PHP - 86.11.xx.xx - Posted January 11, 2009, 4:09 am
Validate HTML - Validate CSS
Reply tree
- e01rf6 - 1 year, 4 weeks, 1 day, 12 hours, 27 minutes ago - by 86.11.xx.xx
- 98nmth - 1 year, 1 week, 5 days, 19 hours, 20 minutes ago - by 81.133.xx.xx
- 5dg12g - 11 months, 1 week, 27 minutes ago - by 64.255.xx.xx
- 2iv8ql - 11 months, 1 week, 27 minutes ago - by 64.255.xx.xx
- 7trh2q - 3 months, 3 weeks, 5 days, 6 hours, 53 minutes ago - by 84.126.xx.xx
- kdutd - 2 months, 2 weeks, 6 days, 11 hours, 18 minutes ago - by 71.250.xx.xx
- 9ezl4w - 2 months, 2 weeks, 6 days, 11 hours, 18 minutes ago - by 71.250.xx.xx
- 3bfp39 - 1 week, 5 days, 14 hours, 19 minutes ago - by 200.222.xx.xx
- 64qlyi - 6 days, 6 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>