Displaying 3 results from an estimated 3 matches for "getzoom".
2010 Sep 22
3
how to remote function to get info from url in a javascript function
...ction called Elabel, part of the
Google maps api
the Elabel has a function called setContents(html)
i need to be able to call this function and get new html for it. ( the
html is a table that displays weather data)
here is what i have so far
function replace_weather_table(){
zoomy = map.getZoom();
weather_table_one.setContents(new Ajax.Request(''/weather/
update_weather_tables?zoom=''+zoomy));
};
GEvent.addListener(map,"moveend", replace_weather_table);
i would like to have the contents be those of a partial, but when
executed, the display only shows &q...
2007 Mar 08
1
map not displayed after Ajax.updater request
...on(window.onload,function() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_div"));
map.setCenter(new GLatLng(47.7500161647,-2.916641656),
8);GEvent.addListener(map,"click",function processMoveEndEvent
() { var centerPoint = map.getCenter(); if (map.getZoom() <= 18)
{ processNewMapMovement()} });
map.addOverlay(contact);
map.addOverlay(reference);map.addControl(new GSmallMapControl());
}
});
</script>
but that''s all.... no map displayed ... why any clue ?
I already used it in other parts of my app without any problem, but...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...if(options != null && options.pan) { map.panTo(pt); }
+ else { map.setCenter(pt); }
},
setZoom: function(zoom) {
var map = this.maps[this.api];
-
- // TODO: Add provider code
-
+ map.setZoom(zoom);
},
getZoom: function() {
- var map = this.maps[this.api];
- var zoom;
-
- // TODO: Add provider code
-
- return zoom;
+ var map = this.maps[this.api];
+ return map.getZoom();
},
getZoomLevelForBoundingBox: function( bbox ) {
@@ -136,15 +...