Hi,
I try to work with tilelayers, and when OM. works with SRID 2180 tile map are not visible, what should i do to use for example OpenStreetMap? without TileLayers(addMapThemes) all works fine.
part of code:
function showMap()
{
map = new OM.Map(
document.getElementById('map'),
{
mapviewerURL: baseURL,
universe: new OM.universe.Universe(
{
srid : 2180
, bounds : mBoundingRect
, numberOfZoomLevels: 11
})
}) ;
addSqlVectorThemes();
addMapThemes();
....
function addMapThemes()
{
/* layer = new OM.layer.ElocationTileLayer("vLayer_MAP");*/
layer = new OM.layer.OSMTileLayer("vLayer_MAP");
layers["vLayer_MAP"] = layer;
map.addLayer(layer) ;
}
function addSqlVectorThemes()
{
createLineStyles();
layerLink = new OM.layer.VectorLayer("vLayer_LINK",
{
def:
{
type:OM.layer.VectorLayer.TYPE_JDBC,
....
Regards,
Tomek