[OpenLayers-Users] More on tileerror - why doesnt this work? (Dont want css)

Phil Scadden p.scadden at gns.cri.nz
Thu Nov 1 21:06:38 PDT 2012


var lyrMapnik = new OpenLayers.Layer.OSM.Local("NZ Test",[
"tiles/${z}/${x}/${y}.png",
"tiles/${z}/${x}/${y}.png",
"tiles/${z}/${x}/${y}.png"
], {'isBaseLayer': true});
lyrMapnik.events.register("tileerror",function(evt,tile){
tile.src = "empty.png";
});

I dont want to .olImageLoadError css because the tile to use depends on 
the layer. I dont want global.
-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.



More information about the Users mailing list