cvs: presentations / uw07.xml /slides/intro php_world.xml world.xml
| From: | Rasmus Lerdorf | Date: | Wed, 24 Oct 2007 14:11:52 +0000 |
| Subject: | cvs: presentations / uw07.xml /slides/intro php_world.xml world.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1435@lists.php.net to get a copy of this message | ||
rasmus Wed Oct 24 14:11:52 2007 UTC
Added files:
/presentations/slides/intro php_world.xml
Modified files:
/presentations uw07.xml
/presentations/slides/intro world.xml
Log:
New slide
http://cvs.php.net/viewvc.cgi/presentations/uw07.xml?r1=1.1&r2=1.2&diff_format=u
Index: presentations/uw07.xml
diff -u presentations/uw07.xml:1.1 presentations/uw07.xml:1.2
--- presentations/uw07.xml:1.1 Wed Oct 24 04:14:46 2007
+++ presentations/uw07.xml Wed Oct 24 14:11:51 2007
@@ -46,6 +46,7 @@
<slide>slides/intro/php_yui3.xml</slide>
<slide>slides/intro/php_yui4.xml</slide>
<slide>slides/intro/php_yui5.xml</slide>
+<slide>slides/intro/php_world.xml</slide>
<slide>slides/intro/yajax.xml</slide>
<slide>slides/intro/ws4.xml</slide>
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/world.xml?r1=1.1&r2=1.2&diff_format=u
Index: presentations/slides/intro/world.xml
diff -u presentations/slides/intro/world.xml:1.1 presentations/slides/intro/world.xml:1.2
--- presentations/slides/intro/world.xml:1.1 Wed Oct 24 04:14:46 2007
+++ presentations/slides/intro/world.xml Wed Oct 24 14:11:52 2007
@@ -1,11 +1,9 @@
<slide title="World">
-
<break lines="1" />
-
-<example hide="1" result="1" fontsize="1.4em"
rfontsize="1em" marginright="1em" type="marked"><![CDATA[
+<example hide="1" result="1" fontsize="1.4em"
rfontsize="1em" marginright="0em" marginleft="1.5em"
type="marked"><![CDATA[
<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script>
-
-<div id="jsmapContainer" style="height: 600px; width:
930px;"></div>
+<script type="text/javascript" src="http://lerdorf.com/ymap_canvas_fix.js"></script>
+<div id="jsmapContainer" style="height: 600px; width:
980px;"></div>
<div id="buttonContainer" style="padding: 0.5em;">
<form>
<input type="button" id="1" value="Qeqertarsuaq"
onclick="mark('Qeqertarsuaq');"></input>
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_world.xml?view=markup&rev=1.1
Index: presentations/slides/intro/php_world.xml
+++ presentations/slides/intro/php_world.xml
<slide title="World">
<break lines="1" />
<example hide="1" result="1" fontsize="1.4em"
rfontsize="1em" marginright="0em" marginleft="1.5em"
type="marked"><![CDATA[<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script>
<script type="text/javascript" src="http://lerdorf.com/ymap_canvas_fix.js"></script>
<div id="jsmapContainer" style="height: 600px; width: 980px;"></div>
<div id="buttonContainer" style="padding: 0.5em;">
<form>
<input type="button" id="1" value="Qeqertarsuaq"
onclick="mark('Qeqertarsuaq');"></input>
<input type="button" id="2" value="Frederikssund"
onclick="mark('Frederikssund');"></input>
<input type="button" id="3" value="Toronto"
onclick="mark('Toronto');"></input>
<input type="button" id="3" value="Waterloo"
onclick="mark('Waterloo, Ontario');"></input>
<input type="button" id="3" value="Calgary"
onclick="mark('Calgary');"></input>
<input type="button" id="3" value="Porto Alegre"
onclick="mark('Porto Alegre, Brazil');"></input>
<input type="button" id="3" value="Mountain View"
onclick="mark('Mountain View, CA');"></input>
<input type="button" id="3" value="Cary"
onclick="mark('Cary, NC');"></input>
<input type="button" id="3" value="San Francisco"
onclick="mark('San Francisco, CA');"></input>
<input type="button" id="3" value="Sunnyvale"
onclick="mark('Sunnyvale, CA');"></input>
</form>
</div>
<script type="text/javascript">
var Pin = new YImage();
Pin.src = 'http://www.lerdorf.com/red_pin.png';
Pin.size = new YSize(32,27);
Pin.offset = new YCoordPoint(1,4);
var markers = new Array();
var first = 1;
var last = '';
var geoDone = function(o) {
jsmap.panToLatLon(o.GeoPoint);
if(!first) {
markers[o.Address] = o.GeoPoint;
jsmap.addOverlay(new YPolyline([last,o.GeoPoint],'blue',5,0.4));
}
first = 0;
last = o.GeoPoint;
}
var mark = function(loc) {
if(!markers[loc]) {
jsmap.addOverlay(new YMarker(loc, Pin));
} else {
jsmap.panToLatLon(markers[loc]);
jsmap.addOverlay(new YPolyline([last,markers[loc]],'blue',5,0.4));
last = markers[loc];
}
};
var jsmap = new YMap('jsmapContainer');
jsmap.addZoomLong();
jsmap.addTypeControl();
YEvent.Capture(jsmap, EventsList.onEndGeoCode, geoDone);
jsmap.drawZoomAndCenter('Qeqertarsuaq',15);
</script>]]></example>
</slide>