Mauro Bartolomeoli wrote:
>
>
> Chris Holmes wrote:
>>
>>>
>>>> > Do you present it to the user as is, or do some javascript wizardry
>>>> > to merge it with another html page?
>>>>
>>> The latter, we currently use it in a full blown application where we
>>> "merge" a raster map with the imagemap at runtime (when it's needed).
>>> This means two different requests to geoserver, one for the raster
>>> map, one for the "tooltip" imagemap level. But this is the way we use
>>> it. Someone else can probably use it in a different way.
>>>
>>
>> This is super cool. I like this approach a lot. Can you do full
>> javascript pop-ups in your onclick events? Like instead of just a
>> tooltip? If it can do that then we're very close to a way to better
>> solve the issue of displaying tons of javascript pop-up points on a
>> map. I think Google recently paid a lot of money to buy a company for
>> this very technology - to render out the clickable pop-ups instead of
>> doing them with javascript.
>>
>> Chris
> In theory, you can define an SLD like this:
>
> <Rule>
> <Name>onclick</Name>
> ...
> <TextSymbolizer>
> <Label>
> <Function name="strConcat">
> <Literal>viewInfo('</Literal>
> <Function name="strConcat">
> <PropertyName>[the property containing
> text or html to view on a popup window]</PropertyName>
> <Literal>');</Literal>
> </Function>
> </Function>
> </Label>
> </TextSymbolizer>
> ...
> </Rule>
>
Whoa, this is an interest work around to the fact that we don't
implement our 'label' reading correctly.
<Label>This is city "<ogc:PropertyName>NAME</ogc:PropertyName>"
of state <ogc:PropertyName>STATE</ogc:PropertyName></Label>
Is supposed to be a valid label, that example is in the spec, and we
don't support it. If you feel like getting in to the geotools level I'd
more than welcome a patch for that, so you wouldn't have to use
strConcat functions.
>
> With this SLD (or something similar, I didn't try it), anytime you click
> on an area of your map you call the viewTooltip js function with a
> property dynamically taken from your feature. In the viewTooltip
> function you can obviously open a javascript popup to visualize the
> received text. It needs some test to verify crossbrowser issues, but I
> think it should work. Is this a good answer to your question?
Cool, I'm pretty sure that answers my question. I'm excited to play
with it, sounds like some nice work.
best regards,
Chris
>
> Thanks,
> Mauro Bartolomeoli
>
>
>
> !DSPAM:4005,47163a96229215332866982!
>
[cholmes.vcf]
begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;349 W. 12th Street, #3;New York;NY;10014;USA
email;internet:cholmes@...
title:Managing Director, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
http://get.splunk.com/_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@...
https://lists.sourceforge.net/lists/listinfo/geoserver-devel