[OpenLayers-Users] Error: this.addOptions is not a function
Schneider, Thilo
T.Schneider3 at Fraport.de
Fri Aug 26 08:30:47 EDT 2011
Dear list,
I am currently trying to get OpenLayers to show a WMS-Layer. Doing this
I encounter a problem I am not able to solve. I would like to make shure
that the mistake is not mine before filling a bug report.
This is a minimal example producing the error:
<html>
<head>
<script src="../javascript/openlayers/lib/OpenLayers.js"></script>
</head>
<body>
<div style="width:100%; height:100%" id="map"></div>
<script defer="defer" type="text/javascript">
var map = new OpenLayers.Map( 'map' );
var layer = OpenLayers.Layer.WMS( "mymap",
"http://192.168.1.1/cgi-bin/mapserv",
{layers: 'buildings', map:
'map=/var/public/maps/mapfile.map'}
);
map.addLayer(layer);
map.zoomToMaxExtent();
</script>
</body>
</html>
This gives the error message
this.addOptions is not a function
using Firefox 5.0 with Ubuntu Natty.
I also could provide the corresponding mapfile, but the error looks like
JavaScript-Problems to me thus I will spare you the details as long as
nobody requests it.
Thank you for your support and ideas.
Thilo Schneider
******************************************
******************************************
Fraport AG
Frankfurt Airport Services Worldwide
60547 Frankfurt am Main
Sitz der Gesellschaft:
Frankfurt am Main
Amtsgericht Frankfurt am Main: HRB 7042
Umsatzsteuer-Identifikationsnummer: DE 114150623
Vorsitzender des Aufsichtsrates:
Karlheinz Weimar - Hessischer Finanzminister a.D.
Vorstand:
Dr. Stefan Schulte (Vorsitzender)
Herbert Mai
Peter Schmitz
Dr. Matthias Zieschang
******************************************
Diese E-Mail kann vertrauliche und/oder rechtlich geschuetzte Informationen enthalten.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
******************************************
More information about the Users
mailing list