[Mapbender_dev] [Mapbender] #807: mod_usemap divs um_img and um_draw are missing

Mapbender mapbender_dev at lists.osgeo.org
Mon Mar 28 04:08:42 EDT 2011

#807: mod_usemap  divs um_img and um_draw are missing
 Reporter:  astrid_emde     |       Owner:  dev          
     Type:  defect          |      Status:  new          
 Priority:  major           |   Milestone:  2.7.1 release
Component:  user interface  |     Version:  2.7          
 Keywords:  wfs             |  
 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

 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

 In 2.7 that file does not exist any more.
 Has anybody an idea for a workaround?

 Thank you very much, Kai

Ticket URL: <http://trac.osgeo.org/mapbender/ticket/807>
Mapbender <http://www.mapbender.org/>

More information about the Mapbender_dev mailing list