manhattan grid example: minor changes

This commit is contained in:
rolux 2012-07-03 18:19:01 +02:00
parent 71a570a714
commit 0d3119d6f9

View file

@ -462,7 +462,7 @@ Ox.load('Image', function() {
}); });
}); });
/* /*
Then, on the Manhattan tile, we draw Broadway, too. Then, on the Manhattan tile, we add Broadway.
*/ */
if (marker.title == 'Manhattan') { if (marker.title == 'Manhattan') {
var line = mapLine(Ox.getLine( var line = mapLine(Ox.getLine(
@ -471,7 +471,7 @@ Ox.load('Image', function() {
1 1
), g); ), g);
image.drawPath(line, { image.drawPath(line, {
color: 'rgba(0, 0, 255, 0.5)', color: colors.broadway,
width: 2 width: 2
}); });
} }
@ -604,9 +604,9 @@ Ox.load('Image', function() {
coordinates. coordinates.
*/ */
$sign.html( $sign.html(
Ox.formatNumber(as.avenue, 0) + 'th Av & ' Ox.formatNumber(as.avenue) + 'th Av & '
+ as.hemisphere + ' ' + as.hemisphere + ' '
+ Ox.formatNumber(as.street, 0) + 'th St' + Ox.formatNumber(as.street) + 'th St'
+ '<div class="latlng">' + '<div class="latlng">'
+ Ox.formatDegrees(latlng.lat, 'lat') + ' / ' + Ox.formatDegrees(latlng.lat, 'lat') + ' / '
+ Ox.formatDegrees(((latlng.lng + 180) % 360) - 180, 'lng') + Ox.formatDegrees(((latlng.lng + 180) % 360) - 180, 'lng')