R: [OpenLayers-Dev] Tile issue, points layer cut
jcbpro81
jean.christophe.bastin at projections.be
Wed Sep 28 09:35:25 EDT 2011
Hello and thanks for the answers.
@ Peter : I didn't found yet a buffer parameter like you said in MapServer.
The only thing I found for now is a OUTPUTFORMAT FORMATOPTION INTERLACE but
I really don't know if it's used for tilling, because MapServer help doesn't
give much informations about it.
I have to try...
@ Michele : here is the way I request :
-----------------------------------------------------------------------------------------------
var mapOptions = {
maxExtent: new OpenLayers.Bounds(minx, miny, maxx, maxy),
maxResolution: "auto"
};
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
map = new OpenLayers.Map('map', mapOptions);
layer = new OpenLayers.Layer.MapServer("myMap", "url", {map:
'mapfile.map'});
map.addLayers([layer]);
-----------------------------------------------------------------------------------------------
Making research on "Untiled mode", I found an example using parameter
"{singleTile: true}".
This parameter works well, my points and logos aren't cut anymore.
That's a solution I will keep for now, but if the map has a lot of
informations, loading one big tile could be time consuming.
I could make it more "user friendly" with a loading text for example.
Is there a "map loaded event" that I can use to display when the map is
loaded ?
Something like this :
-----------------------------------------------------------------------------------------------
document.getElementById("loadingBox").innerHTML = "Loading map...";
map.events.register('onloaded', map, function(evt) {
document.getElementById("loadingBox").innerHTML = "";
}
-----------------------------------------------------------------------------------------------
Where can I find all events available ?
I make my researchs on this site :
http://dev.openlayers.org/docs/files/OpenLayers-js.html
It seems pretty well, but when I look more deep inside, I realise it lacks
of details like objects' events.
Kind regards,
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Tile-issue-points-layer-cut-tp6839846p6840211.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
More information about the Dev
mailing list