Derive datasource type from 'External' if possible.

This commit is contained in:
Young Hahn 2011-05-26 22:51:15 -04:00
parent efb301b357
commit 277d6a520c

View File

@ -98,6 +98,9 @@ carto.Renderer = function Renderer(env) {
next(new Error('No .shp file found in zipfile'));
} else {
l.Datasource.file = file;
l.Datasource.type = l.Datasource.type ||
(external.type.ds_options &&
external.type.ds_options.type);
next();
}
});