Opened 14 years ago
Closed 14 years ago
#807 closed defect (fixed)
mod_usemap divs um_img and um_draw are missing
Reported by: | astrid_emde | Owned by: | verenadiewald |
---|---|---|---|
Priority: | major | Milestone: | 2.7.2 release |
Component: | user interface | Version: | 2.7 |
Keywords: | wfs | Cc: | Kai-Behncke@… |
Description ¶
mod_usemap needs the divs um_img and um_draw. In 2.6.2 they came with mapframe1. Now the element has to create them by itself.
Have a look at javascripts/mod_highlightPOI.php (function mod_highlightPOI_draw())
Please update the wiki page http://www.mapbender.org/Modules#UseMap and provide code documentation.
This is the Mail from Kai Behncke: Where in Mapbender 2.6.2 it works great, it does not in 2.7.
I get: "document.getElementById("um_img") is null"
The error occures because of http:/javascripts/mod_usemap.php
in line 40 (var myImg = document.getElementById("um_img").style;)
In Mapbender 2.6.2 "um_img" was declared in .../http/php/mod_map1.php
In 2.7 that file does not exist any more. Has anybody an idea for a workaround?
Thank you very much, Kai
Change History (5)
comment:1 by , 14 years ago
Owner: | changed from | to
---|
comment:2 by , 14 years ago
Milestone: | 2.7.1 release → 2.7.2 release |
---|
comment:3 by , 14 years ago
- changed php/mod_usemap.php and javascripts/mod_usemap.php for 2.7
- see changes here: http://trac.osgeo.org/mapbender/changeset/7772
- please test if it works again