[OpenLayers-Users] Proj4js and IE

Damien Lécole damien.lecole at gmail.com
Fri Jun 20 11:25:12 EDT 2008


Hi,

I have found the solution : I was misssing to include the definition file of
my projection in the HTML file :thinking:. Since it was working with
Firefox, I thought that the definition file was automatically included by
pro4js.js. It seems that's not the case. So I just have to add this line :
<script src="../OL/proj4js/defs/EPSG27582.js"></script> in the following
code : 

<html debug="true">
<head>
	<title>Présentation des capacités d'OpenLayers</title>
	<link rel="stylesheet" href="../OL/OpenLayers-2.6/theme/default/style.css"
type="text/css"/>

<script src="../OL/OpenLayers-2.6/lib/OpenLayers.js"></script>
<script src="../OL/proj4js/proj4js.js"></script>
<script type="text/javascript" src="essai_init.js"></script>
<script language="javascript" type="text/javascript"
src="firebug/firebug.js"></script>

<script type="text/javascript">		
		var map = null;
		var mysqlv = null;
		var travaux = null;
		var dessin = null;
		var mysqlf = null;
		var popup, info = null;
		var modif = null;
		var position = null;
		var nom, etat, com = null; // récupération de valeur de popup
		/*var panel,downtown,draggable,mysqlf,position,style_red,dessin;
		var osm_wms,mysqlv,mysqlv_ba,markers;
		var drags,drags_ba,modif,modif_ba;
		var popup,poulet;
		var icon_ec,icon_tra;*/
</script>

</head>


<body onload="initialisation()">

	<div id="id_search">
		<textarea id="in_search" rows=2></textarea>
		<button type="button" onclick="cherche_ajax()">Chercher</button> 
	</div>
	<div id="map"></div>
	<div id="edit" class="olControlEditingToolbar"></div>
	<input type="checkbox" id="modif" onclick="modifier()" /> <label
for="modif">Modifier une feature</label>
	<div>
		<textarea id="output"></textarea>
	</div>
</body>
</html>

Thanks to Gilles and Pierre for helping me =)
-- 
View this message in context: http://www.nabble.com/Proj4js-and-IE-tp18025067p18031978.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list