| Issue 184: | Draw Feature is not work in FireFox using HTML image Tag | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Hello, I have refer drawing feature from the following URL. http://openlayers.org/dev/examples/draw-feature.html This example is working well in Firefox as well as IE-8 . In my example i used HTML <image> tags instead of radio tag. like : In Example : <input type="radio" name="type" value="point" id="pointToggle" onclick="toggleControl(this);" /> In My Code : <img src="images/myimage.png" title="Mark Point" value="point" id="pointToggle" onclick="toggleControlPin(this);"/> Note: HTML Image tag is not provides any attribute named "value". It is working well in IE but not in Firefox. Code: function toggleControl(element) { alert(element); // We are getting in IE - element [object] //We are getting in FF - element [object HTMLImageElement] for(key in drawControls) { var control = drawControls[key]; alert(element.value); // We are getting in IE - element.value = "point" //We are getting in FF - element.value = "undefined" if(element.value == key && element.checked) { control.activate(); } else { control.deactivate(); } } } Please Help to me solve this issue. Thanks in advance.
Mar 6, 2011
Project Member
#1
moo...@wwwendt.de
Status:
Waiting
Oct 6, 2013
Closing 'Waiting' issues without timely answer
Status:
Done
May 2, 2014
Cleanup Scrumboard
Labels:
Milestone-Release2.0
|