Still working on vector tiles
This commit is contained in:
parent
b1e13e9306
commit
944c8eee53
|
@ -331,7 +331,7 @@ const styles = {
|
|||
src: icon,
|
||||
scale: 1.5,
|
||||
opacity: 0.9,
|
||||
// anchor: [0, 0],
|
||||
// anchor: [0, 0],
|
||||
}),
|
||||
text: new Text({
|
||||
text: name,
|
||||
|
@ -361,7 +361,7 @@ export const style = (feature: Feature, resolution: number) => {
|
|||
const params = styles[type].getParameters(feature);
|
||||
const getStyle = styles[type].getStyle;
|
||||
const style = getStyle(params);
|
||||
// console.log({ caller: 'style', type, params, style });
|
||||
console.log({ caller: 'style', feature, type, params, style });
|
||||
if (style === null) {
|
||||
return createDefaultStyle(feature, resolution)[0];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue