Hi,<br><br>I am a fairly new user to OpenLayers, and this is my project aims :<br><br>- Want to create a Basemap of streets which is a Vector layer and loading it as a MapServ Layer<br>* create a start / end point<br>* create the route
<br><br>(* are not yet started)<br><br>I am having a problem since after going through the Javascript docs, I fixed many of my syntax errors, but am still plagued with this one : <br><br>this.div has no properties<br>callback("basemap", Object)OpenLayers.js (line 464)
<br>Class()OpenLayers.js (line 57)<br>init()openl.html (line 24)<br>onload(load )openl.html (line 1)<br>[Break on this error] this.active=false;return true;},callback:function(name,args){if(this.callbacks[n...<br><br>Error found @
OpenLayers.js (line 464) .. Error reporting by FireBug of FireFox<br><br>The code I am working upon is a mix of viewsourcing some pages and the tutorials : <br><br><html><br><head><br> <title>OpenLayers Example</title>
<br> <script src="<a href="http://yancho.no-ip.org/~yancho/OpenLayers.js">http://yancho.no-ip.org/~yancho/OpenLayers.js</a>"></script><br><br><br> <script defer="defer" type="text/javascript">
<br> function init(){<br> var options =<br> {<br> maxExtent: new OpenLayers.Bounds(625102.34974933861,215593.742071 ,656343.383138 ,239014.742071
),<br> maxResolution: 302051/1024,<br> zoom: 2,<br> projection: "WGS84",<br> 'controls': [],<br> units: "m",
<br> numZoomLevels: 12<br> };<br> var map = new OpenLayers.Map("basemap", options);<br> var options2 =<br> ( {name : "Streets Layer"},
<br> {url : "<a href="http://yancho.no-ip.org/~yancho/cgi-bin/mapserv">http://yancho.no-ip.org/~yancho/cgi-bin/mapserv</a>"},<br> {params : "\\home\\yancho\\public_html\\nc\\sample.map"},
<br> {options : []}<br> );<br> map.addLayer (new OpenLayers.Layer.MapServer("streets", options2));<br><br> }<br><br> </script>
<br> </head><br><body onload="init()"><br><div style="width:800px;height:600px" id="map"></div><br><br></html><br><br>If you want the code with syntax highlighted you can go here :
<a href="http://pastebin.com/f218a9fc9">http://pastebin.com/f218a9fc9</a><br><br><br>I would be extremely happy if you manage to point me to any errors I am doing, and maybe some other reading I should do.<br><br>Thanks alot for your time in reading my post
<br><br><br>Regards<br><br><br>Matthew<br><br>-- <br>Matthew Pulis<br>URL : <a href="http://www.solutions-lab.net">http://www.solutions-lab.net</a><br>MSN : pulis_matthew[@]hotmail.com<br>ICQ : 145951110<br>Skype : <a href="http://solutions-lab.net">
solutions-lab.net</a>