ALKMaps.Layer.VLDXF

Instances of ALKMaps.Layer.VLDXF are used to display data from VisionLink FlexGateay Web Mapping Services.  Create a new VLDXF layer with the ALKMaps.Layer.VLDXF constructor.

Inherits from

var map = new ALKMaps.Map("map");
var layer = new ALKMaps.Layer.BaseMap("ALK Maps", {}, {
    sphericalMercator: true, // You don't have set this. Default is true.
    custMaxZoomLevels: 24,
    transitionEffect: "resize",
    wrapDateLine: true
});

var vldxf = new ALKMaps.Layer.VLDXF(
    "DXF overlay",
    "http://localhost:3001/FlexGateway/wms.svc/",
    {
       // Your custom data goes here. They will be attached to the URL.
       Format: "image/png",
       Transparent: true,
       ServiceName: "VSS",
       CustomerID: 27657,
       ProjectID: 544,
       SessionID: "74df24b7d0ee472fa28765a58198ac7a",
       Version: "1.3.0",  // Note: If version is 1.3 or later, our code will add CRS: "EPSG:900913".
       Layers: "basic",
       Styles: "" ,
       DXFFILENAME: "Milling - DesignMap.dxf"
    },
    {
        // Restrict to given zoom levels.
        maxResolution: map.getResolutionForZoom(7),
        minResolution: map.getResolutionForZoom(17)
    }
);

map.addLayers([layer, vldxf])
Summary
ALKMaps.Layer.VLDXFInstances of ALKMaps.Layer.VLDXF are used to display data from VisionLink FlexGateay Web Mapping Services.
Functions
getURLThis method is different from the base class in the way that XTILE, YTILE indexes and ZOOM level are added to the request URL.
getXYZCalculates x, y and z for the given bounds.

Functions

getURL

getURL: function (bounds)

This method is different from the base class in the way that XTILE, YTILE indexes and ZOOM level are added to the request URL.

getXYZ

Calculates x, y and z for the given bounds.

Parameters

bounds{ALKMaps.Bounds}

Returns

{Object}an object with x, y and z properties.
getURL: function (bounds)
This method is different from the base class in the way that XTILE, YTILE indexes and ZOOM level are added to the request URL.
Instances of ALKMaps.Layer.VLDXF are used to display data from VisionLink FlexGateay Web Mapping Services.
Instances of ALKMaps.Layer.WMS are used to display data from OGC Web Mapping Services.
Instances of this class represent bounding boxes.
Close