Hello list,

 

After a nested request using OpenLayers.loadURL, the last function that parses 
the result, it have to center the map using map.setCenter(... ) but firebug 
shows the following error:

map is not defined.

 

I tryed with this.map.setCenter(...) but doesn't work. It seems that map var is 
lost.

 

How can I recover it?

 

Antoni Vidal

Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya 
<http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
 
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/> 

 

 

 

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to