Skip to content

Invalid LatLng object (NaN, NaN) when trying to zoom out/in with WMS layer. #5

@Ricardo-C-Oliveira

Description

@Ricardo-C-Oliveira

I'm trying to add a WMS layer on top of the base the base tile layer and I'm getting the following error: Uncaught Error: Invalid LatLng object: (NaN, 0)

Here is my resolution set-up based of polarmap.js.

var ORIGINS = { '3573': [-20037508, 20037508] };
var maxResolution = (tileDetails.origin[1] - tileDetails.origin[0]) / 256; var resolutions = [];
for (var i = tileDetails.zoom.min; i <= tileDetails.zoom.max; i++) { resolutions.push(maxResolution / Math.pow(2, i)); };

My layer also comes as EPSG: 3573, so I'm assuming that the same values used for the ArcticConnect base tile would be valid for my WMS, correct?

Did anyone ever encountered a similar issue when add extra WMS layers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions