[OpenLayers-Users] Popups, BBox strategy & Flickr API

Arnd Wippermann arnd.wippermann at web.de
Mon Mar 31 09:32:43 PDT 2014


The thumbs are selectable features of the vector layer "photos".
 
Add a selectControl to your map for this layer, that shows an OpenLayers
Popup for selected features.
>From the feature.attributes you should get the url of the image, you want
display.
 
see 
 
http://openlayers.org/dev/examples/dynamic-text-layer.html
http://openlayers.org/dev/examples/popupMatrix.html
 
Arnd

  _____  

Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von charlie
Gesendet: Sonntag, 30. März 2014 01:47
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] Popups, BBox strategy & Flickr API


Ive been using the code from the BBox strategy with my Flickr API to display
photos on my map with some success.

http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/strategy-bbox.
html

However, I would like to expand its functionality a bit, but have not been
successful, my JS is rudimentary at best.

I would like to add the functionality allowing a user to click on the
existant thumbnail, and an larger image (say 300*300 pixels) would popup,
with the photo caption below.  Would it be best to utilize OpenLayers.Popup?

Can anyone give me a hand with this or point me in the right direction?

Many thanks!


---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140331/5c80024b/attachment.html>


More information about the Users mailing list