[OpenLayers-Users] Declare a default externalGraphic

Joao Duarte joao.c.duarte at co.sapo.pt
Wed Mar 11 12:31:57 EDT 2009


In the end of the file OpenLayers.Feature.Vector you will find the default
style for the features.
Just add a externalGraphic entry with your default image or make a patch
that does that.

Hope it helps.

João Duarte,
http://mapas.sapo.pt


-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On
Behalf Of Heidt, Christopher M.
Sent: quarta-feira, 11 de Março de 2009 16:23
To: David Fawcett
Cc: users at openlayers.org
Subject: Re: [OpenLayers-Users] Declare a default externalGraphic

This is what im trying out right now, but doing an additional sync ajax
call per feature is killing performance

-----Original Message-----
From: David Fawcett [mailto:david.fawcett at gmail.com] 
Sent: Wednesday, March 11, 2009 10:54 AM
To: Heidt, Christopher M.
Cc: users at openlayers.org
Subject: Re: [OpenLayers-Users] Declare a default externalGraphic

Could you use javascript to check to see if the image can be accessed
and then set the symbol property based on the result?

On Wed, Mar 11, 2009 at 9:36 AM, Heidt, Christopher M.
<CHRISTOPHER.M.HEIDT at saic.com> wrote:
> I assign an externalGraphic to each of my features.
> There is the possibility that the graphic for any given feature my not

> resolve.
> As it is now this results in an invisible feature.
>
> So my question is: how can I declare a default image to use as an 
> externalGraphic should the url I supply to externalGraphic fail to 
> resolve?
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list