<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="PlaceEngine - Get Current Location" 
                description="PlaceEngine Mapplet"
                author="Jun Rekimoto"
                author_email="your-email@gmail.com"
                height="150">
  <Require feature="sharedmap"/>
</ModulePrefs>
<Content type="html"><![CDATA[

<script src="http://www.placeengine.com/javascripts/pengine.js" type="text/javascript"></script>

<style type="text/css">
<!--
* { margin: 0; padding: 0;}
p {padding-bottom: 6px;}
img {border: 0px; margin:0px 5px 0px 0px; vertical-align:middle;}
input {border: 0px; margin:0px 5px 0px 0px; vertical-align:middle;}
-->
</style>


<div>
<input alt="Register Locaiton" src="http://www.placeengine.com/images/wide_bt2.png" type="image" onclick='pe.registerLocation()' /><input alt="Get Current" src="http://www.placeengine.com/images/wide_bt1.png" type="image" onclick='pe.getLocation()' /> <a href="http://rkmt.net/wiki/index.php?title=Peapplet">?</a>
<p id="pestatus">Looking for PlaceEngine client...</p>
<p align="right"><a href="http://www.placeengine.com" target="_blank"><img src=http://www.placeengine.com/images/logo.png></a></p>
</div>

<script>
var map = new GMap2();
var pe = new PEngine({
    idstatus:"pestatus",
    appkey:"T44ounct-C5bS-ccUwVC-8EYTU4awHy6vqnOSLAQPxHlexng1vaDKhencjKXgoj1amIZ0fkSS.K5.Ul7miTD4R0MWn8Tq1-inq5vbSLd99f0h7cCMlSe.BWTneETff1xKPqCjQQr9oAPxE.Ygvn4uVhuld2w71NlUVrJo2Os0L76v-v3RS4WAw-BtrRybNZzzicW0eakuI3XOLHsqjjL80.kNOdnUYCibuJII00JMuSxhHad6Cm-tLlZkhbghQzVUfpkKQ9b3rcerhedeVZa06k8wt38VGsIfn2516FzIeJlu4TfYpvahFJZCZyUeqDcBbmlLU2H9V-ZBuwYncBqzQ__,aHR0cDovL2dtb2R1bGVzLmNvbS9pZw__,bWFwcGxldA__",
    onGetLocation:function(x,y,r,info){
        if (map!=null && x!=0 && y!=0 && r>=0) map.setCenter(new GLatLng(y,x),r<100?17:16);
    },
});
pe.getLocation();
</script>

]]></Content>
</Module>
