1
0
Fork 0
forked from 0x2620/oxjs

merging changes

This commit is contained in:
rolux 2011-05-30 20:57:22 +02:00
commit 7968a11116
5 changed files with 23 additions and 5 deletions

View file

@ -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;