forked from 0x2620/oxjs
merging changes
This commit is contained in:
parent
4f81b9eaee
commit
7968a11116
5 changed files with 23 additions and 5 deletions
|
|
@ -19,7 +19,21 @@ Ox.MapMarker = function(options) {
|
|||
size: 16
|
||||
}, options);
|
||||
|
||||
var that = this;
|
||||
var that = this,
|
||||
typeColor = {
|
||||
country: [0, 0, 255],
|
||||
region: [128, 0, 255],
|
||||
city: [255, 0, 0],
|
||||
borough: [255, 128, 0],
|
||||
street: [255, 255, 0],
|
||||
premise: [128, 255, 0],
|
||||
feature: [0, 255, 0],
|
||||
other: [128, 128, 128]
|
||||
};
|
||||
Ox.print('TYPE:', options.place.type)
|
||||
if (typeColor[options.place.type]) {
|
||||
options.color = typeColor[options.place.type];
|
||||
}
|
||||
|
||||
Ox.forEach(options, function(val, key) {
|
||||
that[key] = val;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue