[OpenLayers-Users] Declare a default externalGraphic

Heidt, Christopher M. CHRISTOPHER.M.HEIDT at saic.com
Wed Mar 11 12:23:22 EDT 2009


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
>



More information about the Users mailing list