allow for dynamically colored and sized map markers

This commit is contained in:
rolux 2012-04-04 00:36:22 +02:00
parent 74099f8642
commit e6633a2953

View file

@ -28,8 +28,6 @@ Ox.MapPlace = function(options) {
editing: false, editing: false,
geoname: '', geoname: '',
map: null, map: null,
markerColor: [255, 0, 0],
markerSize: 16,
name: '', name: '',
north: 0, north: 0,
selected: false, selected: false,
@ -75,10 +73,8 @@ Ox.MapPlace = function(options) {
); );
if (!that.marker) { if (!that.marker) {
that.marker = new Ox.MapMarker({ that.marker = new Ox.MapMarker({
color: that.markerColor,
map: that.map, map: that.map,
place: that, place: that
size: that.markerSize
}); });
that.rectangle = new Ox.MapRectangle({ that.rectangle = new Ox.MapRectangle({
map: that.map, map: that.map,