search for: setcenterandzoom

Displaying 8 results from an estimated 8 matches for "setcenterandzoom".

2008 Jun 20
2
map24 help
...lt;/script> <script type="text/javascript"> var mapstraction = new Mapstraction(''mapstraction'',''map24'',''FJX534f6ceaeaf971137bc628c468279X13''); var myPoint = new LatLonPoint(37.4041960114344,-122.008194923401); mapstraction.setCenterAndZoom(myPoint, 10); Thanks, Shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20080620/af2bc332/attachment.htm>
2010 Apr 30
6
addListener
I am trying to use the marker method addlistener(). A simplified version of what I''m trying to do: var map; var marker; map = new mxn.Mapstraction(''myMap'',''google''); map.setCenterAndZoom(new mxn.LatLonPoint(45.559242,-122.636467), 15); marker = new mxn.Marker(new mxn.LatLonPoint(45.559242, -122.636467)); marker.addData({icon: "http://mapscripting.com/examples/mashups/richter-high.png"}); map.addMarker(marker); marker.addListener(...
2007 Jul 25
1
regarding polylines
hi all, i am experimenting with ym4r mapstraction, i am using yahoo api , when i tried polylines , its not showing up.. the code is var map; window.onload = addCodeToFunction(window.onload,function() { map = new Mapstraction("map_div","yahoo"); map.setCenterAndZoom(new LatLonPoint(37.3853,-122.0172 ),12);map.addSmallControls(); map.addMarkerGroup(new MarkerGroup([addDataToMarker(new Marker(new LatLonPoint(37.3853,-122.0172)),{infoBubble : "Maude & Fair Oaks <br/> Next bus is at 14:19:00"}),addDataToMarker(new Marker(new LatLonPoint(37.395...
2008 May 20
1
AddOverlay for GeoRss Feeds, GeoRSS support
...var mapstraction = new Mapstraction(''mapstraction'',''google''); > > var myPoint = new LatLonPoint(37.4041960114344,-122.008194923401); > // display the map centered on a latitude and longitude (Google zoom > levels) > mapstraction.setCenterAndZoom(myPoint, 3); > mapstraction.addControls({zoom: ''large''}); > > mapstraction.addOverlay("http://api.flickr.com/services/feeds/groups_pool.gne?id=322338 at N20&format=rss_200&georss=1"); > </script> > > > Regards > > > &...
2009 Jan 21
7
Panning map to a point vs. setCenter
Several map providers have functions to pan to a location, as opposed to the direct setCenter call. Panning animates the move from one point to another. To implement this in mapstraction, I created a panCenter function. I don''t know how to go about committing the change to svn, or who decides whether my naming convention is worthy, but I thought I''d share the function
2008 May 27
6
IE7 Problems
I''ve recently been looking at Mapstraction as a way to make it easier for me to support more than one mapping service, mainly Google Maps and Microsoft''s Virtual Earth. However, I seem to be running into a lot of errors when trying to use Mapstraction with IE7 and Virtual Earth. As an example, I get a "Not Implemented" error when I load the many of the demos. This
2009 Sep 21
0
r34 committed - removed deprecated method draggable, all controls off when first creat...
...navigationControl:true, navigationControlOptions: {style:google.maps.NavigationControlStyle.SMALL} }; @@ -85,12 +106,6 @@ this.addControlsArgs.map_type = true; }, - dragging: function(on) { - var map = this.maps[this.api]; - - // TODO: Add provider code - }, - setCenterAndZoom: function(point, zoom) { var map = this.maps[this.api]; var pt = point.toProprietary(this.api);
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...true; }, dragging: function(on) { var map = this.maps[this.api]; - // TODO: Add provider code + if (on) { + map.enableDragging(); + } else { + map.disableDragging(); + } }, setCenterAndZoom: function(point, zoom) { @@ -61,22 +85,17 @@ addMarker: function(marker, old) { var map = this.maps[this.api]; var pin = marker.toProprietary(this.api); - - // TODO: Add provider code - + map.addOverlay(pin); return pin; }...