yaronn / map-canvas

9 stars 3 forks source link

Adds ability to change color and character of map marker #1

Closed bryanashley closed 9 years ago

bryanashley commented 9 years ago

Adds a third, optional parameter, to change the character and color that is displayed on the map. I was going to combine this with the already optional marker_type, but I didn't want to make an api-breaking change. It's up to you which approach we take.

yaronn commented 9 years ago

Thanks @bryanashley!

As you recommended I have cleaned up the current method and simplified the API (still ok to break stuff). Now you can do:

map.addMarker({"lon" : "37.5000", "lat" : "-79.0000", color: "red", char: "X" })

(also from blessed-contrib)