Skip to content

Commit

Permalink
carto client build
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewxhill committed Jan 28, 2012
1 parent d7182aa commit 7b443c9
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 26 deletions.
17 changes: 8 additions & 9 deletions build/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions build/cartodb-gmapsv3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 10 additions & 17 deletions src/app.js
Expand Up @@ -79,6 +79,13 @@ function initialize() {
stylers: [{
visibility: "off"
}]
},
{
featureType: "administrative.locality",
elementType: "labels",
stylers: [{
visibility: "on"
}]
}]
};

Expand All @@ -100,7 +107,7 @@ function initialize() {
script.type = 'text/javascript';
script.src = "build/cartodb-gmapsv3.js";
head.appendChild(script);
script.onreadystatechange = function() {
script.onload = function() {
ie_cartodb2_gmapsv3 = new google.maps.CartoDBLayer({
map_canvas: 'map_canvas',
map: map,
Expand Down Expand Up @@ -129,22 +136,8 @@ function initialize() {
var sh = [
{
'point-color': '#FFF',
'line-color': function(data) {
if (data.zipcode == 32720 || data.zipcode == 32724) {
return "rgba(11,11,11, 0.6)";
} else {
return "rgba(0, 0, 0, 0.4)";
}
},
'line-width': function(data) {
if (data.cartodb_id == -1.0) {
return 3;
} else if (data.zipcode == 32720 || data.zipcode == 32724) {
return 2.8;
} else {
return 0.7;
}
},
'line-color': "rgba(0, 0, 0, 0.4)",
'line-width': .7,
'polygon-fill': function(data) {
if (data.cartodb_id == -1.0) {
return "rgba(0,0,0,0)";
Expand Down

0 comments on commit 7b443c9

Please sign in to comment.