<div dir="ltr">Iam working on a django admin interface.<div><br></div><div>i have my<b> google.js</b> that extends the <b>open layers.js</b></div><div><br></div><div>#<b> google.js</b></div><div><br></div><div><div><i>{% extends "gis/admin/openlayers.js" %}</i></div>
<div><i>{% block base_layer %}new OpenLayers.Layer.Google("Google Hybrid", {type: google.maps.MapTypeId.HYBRID});{% endblock %}</i></div></div><div><i><br></i></div><div><i><br></i></div><div>how do i add the following layers to my <b>google.js</b> and have an alternative to load which ever layer i want as a base layer:</div>
<div><i><br></i></div><div><div><i>new OpenLayers.Layer.Google("Google Satellite", {type: google.maps.MapTypeId.SATELLITE});</i></div><div><i>new OpenLayers.Layer.Google("Google Hybrid", {type: google.maps.MapTypeId.HYBRID});</i></div>
<div><i>new OpenLayers.Layer.Google("Google Streets", {type: google.maps.MapTypeId.STREETS});</i></div><div style="font-style:italic"><br></div></div><div style="font-style:italic"><br></div><div>my <b>google.html</b> looks like this:</div>
<div><i><br></i></div><div>#<b> google.html </b><i><br></i></div><div><b><br></b></div><div><div><i>{% extends "gis/admin/openlayers.html" %}</i></div><div><i>{% block extrastyle %}{{ block.super }}</i></div><div>
<i><style type="text/css">v\:* {behavior:url(#default#VML);}</style></i></div><div><i>{% endblock %}</i></div><div><i>{% block openlayers %}{% include "admin/google.js" %}{% endblock %}</i></div>
<div><i><br></i></div><div><i><br></i></div><div>Any python django (geodjango) devs please help !!</div><div><i><br></i></div><div>Regards,</div><div><i><br></i></div><div><div style="font-style:italic"><b>Diego Madanga</b></div>
<div>GIS Developer/Technologist</div><div> BSc (Hons) Surveying and Geomatics</div><div>Lidwala Consulting Engineers </div><div>P.O. Box 2930 </div>
<div>Nelspruit, 1200 </div><div><br></div><div>Tel: 0861 LIDWALA / 0861 543 9252</div><div>Fax: 086 585 1536</div><div>Cell: 0715 933 760</div><div>email: <a href="mailto:dmadanga@lidwala.com">dmadanga@lidwala.com</a></div>
<div>Web: <a href="http://www.lidwala.com">www.lidwala.com</a></div><div style="font-style:italic"><br></div></div><div><i><br></i></div><div><br></div><div><i><br></i></div><div><i><br></i></div><div style="font-weight:bold">
<br></div></div><div><b><br></b></div></div>