}
}
+ protected function _point2Deg($value, $lat = false)
+ {
+ $letter = $lat ? ($value > 0 ? "N" : "S") : ($value > 0 ? "E" : "W");
+ $value = abs($value);
+ $deg = floor($value);
+ $min = floor(($value - $deg) * 60);
+ $sec = ($value - $deg - $min / 60) * 3600;
+ return $deg . "° " . $min . '\' ' . round($sec, 2) . '" ' . $letter;
+ }
+
}
method: 'post',
parameters: params,
onComplete: function(transport) {
- if (!Object.isUndefined(ToolTips) ) {
- ToolTips.out();
+ if (typeof Horde_ToolTips != 'undefined') {
+ Horde_ToolTips.out();
}
if (transport.responseJSON.response == 1) {
+ alert(transport.responseJSON.response);
w = new Element('div');
w.appendChild(new Element('div', {id: 'ansel_map'}));
ag = new Element('div', {'class': 'ansel_geolocation'});
map = new Ansel_GMap(options);
map.getLocationCallback_ = map.getLocationCallback;
map.getLocationCallback = function(points, marker) {
- map.getLocationCallback_(points, marker, Object.isUndefined(points.NoUpdate));
+ map.getLocationCallback_(points, marker, (typeof points.NoUpdate == 'undefined'));
}.bind(map);
map.addPoints(points);
map.display();
function ShowView(view, date, cache)
{
- if (Object.isUndefined(Ajax.Updater)) {
+ if (typeof Ajax.Updater == 'undefined') {
return true;
}
if (Object.isFunction(stripeAllElements)) {
stripeAllElements();
}
- if (!Object.isUndefined(Horde_ToolTips)) {
+ if (typeof Horde_ToolTips != 'undefined') {
Horde_ToolTips.out();
Horde_ToolTips.attachBehavior();
}