Resolve Features are not appearing where expected when using the NamedTileService in Spectrum Spatial

product affected: Spectrum Spatial™

Issue

When using OpenLayers and serving map objects via the MappingServiceLayer the objects appear fine when using MapBox as a base layer:

User-added image


However, when working with a customer's own NamedTiles, as the base layer using the TileServiceLayer, then the map objects appear way to be aligned improperly:

User-added image

Cause

The problem is caused by the OpenLayers code having a different set of bounds compared to the bounds of the NamedTile.

Resolution

UPDATED: September 18, 2017
To resolve, change the bounds in the OpenLayers code to match the bounds of the NamedTile.

Originally the bounds were:
 
var map;
var projection = new OpenLayers.Projection("epsg:3857");
var extent     = new OpenLayers.Bounds(100000, 7000000, 4600000, 11600000);


But these are not the bounds of EPSG:3857.  Change them to:
 
var map;
var projection = new OpenLayers.Projection("epsg:3857");
var extent     = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34);


The points then appear were expected:

User-added image