From: maxious Date: Tue, 02 Nov 2010 13:59:56 +0000 Subject: More network 10 updates X-Git-Url: https://maxious.lambdacomplex.org/git/?p=bus.git&a=commitdiff&h=cbd4cfb99deafe3b04112026dc22776df8727d9f --- More network 10 updates --- --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -maxious-canberra-transit-feed/output/ +origin-src --- a/betweenpoint.load.php +++ /dev/null @@ -1,76 +1,1 @@ - nodes of the first movie. - * Output the rating scale, too. */ -foreach ($xml->node as $node) { - $geoPo = geopoEncode((float)$node['lat'],(float)$node['lon']); - $node['lat'] = (int) ((float)$node['lat']*10000000); - $node['lon'] = (int) ((float)$node['lon']*10000000); - echo($node['lat'].",".$node['lon']."=$geoPo
"); - $sql = "INSERT INTO stops (geohash, lat, lng) VALUES('$geoPo','{$node['lat']}','{$node['lon']}')"; - $result = pg_query($conn, $sql); - if (!$result) { - echo("Error in SQL query: " . pg_last_error() ."
\n"); - } -flush(); - -} -?> --- a/betweenpoint.php +++ b/betweenpoint.php @@ -7,71 +7,65 @@ function init() { - // create the ol map object - var map = new OpenLayers.Map('map'); + // create the ol map object + var map = new OpenLayers.Map('map'); - var osmtiles = new OpenLayers.Layer.OSM("local", "http://127.0.0.1/Maps/OSM/${z}/${x}/${y}.png") + var osmtiles = new OpenLayers.Layer.OSM("local", "http://127.0.0.1/Maps/OSM/${z}/${x}/${y}.png") // use http://open.atlas.free.fr/GMapsTransparenciesImgOver.php and http://code.google.com/p/googletilecutter/ to make tiles - markers = new OpenLayers.Layer.Markers("Between Stop Markers"); + markers = new OpenLayers.Layer.Markers("Between Stop Markers"); var timeicon = new OpenLayers.Icon("http://maps.google.com/mapfiles/kml/pushpin/grn-pushpin.png",new OpenLayers.Size(32,32)); var timepoints = new OpenLayers.Layer.GeoRSS("Timing Points", "displaytimepoints.georss.php", { icon: timeicon }); map.addLayers([osmtiles, markers,timepoints]); map.addControl(new OpenLayers.Control.LayerSwitcher()); - map.zoomToExtent(markers.getDataExtent()); + map.zoomToExtent(markers.getDataExtent()); } + +