most things should now work
This commit is contained in:
parent
3c0e9b02c0
commit
9f74168155
|
@ -47,19 +47,19 @@ $(function() {
|
||||||
);
|
);
|
||||||
geojson_format = new OpenLayers.Format.GeoJSON();
|
geojson_format = new OpenLayers.Format.GeoJSON();
|
||||||
//yes, jsonLayer is global. Yes, I know it's wrong.
|
//yes, jsonLayer is global. Yes, I know it's wrong.
|
||||||
/*
|
|
||||||
var symbolizer = OpenLayers.Util.applyDefaults(
|
var symbolizer = OpenLayers.Util.applyDefaults(
|
||||||
{fillColor: 'green', opacity: 0.5, strokeColor: '#000', cursor: 'pointer'},
|
{fillColor: 'green', opacity: 0.5, strokeColor: '#000', cursor: 'pointer'},
|
||||||
OpenLayers.Feature.Vector.style["default"]);
|
OpenLayers.Feature.Vector.style["default"]);
|
||||||
defaultStyles = new OpenLayers.StyleMap({"default": symbolizer, "selected": symbolizer});
|
defaultStyles = new OpenLayers.StyleMap({"default": symbolizer, "selected": symbolizer});
|
||||||
*/
|
|
||||||
jsonLayer = layers[1] = new OpenLayers.Layer.Vector({'geometryType': 'Point'});
|
jsonLayer = layers[1] = new OpenLayers.Layer.Vector({'geometryType': 'Point'});
|
||||||
// map.addLayer(vector_layer);
|
// map.addLayer(vector_layer);
|
||||||
map.addLayers(layers);
|
map.addLayers(layers);
|
||||||
map.setCenter(center, 12);
|
map.setCenter(center, 12);
|
||||||
|
|
||||||
// mapControl = new OpenLayers.Control.SelectFeature(layers[1], {hover: true});
|
// mapControl = new OpenLayers.Control.SelectFeature(layers[1], {hover: true});
|
||||||
mapControl = new OpenLayers.Control.SelectFeature(layers[1], {hover: true});
|
mapControl = new OpenLayers.Control.SelectFeature(layers[1]);
|
||||||
zoomControl = new OpenLayers.Control.ZoomToMaxExtent();
|
zoomControl = new OpenLayers.Control.ZoomToMaxExtent();
|
||||||
map.addControl(mapControl);
|
map.addControl(mapControl);
|
||||||
// map.addControl(zoomControl);
|
// map.addControl(zoomControl);
|
||||||
|
@ -260,7 +260,7 @@ function getLocationById(id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$('.mediaThumb').live("mouseover", function() {
|
$('.mediaThumb').live("mouseover", function() {
|
||||||
var id = $(this).attr("data-location");
|
var id = $(this).data("location");
|
||||||
// console.log(id);
|
// console.log(id);
|
||||||
// var location = getLocationById(id);
|
// var location = getLocationById(id);
|
||||||
// mapControl.select(flyover);
|
// mapControl.select(flyover);
|
||||||
|
@ -270,6 +270,7 @@ $('.mediaThumb').live("mouseover", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.mediaThumb').live("mouseout", function() {
|
$('.mediaThumb').live("mouseout", function() {
|
||||||
|
var id = $(this).data("location");
|
||||||
highlightFeatures([]);
|
highlightFeatures([]);
|
||||||
$('#event_' + id).removeClass("highlightedEvent");
|
$('#event_' + id).removeClass("highlightedEvent");
|
||||||
});
|
});
|
||||||
|
|
|
@ -59,8 +59,9 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" id="tmpl_padmas">
|
<script type="text/html" id="tmpl_padmas">
|
||||||
|
Padma Videos:
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" id="tmpl_about">
|
<script type="text/html" id="tmpl_about">
|
||||||
<div class="navContent" id="about">
|
<div class="navContent" id="about">
|
||||||
<div class="contentWrapper about">
|
<div class="contentWrapper about">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user