New improved geocoder with extra added AJAX and OSM Namefinder support.

This commit is contained in:
Tom Hughes 2007-08-07 17:09:37 +00:00
parent e8809a10f5
commit 397db07d65
8 changed files with 342 additions and 251 deletions

View file

@ -70,3 +70,17 @@ function setArgs(url, args) {
return url.replace(/\?.*$/, "") + "?" + queryitems.join("&");
}
function getStyle(el, property) {
var style;
if (el.currentStyle) {
style = el.currentStyle[property];
} else if( window.getComputedStyle ) {
style = document.defaultView.getComputedStyle(el,null).getPropertyValue(property);
} else {
style = el.style[property];
}
return style;
}