You could customise the code used to create the popup, manually defining how
the KML is interpreted.

See this script for an example, look at the functions at the bottom:
http://tomchance.dev.openstreetmap.org/script/sustainabilitymap.js

Regards,
Tom



On 9 January 2011 20:28, Wyo <[email protected]> wrote:

> Arnd Wippermann wrote:
>
>> That will work:
>>
>> <Placemark>
>> <name>La Roquebrussanne</name>
>> <description>Provence</description>
>> <Point>
>>
>> <coordinates>665231.4570703981,5363853.803594344</coordinates></Point></Plac
>> emark>
>>
>>  Thanks, at least my code is correct. Besides is it possible to have the
> name attribute written centered instead at the start of the KML? Is this
> because of the "label" declaration in the styles?
>
>
>      styles = new OpenLayers.StyleMap ({
>                   "default": new OpenLayers.Style({
>                       label: "${name}",
>                       fillColor: "#ffcc66",
>                       strokeColor: "red",
>                       strokeWidth: 3
>                   }),
>
> Are these styles anywhere documented or how do I find them?
>
> Wyo
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



-- 
http://tom.acrewoods.net   http://twitter.com/tom_chance
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to