<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2688274079781877854</id><updated>2012-02-16T18:51:01.509-08:00</updated><title type='text'>layar and/or html5</title><subtitle type='html'>Technical stuff and how to's around two ways to program locative media, the LAYAR option and HTML5 with GPS script</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-1179526649301750236</id><published>2010-10-03T23:35:00.000-07:00</published><updated>2010-10-03T23:36:59.471-07:00</updated><title type='text'>Hoppala change</title><content type='html'>Hoppala has changed the link of the page to create layars:&lt;br /&gt;&lt;a href="http://augmentation.hoppala.eu/"&gt;http://augmentation.hoppala.eu/&lt;/a&gt;&lt;br /&gt;instead of&lt;br /&gt;&lt;a href="http://www.hoppala.eu/"&gt;http://www.hoppala.eu/&lt;/a&gt;&lt;br /&gt;The last link has become an interesting blog.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-1179526649301750236?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/1179526649301750236/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/10/hoppala-change.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/1179526649301750236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/1179526649301750236'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/10/hoppala-change.html' title='Hoppala change'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-4858338836549525621</id><published>2010-10-01T13:15:00.000-07:00</published><updated>2010-10-04T00:09:54.856-07:00</updated><title type='text'>to compare!</title><content type='html'>In competition with Layar:&lt;br /&gt;&lt;a href="http://7scenes.com/"&gt;http://7scenes.com/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.junaio.com/"&gt;http://www.junaio.com/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://wikitude.me/"&gt;http://wikitude.me/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://foursquare.com/"&gt;http://foursquare.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;list of apps to be found in&lt;br /&gt;&lt;a href="http://www.mobilestorytelling.net/mobilenet_mainlist.html#usepatterns"&gt;http://www.mobilestorytelling.net/mobilenet_mainlist.html#usepatterns&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-4858338836549525621?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/4858338836549525621/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/10/to-compare.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/4858338836549525621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/4858338836549525621'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/10/to-compare.html' title='to compare!'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-1124657393577352615</id><published>2010-09-30T06:53:00.000-07:00</published><updated>2010-09-30T07:05:44.852-07:00</updated><title type='text'>Cui Bono?</title><content type='html'>Since the Romans the question to ask when you start a research.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;LAYAR&lt;/span&gt; is free! How does this company layer earns money?&lt;br /&gt;A simple Google search comes up with this:&lt;br /&gt;&lt;a href="http://www.nuzakelijk.nl/e-business/2185751/layar-krijgt-miljoeneninvestering.html"&gt;http://www.nuzakelijk.nl/e-business/2185751/layar-krijgt-miljoeneninvestering.html&lt;/a&gt;&lt;br /&gt;nice start!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;HTML5?&lt;/span&gt;&lt;br /&gt;This is done by a group of people:&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Web_Hypertext_Application_Technology_Working_Group"&gt;http://en.wikipedia.org/wiki/Web_Hypertext_Application_Technology_Working_Group&lt;/a&gt;&lt;br /&gt;who were not satisfied by&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/World_Wide_Web_Consortium"&gt;http://en.wikipedia.org/wiki/World_Wide_Web_Consortium&lt;/a&gt;&lt;br /&gt;This last group as indicated in the article is "dominated by larger organizations".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-1124657393577352615?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/1124657393577352615/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/cui-bono.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/1124657393577352615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/1124657393577352615'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/cui-bono.html' title='Cui Bono?'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-8003738296026523918</id><published>2010-09-27T10:36:00.000-07:00</published><updated>2010-09-27T11:01:17.484-07:00</updated><title type='text'>Google Maps PHP and your own dataBase</title><content type='html'>The last post found a PHP lib which functioned well.&lt;br /&gt;Then it is relatively easy to insert the PHP needed to get the stored data from your dataBase:&lt;br /&gt;&lt;br /&gt;Just insert: (in the file of the last post)&lt;br /&gt;&lt;br /&gt;$database="DATABASENAME";&lt;br /&gt;$db=mysql_connect("localhost", "YOURUSERNAME", "YOURPASSWORD");&lt;br /&gt;@mysql_select_db($database) or die( "Unable to select database...");&lt;br /&gt;&lt;br /&gt;$mydBaseCounter = 0;&lt;br /&gt;$q&lt;br /&gt;="SELECT *&lt;br /&gt;FROM `POI_Table`&lt;br /&gt;ORDER BY id ASC&lt;br /&gt;";&lt;br /&gt;$page_imp_r=mysql_query($q) or print(mysql_error());&lt;br /&gt;&lt;br /&gt;while ($page_imp=mysql_fetch_array($page_imp_r)){&lt;br /&gt;  $loop_marker = $MAP_OBJECT-&gt;addMarkerByCoords(     $page_imp['lon'],$page_imp['lat'],'contrechoc.com '.$mydBaseCounter.' ',' ');&lt;br /&gt;  //to check the coordinates from the dBase&lt;br /&gt;  echo $mydBaseCounter."  ".$page_imp['lat']."   ".$page_imp['lon']."&lt;br /&gt;";&lt;br /&gt;  $mydBaseCounter++;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;testing: &lt;a href="http://www.contrechoc.com/layar/secondGooggleMapPHPTest2.php"&gt;http://www.contrechoc.com/layar/secondGooggleMapPHPTest2.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;download source file &lt;a href="http://www.contrechoc.com/layar/phpTest2.zip"&gt;phpTest2&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The last obstacle was the order of latitude, longitude, some defenition start with latitude, others with longitude, so check this, otherwise you end up in Somalia instead of Hollland....&lt;br /&gt;&lt;br /&gt;The one but last obstacle is connecting to your database, somehow, this always poses me problems :-), where to put the database name, where the user etc.....&lt;br /&gt;&lt;br /&gt;The funny thing is, that the PHP generates a JAVASCRIPT file (!). This can be seen opening the source in the browser.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-8003738296026523918?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/8003738296026523918/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/google-maps-php-and-your-own-database.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/8003738296026523918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/8003738296026523918'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/google-maps-php-and-your-own-database.html' title='Google Maps PHP and your own dataBase'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-269820037939618303</id><published>2010-09-27T00:46:00.000-07:00</published><updated>2010-09-27T11:00:30.819-07:00</updated><title type='text'>Google Maps and PHP</title><content type='html'>Well this is going to be a bit technical,&lt;br /&gt;Why start doing Google Maps in PHP?&lt;br /&gt;Because with PHP we can easily access our dataBase...&lt;br /&gt;&lt;br /&gt;This link was the first to give working code:&lt;br /&gt;&lt;a href="http://www.phpro.org/examples/Google-Maps-With-PHP-And-Phproogle.html"&gt;http://www.phpro.org/examples/Google-Maps-With-PHP-And-Phproogle.html&lt;/a&gt;&lt;br /&gt;see my try out:&lt;br /&gt;&lt;a href="http://www.contrechoc.com/layar/googlePHP.php"&gt;http://www.contrechoc.com/layar/googlePHP.php&lt;/a&gt;&lt;br /&gt;but this is still working with the keys (deprecated, go to version 3)&lt;br /&gt;and also you cannot change the markers with this simple lib (?)&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span&gt;&lt;span style="font-style: italic;"&gt;&lt;img src="http://www.contrechoc.com/layar/testPHP1.jpg" alt="" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Then this came up:&lt;br /&gt;&lt;a href="http://code.google.com/p/php-google-map-api/"&gt;http://code.google.com/p/php-google-map-api/&lt;/a&gt;&lt;br /&gt;which works without the keys, so in API3&lt;br /&gt;and gives the possibility to use your own markers&lt;br /&gt;(and of course, doing all in php makes life easier when working with a dBase. Who wants to type in all the POI's???)&lt;br /&gt;a test page using these classes:&lt;br /&gt;&lt;a href="http://www.contrechoc.com/layar/secondGooggleMapPHPTest.php"&gt;http://www.contrechoc.com/layar/secondGooggleMapPHPTest.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span&gt;&lt;span style="font-style: italic;"&gt;&lt;img src="http://www.contrechoc.com/layar/testPHP2.jpg" alt="" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;So now the way to go is to add PHP database code and add the codes we used for LAYAR. And with all this technical stuff we are nearly creating our own version of LAYAR, or understanding it a little bit...&lt;br /&gt;&lt;br /&gt;download source file &lt;a href="http://www.contrechoc.com/layar/phpTest1.zip"&gt;phpTest1&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-269820037939618303?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/269820037939618303/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/google-maps-and-php.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/269820037939618303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/269820037939618303'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/google-maps-and-php.html' title='Google Maps and PHP'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-5684932904829633008</id><published>2010-09-23T06:22:00.000-07:00</published><updated>2011-04-11T04:27:23.515-07:00</updated><title type='text'>Google maps design</title><content type='html'>With the background of a map on a html page, you can play around with the icons, replacing the standard ones with your own...&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;&lt;img alt="" border="0" src="http://www.contrechoc.com/layar/poi-design.jpg" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;So you can use the standard icons of Google Maps, but also mix or add your own icons.&lt;br /&gt;These icons must not be too big, but can be transparent (.png).&lt;br /&gt;&lt;br /&gt;You can do a shadow in Photoshop, (png format).&lt;br /&gt;&lt;br /&gt;With the positioning, the difference of icons and their transparency you can start designing.&lt;br /&gt;&lt;br /&gt;This script contains the elements, and with replacing the path's to the images you can start creating and designing your own page. It is just learning how to hack what is already made.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Ingredients:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;the GPS position&lt;/span&gt;, eg: new google.maps.LatLng(51.937740, 4.472122),&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;the png image&lt;/span&gt;, eg: palm.png&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;the path to the image on your server &lt;/span&gt;eg:&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;var imagePalm = 'http://www.contrechoc.com/layar/palm.png';&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;making the marker with your special icon in it:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;var marker = new google.maps.Marker({&lt;br /&gt;position: new google.maps.LatLng(51.937740, 4.472122),&lt;br /&gt;map: map,&lt;br /&gt;title: 'my paradise, a palm in rainy Holland',&lt;br /&gt;clickable: false,&lt;br /&gt;icon: 'http://www.contrechoc.com/layar/palm.png'&lt;br /&gt;}); &lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;and adding the marker:&lt;/span&gt; markersArray.push(marker);&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;So the total JAVASCRIPT section:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt; type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&amp;gt;&lt;br /&gt;&amp;lt; /script&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt; type="text/javascript"&amp;gt;&lt;br /&gt;&lt;br /&gt;//globals&lt;br /&gt;var map;&lt;br /&gt;var markersArray = [];&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;function initialize()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;//center of the map&lt;br /&gt;&lt;br /&gt;var latlng = new google.maps.LatLng(51.937740, 4.472122);&lt;br /&gt;&lt;br /&gt;// map options&lt;br /&gt;&lt;br /&gt;var myOptions = {&lt;br /&gt;zoom: 10,&lt;br /&gt;center: latlng,&lt;br /&gt;mapTypeId: google.maps.MapTypeId.ROADMAP&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);&lt;br /&gt;&lt;br /&gt;//dont forget the comma's after the parameters but the last&lt;br /&gt;&lt;br /&gt;var marker = new google.maps.Marker({&lt;br /&gt;position: new google.maps.LatLng(51.937740, 4.472122),&lt;br /&gt;map: map,&lt;br /&gt;title: 'My workplace',&lt;br /&gt;clickable: false,&lt;br /&gt;icon: 'http://www.contrechoc.com/layar/icon5.png'&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;//dont forget the comma's after the parameters but the last, i repeat :-)&lt;br /&gt;&lt;br /&gt;addMarker(latlng, 'http://www.contrechoc.com/layar/icon5.png'  ); //add marker with function&lt;br /&gt;&lt;br /&gt;//you can or should do all by hand, but&lt;br /&gt;//to go faster, programming a position and positions beside this center:&lt;br /&gt;&lt;br /&gt;//you need path's to images:&lt;br /&gt;&lt;br /&gt;var imageM = 'http://www.contrechoc.com/layar/icon5.png';&lt;br /&gt;var imageM2 = 'http://www.contrechoc.com/layar/icon5a.png';&lt;br /&gt;var imageG = 'http://www.contrechoc.com/layar/dot.png';&lt;br /&gt;&lt;br /&gt;//and here we do a programming trick to get pentagonic arrangements, two nested for loops&lt;br /&gt;&lt;br /&gt;for( var ii=0 ; ii &amp;lt; i="0" latlng6 =" bearing("&amp;gt; 3 )&lt;br /&gt;addMarker(latlng6, imageG);&lt;br /&gt;if ( ii &amp;lt;&amp;gt; 0 )    addMarker(latlng6, imageM2);&lt;br /&gt;if ( ii ==0  )    addMarker(latlng6, imageM);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;//we have used this function to add markers with our own image&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;function addMarker(location, imageM) &lt;/span&gt;{&lt;br /&gt;marker = new google.maps.Marker({&lt;br /&gt;position: location,&lt;br /&gt;map: map,&lt;br /&gt;icon: imageM&lt;br /&gt;});&lt;br /&gt;markersArray.push(marker);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//we need this function fr the bearings, it is all about calculating....&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;function bearing&lt;/span&gt;( latlngStart, dP, brngP ){&lt;br /&gt;&lt;br /&gt;var R = 6371;&lt;br /&gt;var lat1 = latlngStart.lat()/180*3.1415;&lt;br /&gt;var lon1 = latlngStart.lng()/180*3.1415;&lt;br /&gt;var d = dP;&lt;br /&gt;var brng = brngP/180*3.1415;&lt;br /&gt;&lt;br /&gt;var lat2 = Math.asin( Math.sin(lat1)*Math.cos(d/R) +  Math.cos(lat1)*Math.sin(d/R)*Math.cos(brng) );&lt;br /&gt;var lon2 = lon1 + Math.atan2(Math.sin(brng)*Math.sin(d/R)*Math.cos(lat1),  Math.cos(d/R)-Math.sin(lat1)*Math.sin(lat2));&lt;br /&gt;&lt;br /&gt;lat2 = (lat2* 180/3.1415 + 360 ) % 360;&lt;br /&gt;lon2 = (lon2* 180/3.1415 + 360 ) % 360;&lt;br /&gt;&lt;br /&gt;//document.write("d " + d +"lat " + lat2 + "     " +   lat1* 180/3.1415 + "&amp;lt;&amp;gt;");&lt;br /&gt;//document.write("d " + d +"lng " + lon2+ "     " +   lon1* 180/3.1415+ "&amp;lt;&amp;gt;");&lt;br /&gt;&lt;br /&gt;var newPoint = new google.maps.LatLng( lat2 ,lon2);&lt;br /&gt;return newPoint;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//and we can finish the java script part&lt;br /&gt;&amp;lt; /script&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;as a desert: try out what happens when you zoom, very funny effect!&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;&lt;img alt="" border="0" src="http://www.contrechoc.com/layar/zoom.jpg" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;for the total source file, open VIEW SOURCE in your browser on page &lt;a href="http://www.contrechoc.com/crosslab/googleMapsExample.html"&gt;www.contrechoc.com/crosslab/googleMapsExample.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;found this page &lt;a href="http://www.powerhut.co.uk/googlemaps/custom_markers.php"&gt;http://www.powerhut.co.uk/googlemaps/custom_markers.php&lt;/a&gt; , for making custom marker's.&lt;br /&gt;this is a page with free official icons: &lt;a href="http://code.google.com/p/google-maps-icons/"&gt;http://code.google.com/p/google-maps-icons/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-5684932904829633008?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/5684932904829633008/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/google-maps-design.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/5684932904829633008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/5684932904829633008'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/google-maps-design.html' title='Google maps design'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-2000789323874589255</id><published>2010-09-21T11:26:00.000-07:00</published><updated>2010-09-23T05:17:52.959-07:00</updated><title type='text'>POI drawing</title><content type='html'>&lt;span style="font-family:arial;"&gt;When you get the feeling of JAVASCRIPT and do a bit of calculating you can start drawing nice figures on the earth!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;For my homepage I made a certain irregular-regular figure which I particularly like, the pentagon.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;For this we need to calculate 5 points from a center, for which I have used this function, made from the GPS calculating page:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;function bearing( latlngStart, dP, brngP ){&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    var R = 6371; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    var lat1 = latlngStart.lat()/180*3.1415;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    var lon1 = latlngStart.lng()/180*3.1415;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    var d = dP;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    var brng = brngP/180*3.1415;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    var lat2 = Math.asin( Math.sin(lat1)*Math.cos(d/R) +  Math.cos(lat1)*Math.sin(d/R)*Math.cos(brng) );&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    var lon2 = lon1 + Math.atan2(Math.sin(brng)*Math.sin(d/R)*Math.cos(lat1),  Math.cos(d/R)-Math.sin(lat1)*Math.sin(lat2));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    lat2 = (lat2* 180/3.1415 + 360 ) % 360;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    lon2 = (lon2* 180/3.1415 + 360 ) % 360;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    var newPoint = new google.maps.LatLng( lat2 ,lon2);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    return newPoint;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;     &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;This functions returns a newPoint, after doing some long mathematics.&lt;br /&gt;This point starts from a center point, and does a radius of dP kilometers, at an angle of &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;brngP degrees.&lt;/span&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;In a for loop this is done 5 times, getting a pentagon, and this is repeated five times in another for-loop, which shifts the starting angle.&lt;/span&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;In the same way a polygon, colored is added.&lt;/span&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;You can see the result here: &lt;a href="http://www.contrechoc.com/"&gt;http://www.contrechoc.com/ &lt;/a&gt;which is actually my homepage:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;&lt;p style="text-align: center;"&gt;&lt;br /&gt;&lt;img src="http://www.contrechoc.com/layar/poi-drawing.jpg" alt="" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-2000789323874589255?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/2000789323874589255/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/poi-drawing.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/2000789323874589255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/2000789323874589255'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/poi-drawing.html' title='POI drawing'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-6907565579606177383</id><published>2010-09-16T04:37:00.000-07:00</published><updated>2010-09-26T23:52:59.579-07:00</updated><title type='text'>locative utilities</title><content type='html'>&lt;span style="font-family:arial;"&gt;Handy website to find longitude and latitude of a spot directly:&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: arial;" href="http://www.gorissen.info/Pierre/maps/googleMapLocation.php"&gt;http://www.gorissen.info/Pierre/maps/googleMapLocation.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;If you want to calculate things with GPS you need an astronomer :-)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;GPS formula's:&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: arial;" href="http://www.movable-type.co.uk/scripts/latlong.html"&gt;http://www.movable-type.co.uk/scripts/latlong.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;Google Maps&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Google maps can be programmed in JAVASCRIPT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Here a Javascript tutorial (so without Google Maps)&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: arial;" href="http://richardbowles.tripod.com/javascript/menu.htm"&gt;http://richardbowles.tripod.com/javascript/menu.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Google Maps, watch it! There are different API (&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;span class="l"&gt;&lt;em&gt;&lt;em&gt;Application programming interface&lt;/em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;), that is systems of commands to program.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;This is the last one: &lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;( &lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;Google Maps JavaScript API V3&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;)&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: arial;" href="http://code.google.com/intl/nl/apis/maps/documentation/javascript/tutorial.html"&gt;http://code.google.com/intl/nl/apis/maps/documentation/javascript/tutorial.html&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;which does not use a server key anymore (?)&lt;/span&gt;, wel yes if you want to do it all in PHP and not JAVASCRIPT.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;Do not use:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;The version of this API before this (API V2) still uses a key, you can get from Google:&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: arial;" href="http://code.google.com/intl/nl/apis/maps/documentation/javascript/v2/overlays.html"&gt;http://code.google.com/intl/nl/apis/maps/documentation/javascript/v2/overlays.html&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;You can get the Google Maps key here: (bottom of page)&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: arial;" href="http://code.google.com/intl/nl/apis/maps/signup.html"&gt;http://code.google.com/intl/nl/apis/maps/signup.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;Google Maps using Javascript:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Start tutorial of Google Maps using JAVASCRIPT:&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: arial;" href="http://code.google.com/intl/nl/apis/maps/documentation/javascript/tutorial.html"&gt;http://code.google.com/intl/nl/apis/maps/documentation/javascript/tutorial.html&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;With these examples you can play around with Google Maps.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;But to use the database (with POI's) you have to add PHP and MYSQL. SO to keep it simple (as far as possible) you could better use PHP directly instead of a double mix of HTML, JAVASCRIPT and PHP.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;Google Maps using PHP (for easy connection with your database):&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;For PHP you have to include a PHP class, which can be downloaded from the tutorial pages.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Found this tutorial:&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: arial;" href="http://www.timshowers.com/2008/08/php-geocoding-tutorial-with-the-google-maps-api-part-one/"&gt;http://www.timshowers.com/2008/08/php-geocoding-tutorial-with-the-google-maps-api-part-one/&lt;/a&gt;&lt;br /&gt;&lt;a style="font-family: arial;" href="http://www.phpro.org/examples/Google-Maps-With-PHP-And-Phproogle.html"&gt;http://www.phpro.org/examples/Google-Maps-With-PHP-And-Phproogle.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-6907565579606177383?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/6907565579606177383/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/locative-utilities.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/6907565579606177383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/6907565579606177383'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/locative-utilities.html' title='locative utilities'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-9019543470574221623</id><published>2010-09-13T02:05:00.000-07:00</published><updated>2010-09-13T06:39:03.987-07:00</updated><title type='text'>HTML 5 and the GPS script</title><content type='html'>What is html 5 is difficult to answer in one sentence. Is it FLASH scripting inside HTML? Will it replace companies like LAYAR.com?&lt;br /&gt;&lt;br /&gt;Anyway making a page on your mobile phone with GPS and getting your location is fun!&lt;br /&gt;&lt;br /&gt;Some people have made this easy for us:&lt;br /&gt;&lt;a href="http://merged.ca/iphone/html5-geolocation"&gt;http://merged.ca/iphone/html5-geolocation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and indeed for the crosslab minor ( wdka.nl ) I hacked this page above for loading on my phone with gps in safari, and have put it on my server:&lt;br /&gt;&lt;a style="color: rgb(0, 0, 0);" href="http://www.contrechoc.com/layar/geoTest.html"&gt;http://&lt;/a&gt;&lt;a href="http://www.contrechoc.com/layar/geoTest.html"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;www.contrechoc.com/layar/geoTest.html&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar11.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;br /&gt;You can imagine what to do with this page:&lt;br /&gt;in the page connect to a database (use the same database of the previous posts on layar)&lt;br /&gt;look if you are in the neighbourhood of a POI (Point of interest) and do something!&lt;br /&gt;&lt;br /&gt;Now being in a browser you are outside the application of (for instance) layar.com.&lt;br /&gt;You have your own control over all the elements of the game, database, effects etc.&lt;br /&gt;&lt;br /&gt;For this you have to program a bit, in:&lt;br /&gt;html&lt;br /&gt;php (for a database connection)&lt;br /&gt;&lt;br /&gt;If you understand the page of the tutorial of layar.com:&lt;br /&gt;&lt;a href="http://layar.pbworks.com/First+Layar+Tutorial+-+Create+a+simple+layer"&gt;http://layar.pbworks.com/First+Layar+Tutorial+-+Create+a+simple+layer&lt;/a&gt;&lt;br /&gt;you could hack this page and salvage the useful bits for your own php page.&lt;br /&gt;&lt;br /&gt;One part of this script is calling a Google map. Here you can find the principles:&lt;br /&gt;&lt;a href="http://code.google.com/intl/nl/apis/maps/index.html#The_Hello_World_of_Google_Maps"&gt;http://code.google.com/intl/nl/apis/maps/index.html#The_Hello_World_of_Google_Maps&lt;/a&gt;&lt;br /&gt;where you find this tutorial:&lt;br /&gt;&lt;a href="http://code.google.com/intl/nl/apis/maps/documentation/javascript/tutorial.html"&gt;http://code.google.com/intl/nl/apis/maps/documentation/javascript/tutorial.html&lt;/a&gt;&lt;br /&gt;what you can do with that?&lt;br /&gt;see my current homepage: &lt;a href="http://www.contrechoc.com/"&gt;http://&lt;/a&gt;&lt;a href="http://www.contrechoc.com/"&gt;www.contrechoc.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar10.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="text-align: center;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-9019543470574221623?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/9019543470574221623/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/html-5-and-gps-script.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/9019543470574221623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/9019543470574221623'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/html-5-and-gps-script.html' title='HTML 5 and the GPS script'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-2433292464019039591</id><published>2010-09-13T01:18:00.000-07:00</published><updated>2010-09-13T01:41:50.658-07:00</updated><title type='text'>Make a LAYAR layer (the soft way)</title><content type='html'>Draft! version 1&lt;br /&gt;&lt;p style="text-align: left;"&gt; Making a storytelling layer with layar.com can be done the hard way, see the last post, making your database and putting your page on a server, but some nice folks have already facilitated this task. You can create a layar while seeing it and edit the properties of the points of interest.&lt;br /&gt;&lt;/p&gt;All the same:&lt;br /&gt;You have to create a developer LAYAR account. (This costs about one working day)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On the page:&lt;br /&gt;&lt;a href="http://www.hoppala.eu/"&gt;http://www.hoppala.eu/&lt;/a&gt;&lt;br /&gt;you can make points of interest, provide the data and it will make and host the database.&lt;br /&gt;first go to &lt;a href="http://www.hoppala.eu/"&gt;http://www.hoppala.eu/&lt;/a&gt;&lt;br /&gt;then make an account and log in (checking your mail for the password.)&lt;br /&gt;&lt;br /&gt;The dashboard is rudimentary, but it functions.&lt;br /&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar8.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;br /&gt;First you have to edit name and title of the page, (icons to the right)&lt;br /&gt;Then you can click on the line of the page to get the map view, zoom in and "add augment" right under on the page to add a POI icon, clicking on the POI icon you can specify.&lt;br /&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar9.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;If finished you can copy the link of the URL of your layar from the dashboard page.&lt;br /&gt;&lt;br /&gt;Then  go to the LAYAR developers site and&lt;br /&gt;Create a layar&lt;br /&gt;Edit title name and insert the link from hoppala&lt;br /&gt;&lt;br /&gt;in principle you can now already test it on the testing page: &lt;a href="http://publishing.layar.com/publishing/test/"&gt;API Test Page&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar7.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-2433292464019039591?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/2433292464019039591/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/make-layar-layer-soft-way.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/2433292464019039591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/2433292464019039591'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/make-layar-layer-soft-way.html' title='Make a LAYAR layer (the soft way)'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2688274079781877854.post-7320906597330477918</id><published>2010-09-13T00:22:00.000-07:00</published><updated>2010-09-13T02:02:31.955-07:00</updated><title type='text'>Make a LAYAR layer (the hard way)</title><content type='html'>First draft! (This is the hard way, for the soft way see the next post.)&lt;br /&gt;&lt;p style="text-align: left;"&gt;In principle to get a layar you have to set up a database with the points of interest.Then put a php script on your server.Then make a layar on the developers site of layar.com and you can test it.&lt;/p&gt;&lt;p style="text-align: left;"&gt;( you can find the layar tutorial at: &lt;a href="http://layar.pbworks.com/First+Layar+Tutorial+-+Create+a+simple+layer"&gt;http://layar.pbworks.com/First+Layar+Tutorial+-+Create+a+simple+layer&lt;/a&gt; but of course this leaves out the how to get your own server and ftp etc.)&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;create a developpers account on &lt;a href="http://publishing.layar.com/"&gt;http://publishing.layar.com/ &lt;/a&gt;this may take a day.&lt;/li&gt;&lt;li&gt;when you are registered activate account etc.&lt;/li&gt;&lt;li&gt;for your account you need a server, a free server can be obtained here: &lt;a href="http://www.freebyte.com/"&gt;&lt;span class="f"&gt;&lt;cite&gt;www.&lt;b&gt;freebyte&lt;/b&gt;.com&lt;/cite&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="f"&gt;register an account here and activate.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="f"&gt;go to controlpanel and log in: &lt;/span&gt;&lt;a href="http://panel.byethost.com/"&gt;http://panel.byethost.com&lt;/a&gt;&lt;/li&gt;&lt;li&gt;go to databases and take the link MySQL databases &lt;/li&gt;&lt;li&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar5.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="text-align: center;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;make a database called &lt;span style="font-size:85%;"&gt;&lt;b&gt;LAYAR&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;   &lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar6.jpg" alt="" width="500" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;go admin (on this page too, to the right of the Backup button)&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;go SQL you get a window to put in code&lt;/li&gt;&lt;li&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar2.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;insert a code to make a table:&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-style: italic;"&gt;SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";&lt;br /&gt;&lt;br /&gt;CREATE TABLE IF NOT EXISTS `POI_Table` (&lt;br /&gt;`id` int(50) NOT NULL auto_increment,&lt;br /&gt;`attribution` varchar(50) default NULL,&lt;br /&gt;`title` varchar(50) default NULL,&lt;br /&gt;`lat` decimal(20,10) default NULL,&lt;br /&gt;`lon` decimal(20,10) default NULL,&lt;br /&gt;`imageURL` varchar(255) default NULL,&lt;br /&gt;`line4` varchar(50) default NULL,&lt;br /&gt;`line3` varchar(50) default NULL,&lt;br /&gt;`line2` varchar(50) default NULL,&lt;br /&gt;`type` int(11) NOT NULL default '0',&lt;br /&gt;`actions` varchar(50) default NULL,&lt;br /&gt;`dimension` int(1) NOT NULL default '1',&lt;br /&gt;`alt` int(10) default NULL,&lt;br /&gt;`relativeAlt` int(10) default NULL,&lt;br /&gt;`transform` int(10) default NULL,&lt;br /&gt;`object` int(10) default NULL,&lt;br /&gt;`distance` decimal(20,10) default NULL,&lt;br /&gt;PRIMARY KEY  (`id`)&lt;br /&gt;) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;click start and the tabel will be made.&lt;/li&gt;&lt;li&gt;now we add some data:&lt;/li&gt;&lt;li&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar1.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;go SQL again and to get a few entries fast insert (and press the start button):&lt;/li&gt;&lt;/ol&gt;INSERT INTO `POI_Table` (`id`, `attribution`, `title`, `lat`, `lon`, `imageURL`, `line4`, `line3`, `line2`, `type`, `actions`, `dimension`, `alt`, `relativeAlt`, `transform`, `object`, `distance`) VALUES&lt;br /&gt;(2, 'acadmie richting 2', 'acadmie richting 2', '51.9180000000', '4.4900000000', 'http://custom.layar.nl/layarimage.jpg', NULL, 'distance:%distance%', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5000.0000000000'),&lt;br /&gt;(3, 'acadmie richting 3', 'acadmie richting 3', '51.9170780000', '4.4890170000', 'http://custom.layar.nl/layarimage.jpg', NULL, 'distance:%distance%', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5000.0000000000'),&lt;br /&gt;(4, 'acadmie richting 3', 'acadmie richting 3', '51.9181360000', '4.4852400000', 'http://custom.layar.nl/layarimage.jpg', NULL, 'distance:%distance%', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5000.0000000000'),&lt;br /&gt;(5, 'acadmie richting 4', 'acadmie richting 4', '51.9204130000', '4.4860980000', 'http://custom.layar.nl/layarimage.jpg', NULL, 'distance:%distance%', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5.0000000000'),&lt;br /&gt;(18, 'street', 'blaak', '51.9170000000', '4.4955000000', 'http://custom.layar.nl/layarimage.jpg', NULL, 'distance:%distance%  ', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5000.0000000000'),&lt;br /&gt;(20, 'boulevard', 'weena', '51.9175000000', '4.4954000000', 'http://custom.layar.nl/layarimage.jpg', NULL, 'distance:%distance%  ', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5000.5000000000'),&lt;br /&gt;(17, 'marker', 'hello rotterdam', '51.9171800000', '4.4953000000', 'http://custom.layar.nl/layarimage.jpg', NULL, 'distance:%distance%  ', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5000.0000000000'),&lt;br /&gt;(19, 'street', 'coolsingel', '51.9176000000', '4.4952000000', 'http://custom.layar.nl/layarimage.jpg', NULL, 'distance:%distance%  ', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5000.0000000000'),&lt;br /&gt;(16, 'architecture', 'where do you want to be', '51.9169000000', '4.4951000000', 'http://custom.layar.nl/layarimage.jpg', NULL, 'distance:%distance%  ', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5000.0000000000'),&lt;br /&gt;(15, 'architecture', 'where do you want to be', '51.9800000000', '4.6000000000', 'http://custom.layar.nl/layarimage.jpg', NULL, 'distance:%distance%  ', NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5000.0000000000'),&lt;br /&gt;(21, 'house', 'my home', '51.9140000000', '4.4280000000', 'http://custom.layar.nl/layarimage.jpg', NULL, NULL, NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, '5000.5000000000');&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;now first we need to put a script on the server you have created to find the POI's in the table you just made: go to your FTP program, I use firefox with FireFTP.&lt;/li&gt;&lt;li&gt;make an account in your FTP program and log in, you find the login name and password in your bytehost documentation&lt;/li&gt;&lt;li&gt;make  folder called "layar"&lt;/li&gt;&lt;li&gt;now copy the file called "FirstTutorial_POI.php" from the download you find on this pae: &lt;a href="http://layar.pbworks.com/First+Layar+Tutorial+-+Create+a+simple+layer"&gt;http://layar.pbworks.com/First+Layar+Tutorial+-+Create+a+simple+layer&lt;/a&gt; just above number 6 testing the layar&lt;/li&gt;&lt;li&gt;rename this file: so FirstTutorial_POI.php becomes "layar_POI.php"&lt;/li&gt;&lt;li&gt;open this file in textEdit (or alike)&lt;/li&gt;&lt;li&gt;now you have to change the login and passwords in the file to the ones you got from bytehost:&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;$dbhost = "localhost";// local host must become "sqlxxx.byethostxx.com", where xx are your numbers&lt;br /&gt;$dbdata = "database_name";//"bxx_xxxxxxx_LAYAR", where xx are your numbers&lt;br /&gt;$dbuser = "database_username";//"bxx_xxxxxxx"&lt;br /&gt;$dbpass = "database_password";// your password&lt;br /&gt;&lt;br /&gt;save the file and upload in the "layar" folder.&lt;ol&gt;&lt;li&gt;go to the developers site of layar: &lt;a href="http://publishing.layar.com/publishing/layers/"&gt;http://publishing.layar.com/publishing/layers/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;login etc&lt;/li&gt;&lt;li&gt;create layar&lt;/li&gt;&lt;li&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar3.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;now you get the first screen with properties of the layar,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;give your layar a title&lt;/li&gt;&lt;li&gt;now fill in the link to the file on your database: http://YOURNAME.byethost31.com/layar/layar_POI.php, where YOURNAME is the name of your bytehost account&lt;/li&gt;&lt;li&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar4.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;do a SAVE&lt;/li&gt;&lt;li&gt;file in the tabs LISTING and DETAILS, indicated in red&lt;/li&gt;&lt;li&gt;The last tab FILTERS, i use to set the range slider to 50000 (meters) which is easy for testing&lt;/li&gt;&lt;li&gt;in principle this should work, that is you can test the page on the &lt;a href="http://publishing.layar.com/publishing/test/"&gt;API Test Page&lt;/a&gt; of layar&lt;/li&gt;&lt;li&gt;later on you can test on your cell phone&lt;/li&gt;&lt;li&gt;&lt;p style="text-align: center;"&gt; &lt;img class="aligncenter" title="layar" src="http://www.contrechoc.com/layar/layar7.jpg" alt="" width="500" /&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: rgb(255, 255, 153);"&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2688274079781877854-7320906597330477918?l=crosslabminor-layar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crosslabminor-layar.blogspot.com/feeds/7320906597330477918/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/make-layar-layer-hard-way.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/7320906597330477918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2688274079781877854/posts/default/7320906597330477918'/><link rel='alternate' type='text/html' href='http://crosslabminor-layar.blogspot.com/2010/09/make-layar-layer-hard-way.html' title='Make a LAYAR layer (the hard way)'/><author><name>underCover</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
