Google Maps
#1
Posted 02 March 2010 - 03:38 PM
Charles Syrett
Map Graphics
http://www.mapgraphics.com
#2
Posted 02 March 2010 - 03:57 PM
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
#3
Posted 02 March 2010 - 04:08 PM
Charles Syrett
Map Graphics
http://www.mapgraphics.com
Assuming you're referring to the map... It's probably a custom Google tileset. They're fairly easy to make out of any georeferenced image.
#4
Posted 02 March 2010 - 05:18 PM
transit_layer.getTileUrl = function(tile, zoom) { return "http://mt"+((tile.x+tile.y)%4 == 1 ? '0' : (tile.x+tile.y)%4)+".myttc.ca/tiles/z"+zoom+"x"+tile.x+"y"+tile.y+".png"; };
So, they are using custom tiles. The tiles are also generated from OpenStreetMap, I am 100% sure of this, because I have been able to find a lot of my additions to the map data. It's a shame they don't cite osm.org anywhere on their site though.
#5
Posted 03 March 2010 - 12:34 PM
Charles Syrett
Map Graphics
http://www.mapgraphics.com
Looking at the source code in the maps.js (After a comment stating "This is a hack") you'll see:
transit_layer.getTileUrl = function(tile, zoom) { return "http://mt"+((tile.x+tile.y)%4 == 1 ? '0' : (tile.x+tile.y)%4)+".myttc.ca/tiles/z"+zoom+"x"+tile.x+"y"+tile.y+".png"; };
So, they are using custom tiles. The tiles are also generated from OpenStreetMap, I am 100% sure of this, because I have been able to find a lot of my additions to the map data. It's a shame they don't cite osm.org anywhere on their site though.
#6
Posted 03 March 2010 - 02:05 PM
I wish Google would hire him.
#7
Posted 03 March 2010 - 02:25 PM
Charles Syrett
Map Graphics
http://www.mapgraphics.com
Damn! Those are some fine looking online maps. My compliments to the designer.
I wish Google would hire him.
#8
Posted 03 March 2010 - 07:47 PM
I am impressed with transit line and labeling overlay work.
#9
Posted 03 March 2010 - 09:22 PM
I'm one of the two programmers responsible for myttc.ca, so I thought I'd chime in
The snippet of code you found there, is for the transit overlay - not the map tiles. The map tiles come from cloudmade.com. They provide a comparable set of APIs to Google Maps but use OpenStreetMap data as the source. They provide actually a LOT of tools for doing this sort of thing - including as you've noticed, incredible control over tile styling. We selected the style and replaced the Google Map tiles with our own, because we personally found the Google Map tiles to be rather ugly after staring at them for a while. We still use the Google Maps slippy map because it's still rather powerful (though we have experimented with implementing our own, polylines are still a problem for us)
For the transit layer, this is a good example:
http://code.google.c...lay-simple.html
unfortunately there really isn't a good example for replacing the map tiles themselves, but it's not too much different then the above. I suppose you could use our source as reference
We cite OpenStreetMap at http://myttc.ca/colophon, though perhaps it should be more apparent.
Side note, we are not government funded or associated with the TTC - just 2 developers who were unsatisfied with the TTC website and interested in making our own. I'll pass your complements onto Kieran, who created the cloudmade style and really pushed for that feature.
I think I covered everything but if you have more questions, I'm willing to help
Kevin Branigan
http://refactory.ca
#10
Posted 03 March 2010 - 10:13 PM
Charles Syrett
Map Graphics
http://www.mapgraphics.com
I would image they went through pains to make their own tile set for the streets. For a government site, can you image WHY they would ($) do this? At least in Google Maps, Finch St stands out.
I am impressed with transit line and labeling overlay work.
#11
Posted 03 March 2010 - 10:35 PM
Also: the "dirty hack" comment in the code refers to explicitly passing the string '0' since JavaScript evaluates the integer 0 as 'false' (which means 'an empty string'). I was originally going to look more into typecasting, but wanted to move on quickly.
If there are any other questions we'd be happy to share what we can.
Cheers,
Kieran
#12
Posted 25 March 2010 - 01:14 PM
American vs European style street maps
History of MapArt
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account

Canada
Back to top
Netherlands
United States









