]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip demo: Use static map instead of interactive map.
authorScott González <scott.gonzalez@gmail.com>
Mon, 30 May 2011 19:55:41 +0000 (15:55 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 30 May 2011 19:55:59 +0000 (15:55 -0400)
demos/tooltip/delegation-mixbag.html

index 5b1fa4119198f19022cc781465fe16684325d1a8..689175b0f95d86d871403cc20b9bd4dbd5fa54c5 100644 (file)
                        content: function() {
                                var element = $( this );
                                if ( element.is( "[data-geo]" ) ) {
-                                       return $( "<iframe>", {
-                                               width: 425,
-                                               height: 350,
-                                               frameborder: 0,
-                                               scrolling: "no",
-                                               marginheight: 0,
-                                               marginwidth: 0,
-                                               src: "http://maps.google.com/maps?ll=" + element.attr( "data-geo" ) +
-                                                       "&z=11&t=p&output=embed"
-                                       });
+                                       return "<img src='http://maps.google.com/maps/api/staticmap?" +
+                                               "zoom=11&size=350x350&maptype=terrain&sensor=false&center=" +
+                                               element.text() + "'>";
                                }
                                if ( element.is( "[title]" ) ) {
                                        return element.attr( "title" );
@@ -55,7 +48,7 @@
 <div class="ui-widget photo">
        <div class="ui-widget-header ui-corner-all">
                <h2>St. Stephen's Cathedral</h2>
-               <h3><a href="http://maps.google.com/maps?q=vienna,+austria&z=11" data-geo="48.208174,16.373819">Vienna, Austria</a></h3>
+               <h3><a href="http://maps.google.com/maps?q=vienna,+austria&z=11" data-geo>Vienna, Austria</a></h3>
        </div>
        <a href="http://en.wikipedia.org/wiki/File:Wien_Stefansdom_DSC02656.JPG">
                <img src="images/st-stephens.jpg" alt="St. Stephen's Cathedral" class="ui-corner-all">
@@ -65,7 +58,7 @@
 <div class="ui-widget photo">
        <div class="ui-widget-header ui-corner-all">
                <h2>Tower Bridge</h2>
-               <h3><a href="http://maps.google.com/maps?q=london,+england&z=11" data-geo="51.500152,-0.126236">London, England</a></h3>
+               <h3><a href="http://maps.google.com/maps?q=london,+england&z=11" data-geo>London, England</a></h3>
        </div>
        <a href="http://en.wikipedia.org/wiki/File:Tower_bridge_London_Twilight_-_November_2006.jpg">
                <img src="images/tower-bridge.jpg" alt="Tower Bridge" class="ui-corner-all">