Road trip takes in Cactus League, actual cactus

Get our daily news updates

Scottsdale News, Events & Info

Loading …

#{poweredby}n’;
if(typeof(info[‘description’]) == ‘undefined’ || info[‘description’]==null)
info[‘description’] = ”;
if(info[‘description’].length > 160)
info[‘description’] = abbrevText(info[‘description’], 160);
var imageHtml = ”;
if(info[‘image’] && typeof(info[‘image’]) != ‘undefined’ &&
typeof(info[‘image’][‘url’]) != ‘undefined’)
{
if(typeof(info[‘image’][‘height’]) != ‘undefined’ &&
typeof(info[‘image’][‘width’]) != ‘undefined’)
info[‘image’][‘dims’]=image_dim_t.interpolate(info[‘image’]);
imageHtml=image_t.interpolate(info);
}
info[‘contentHtml’] = imageHtml + moreinfo_t.interpolate(info);
return window_t.interpolate(info);
}
// Need to migrate to v3 of Youtube Data API (April 20, 2015)
function showMyVideos(data) {
var feed = data.feed;
var entries = feed.entry || [];
var html = [‘

    ‘];
    var viewer_t = ‘See full sized video‘;
    for (var ii = 0; ii ‘, entry.id.$t,’:’, title, ‘ – ‘, entry.media$group.yt$videoid.$t, ”);
    if(typeof(markerPoints[geoString]) == ‘undefined’)
    {
    var ytPoint = new Array();
    ytPoint[‘type’] = ‘youtube’;
    ytPoint[‘cityname’] = ytCity;
    ytPoint[‘node’] = ytNode;
    ytPoint[‘title’] = entry.title.$t;
    ytPoint[‘sig’] = ytPoint[‘src’] = entry.content.src;
    ytPoint[‘link’] = ‘/video/detail/city/scottsdale-az/ytid-‘ + entry.media$group.yt$videoid.$t;
    ytPoint[‘description’] = entry.media$group.media$description.$t;
    if(ytPoint[‘description’].length > 160)
    ytPoint[‘description’] = abbrevText(ytPoint[‘description’], 160);
    ytPoint[‘extra’] = ‘
    See full sized video
    ‘;
    markerPoints[geoString]=ytPoint;
    // Map should always be defined
    // since we don’t do the request until it is loaded
    if(map)
    {
    markerPoints[geoString][‘marker’] =
    initMarker(geoString, ytPoint);
    createWindowHtml(ytPoint);
    if(markersRendered && markerPoints[geoString][‘marker’] &&
    (markerPoints[geoString][‘type’] == filterByType ||
    filterByType == ‘all’ || !filterByType))
    {
    map.addLayer(markerPoints[geoString][‘marker’]);
    }
    }
    }
    }
    html.push(‘

‘);
}
function abbrevText(string, length)
{
var lastSpace = string.indexOf(” “,length);
if(lastSpace 0;
var intVal = sign ? Math.floor(value) : Math.ceil(value);
var remainder = value – intVal;
if(sign) // positive
{
if(remainder Leaflet’);
attributionControl.removeAttribution(short_attrib);
attributionControl.addAttribution(long_attrib);
Element.show(“leaflet_legend”);
Element.show(“shrink_map”);
Element.hide(“expand_map”);
$(‘leaflet_fill’).style.height = “600px”;
}
return false;
}
function shrinkMap()
{
if (currentPopup) currentPopup._source.closePopup();
if(map && Element.visible(“shrink_map”))
{
$(‘leaflet_fill’).style.height = “0px”;
$(‘mapdiv’).style.width = ‘292px’;
$(‘mapdiv’).style.height = ‘338px’;
wrapperDiv.style.height = oldHeight + ‘px’;
wrapperDiv.style.width = ‘294px’;
wrapperDiv.style.height = oldHeight + ‘px’;
wrapperDiv.style.position = ‘static’;
wrapperDiv.style.left = ‘0px’;
wrapperDiv.style.top = ‘0px’;
Element.hide(“leaflet_legend”);
var map_center = map.getCenter();
map.invalidateSize();
map.setView(map_center,zoom);
attributionControl.setPrefix(”);
attributionControl.removeAttribution(long_attrib);
attributionControl.addAttribution(short_attrib);
setTimeout(function(){
Element.show(“expand_map”);
Element.hide(“shrink_map”);
}, 1);
}
justShrunk = curDate.getTime();
return false;
}

renderPlusone(“gbutton_1”);

Leave a Reply