Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>You asked for more control over appearance</h2> <p>Check out the <a href="http://geocommons.com/tour" rel="nofollow">Geocommons</a> <a href="http://geocommons.com/help/Javascript_API" rel="nofollow">JS api</a>, which may be more suited to your purpose than Google Maps.</p> <p>If you're going for flexibility, <a href="http://trac.osgeo.org/geos/" rel="nofollow">GEOS</a> would be preferable to drawing the shape for a specific projection. <a href="http://osgeo-org.1803224.n2.nabble.com/PHP-binding-ready-td5217024.html" rel="nofollow">I know there are php bindings</a>, but I haven't used them myself.</p> <p>Helmer Aslaksen has a great writeup about <a href="http://www.math.nus.edu.sg/aslaksen/gem-projects/hm/0304-1-66-sun_and_architecture.pdf" rel="nofollow">heavenly mathematics</a> that should help you create an alorithm to draw a sunlit-area polygon using geos. You can test your code against <a href="http://aa.usno.navy.mil/data/docs/RS_OneYear.php" rel="nofollow">measured sunrise/sunset times</a> for accuracy.</p> <h2>Edit 1</h2> <p>Must be Python and Google Maps, you say?</p> <ul> <li>You can <a href="http://code.google.com/apis/kml/documentation/" rel="nofollow">overlay data with KML</a>,</li> <li>which will allow you to <a href="http://code.google.com/apis/kml/documentation/kmlreference.html#bgcolor" rel="nofollow">set a background color</a> as you request.</li> <li>I like using the <a href="http://kml-samples.googlecode.com/svn/trunk/interactive/index.html" rel="nofollow">interactive sampler</a> to get a feel for how things will look.</li> <li>Check out the <a href="http://pypi.python.org/pypi/Shapely" rel="nofollow">Shapely package on pypi</a>,</li> <li>and a <a href="http://lists.gispython.org/pipermail/community/2009-April/002036.html" rel="nofollow">discussion</a> on how to create kml from it.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload