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: [email protected] [mailto:[email protected]] On Behalf Of Heidt, Christopher M. Sent: quarta-feira, 11 de Março de 2009 16:23 To: David Fawcett Cc: [email protected] 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:[email protected]] Sent: Wednesday, March 11, 2009 10:54 AM To: Heidt, Christopher M. Cc: [email protected] 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. <[email protected]> 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 > [email protected] > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
