allow for dynamically colored and sized map markers
This commit is contained in:
parent
74099f8642
commit
e6633a2953
1 changed files with 1 additions and 5 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue