Thanks..i will do and i let you know.

Francesco

>----Messaggio originale----
>Da: [email protected]
>Data: 16/02/2012 14.59
>A: "[email protected]"<[email protected]>
>Cc: <[email protected]>, <[email protected]>
>Ogg: Re: Re: Re: Re: [OpenLayers-Users] Capture Tile information
>
>I don't know to be honest, however this person has;
>http://lists.osgeo.org/pipermail/openlayers-users/2010-February/015920.html
>and it might be worth getting in touch with them.
>
>Toby
>
>On 16 February 2012 13:56, [email protected]
><[email protected]> wrote:
>> Good solution.. the last question is:
>> i can capture if an error is occurs during the tile loading 
(olImageLoadError)
>> , but is possible to check if the tile is already present in my cache (304
>> response from server)?
>> Thanks again ..
>>
>> Francesco
>>
>>>----Messaggio originale----
>>>Da: [email protected]
>>>Data: 16/02/2012 14.48
>>>A: "[email protected]"<[email protected]>
>>>Cc: <[email protected]>, <[email protected]>
>>>Ogg: Re: Re: Re: [OpenLayers-Users] Capture Tile information
>>>
>>>So if you had an OSM layer.
>>>
>>>Register an event on tileloaded on it
>>> OSMM.events.register("tileloaded", function (e) {
>>>                var myVar= e;
>>>}
>>>
>>>and then somewhere in "myVar" you need to check if "olImageLoadError"
>>>is present. One area could be myVar.element.childNodes[0].innerHTML
>>>
>>>for me that is:
>>>"<img id="OpenLayersDiv77" style="position: relative; width: 256px;
>>>height: 256px; " class="olTileImage olImageLoadError" src=....>"
>>>
>>>You can do a text comparison to find if olImageLoadError is in there
>>>and report something back accordingly.
>>>
>>>I have not ever implemented this nor do I think it is a particularly
>>>good solution, but it should do what you are after.
>>>
>>>Toby
>>>
>>>
>>>
>>>On 16 February 2012 13:08, [email protected]
>>><[email protected]> wrote:
>>>> Hi, can you tell me how look at the css class? can you explain it more
>> clear?
>>>> Can you write a simple example ?
>>>> Thanks in advance...
>>>>
>>>> Francesco
>>>>
>>>>>----Messaggio originale----
>>>>>Da: [email protected]
>>>>>Data: 16/02/2012 14.02
>>>>>A: "[email protected]"<[email protected]>
>>>>>Cc: <[email protected]>, <[email protected]>
>>>>>Ogg: Re: Re: [OpenLayers-Users] Capture Tile information
>>>>>
>>>>>No I understand what you are trying to do, but you can,
>>>>>programatically, look at the css class of every tile that comes in
>>>>>apparently.
>>>>>
>>>>>On 16 February 2012 12:53, [email protected]
>>>>><[email protected]> wrote:
>>>>>> ye..with firebug i can see all requests .. but i'd like to capture the
>>>> response
>>>>>> from the server if i'm using the tile from my cache or from server
(fresh
>>>> tile).
>>>>>> I don't know if is possible but it will be very interesting.Maybe we 
have
>>>> to
>>>>>> work into openlayers code. Thanks
>>>>>>
>>>>>> Francesco
>>>>>>
>>>>>>>----Messaggio originale----
>>>>>>>Da: [email protected]
>>>>>>>Data: 16/02/2012 13.38
>>>>>>>A: <[email protected]>
>>>>>>>Ogg: Re: [OpenLayers-Users] Capture Tile information
>>>>>>>
>>>>>>>Hi Imran,
>>>>>>>
>>>>>>>> You can see your http request using FireBug, if you are using 
FireFox.
>>>>>>>
>>>>>>>Yes, but I thought a check during runtime from JavaScript. So that
>>>>>>>instead of displaying pink tiles, I would write a message about the
>>>>>>>problem with X layer.
>>>>>>>
>>>>>>>best regards: Balázs
>>>>>>>_______________________________________________
>>>>>>>Users mailing list
>>>>>>>[email protected]
>>>>>>>http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> [email protected]
>>>>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>>>>
>>>>
>>>>
>>>
>>
>>
>


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to