[OpenLayers-Users] Popup for WFS Feature

goeserver developer bjoice at firstam.com
Wed Nov 21 02:59:13 EST 2007


Hi,

when I use a filter with WFS its not working . Any help for getting the
output.
Thanks,

Erik Uzureau-3 wrote:
> 
> so you want popups tied to your markers... you seem to be on the right
> path.
> you just need to subclass OpenLayers.Feature.WFS and override
> createMarker(). In your new createMarker() you need to hook in the popup.
> The most standard way of doing that is on the onclick action of the
> marker.
> if you take a look at the popup.html example (
> http://openlayers.org/dev/examples/popups.html) you can see how that's
> pretty easily done.
> 
> lemme know if you need some more help,
> erik
> 
> 
> On 5/6/07, mfrumin <mfrumin at rpa.org> wrote:
>>
>>
>> using: 2.4-rc3
>>
>> I think I get it -- to cutomize the way your WFS points are represented,
>> you
>> should subclass and override createMarker() and createPopup().
>>
>> that said, when I look at the Feature class, it appears to have a
>> createPopup() method, but having put in an alert() it never seems to get
>> called when i click on the (default red diamond) marker.  here's how I
>> have
>> created my WFS layer:
>>
>> layer = new OpenLayers.Layer.WFS ( "Stations WFS", wfs,
>>                     { typename: 'frumin:trx_stations', maxfeatures: 1 } ,
>>                 { featureClass: OpenLayers.Feature.WFS}
>>                     );
>>             map.addLayer(layer);
>>
>> and it works gorgeously in terms of getting the red marker, but I want to
>> program some interactivity.
>>
>> maybe I shouldn't be surprised tho, because the example i got it from
>> (http://openlayers.org/dev/examples/wfs.html) doesn't seem to have any
>> interactivity on the markers either.
>>
>> what think?
>>
>> thanks,
>> mike
>> --
>> View this message in context:
>> http://www.nabble.com/Popup-for-WFS-Feature-tf3700517.html#a10348127
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/Popup-for-WFS-Feature-tf3700517.html#a13872517
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list