0

Merge branch 'dtt-c-render' into py-package

This commit is contained in:
Aaron Griffith
2011-04-13 02:42:22 -04:00
8 changed files with 272 additions and 61 deletions

View File

@@ -160,7 +160,12 @@ function initMarkers() {
if (markersInit) { return; }
markersInit = true;
// first, give all collections an empty array to work with
for (i in signGroups) {
markerCollection[signGroups[i].label] = [];
}
for (i in markerData) {
var item = markerData[i];
@@ -202,11 +207,8 @@ function initMarkers() {
icon: iconURL,
visible: false
});
if (markerCollection[label]) {
markerCollection[label].push(marker);
} else {
markerCollection[label] = [marker];
}
markerCollection[label].push(marker);
if (item.type == 'sign') {
prepareSignMarker(marker, item);