Advertise here

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}
  1. <?php
  2. //*****************************************************************//
  3. // Pixie: The Small, Simple, Site Maker.                           //
  4. // ----------------------------------------------------------------//
  5. // Licence: GNU General Public License v3                          //
  6. // Title: Display Google Map.                                      //
  7. //*****************************************************************//
  8. $GOOGLEAPIKEY = "GOOGLEMAPSAPIKEY";
  9. ?>
  10.                                         <div id="block_google_map" class="block">
  11.                                                 <div class="block_header">
  12.                                                         <h4>Google Map</h4>
  13.                                                 </div>
  14.                                                 <div class="block_body">
  15.                                                         <div id="map_canvas"></div>
  16.                                                 </div>
  17.                                                 <div class="block_footer">
  18.                                                         <script type="text/javascript" src="http://www.google.com/jsapi?key=<? echo $GOOGLEAPIKEY; ?>"></script>
  19.                                                         <script type="text/javascript">
  20.                                                                 google.load("maps", "2", {"callback" : mapsLoaded});
  21.                                                                
  22.                                                                 function mapsLoaded() {
  23.                                                                         if (GBrowserIsCompatible()) {
  24.                                                                                 var map = new GMap2(document.getElementById("map_canvas"));
  25.                                                                                 map.setCenter(new GLatLng(37.4419, -122.1419), 13);
  26.                                                                         }
  27.                                                                 }
  28.                                                         </script>
  29.                                                 </div>
  30.                                         </div>