[OpenLayers-Users] PopUp is not show
flyceo
rarchut at interwaysmail.com
Wed Apr 10 09:44:33 PDT 2013
Despite your arrogant undertone - Thank you very much.
Roland
Gesendet von Windows-Mail
Von: Phil Scadden [via OSGeo.org]
Gesendet: 10. April 2013 05:23
An: flyceo <rarchut at interwaysmail.com>
Betreff: Re: PopUp is not show
In the mail list, the code was not distributed (I am guessing mail
clients didnt like the script tag) but saw it on nabble. This reinforces
my point. If you used firebug or developer console, you would have seen
console errors about map.addPopup as unknown method. If you then looked
at map variable in the debugger you would see it is a dom item. The
issue in the code is that in the init() function you have declared map
as a local variable
( var map = etc)
This variable is thus out of scope for the onSelect function.
Remove the "var" off the map declaration, or better (IMHO) you can
var map;
function init()
..
map = OpenLayers.map etc
...
Get used to using the debugging tools.
Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.
_______________________________________________
Users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/PopUp-is-not-shown-tp5045367p5045683.html
To unsubscribe from PopUp is not shown, click here.
NAML
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/PopUp-is-not-shown-tp5045367p5045866.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130410/8ff23250/attachment-0001.html>
More information about the Users
mailing list