DrawObjectLayer: Difference between revisions
Jump to navigation
Jump to search
(→) |
(→) |
||
Line 8: | Line 8: | ||
interface IGdkDrawLayerInfo { | interface IGdkDrawLayerInfo { | ||
LayerType: "GdkDrawLayer"; | LayerType: "GdkDrawLayer"; | ||
Id: string; | Id: string; | ||
Name?: string; | Name?: string; | ||
Description?: string; | Description?: string; |
Revision as of 14:11, 26 April 2022
About
The Draw Object Layer is used to display tactical graphics served as map tiles from the draw object service.
Setup
interface IGdkDrawLayerInfo {
LayerType: "GdkDrawLayer";
Id: string;
Name?: string;
Description?: string;
Visible?: boolean;
ZoomRange?: [minZoom: number, maxZoom: number];
ParentLayerId?: string;
LogLevel?: LogLevel;
StoreId?: string;
StyleXml?: UrlOrInlineData;
FilterXml?: UrlOrInlineData;
DrawObjectServiceUri?: URL;
RenderServiceUri?: URL;
UpdateIntervalMs?: number;
}
Example
include {Layers} from "@mariateleplan/map-core"
const DOLayer = new Layers.DrawObjectLayer{
LayerType:"GdkDrawLayer",
Id:"drawobjs",
StoreId:"test",
Name:"GDK Objects",
Description:"TPG test draw object layer",
DrawObjectServiceUri:new URL("http://serviceHosterName:PORT/drawobjects/web/"),
RenderServiceUri:new URL("http://serviceHosterName:PORT/drawobjectrendering/web/"),
StyleXml:{Type:"inline", Value:""}
}