Skip to content

Commit

Permalink
Font preference is now passed to Pin and Marker
Browse files Browse the repository at this point in the history
  • Loading branch information
netsgnut committed Jul 4, 2015
1 parent 74c1083 commit 3429776
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Globe.js
Expand Up @@ -382,7 +382,8 @@ Globe.prototype.addPin = function(lat, lon, text){

var opts = {
lineColor: this.pinColor,
topColor: this.pinColor
topColor: this.pinColor,
font: this.font
}

var altitude = 1.2;
Expand Down Expand Up @@ -457,7 +458,8 @@ Globe.prototype.addMarker = function(lat, lon, text, connected){
var marker;
var opts = {
markerColor: this.markerColor,
lineColor: this.markerColor
lineColor: this.markerColor,
font: this.font
};

if(typeof connected == "boolean" && connected){
Expand Down

0 comments on commit 3429776

Please sign in to comment.