[OpenLayers-Users] Adding a custom button

Josep Sanmartí jsanmarti at cbuc.cat
Mon Nov 4 06:35:00 PST 2013


Hello again,

Thanks to Fabien I could solve the problem. I had to:
1.- Create a panel to add buttons in it
2.- Add my button to that panel
3.- Add the panel to the map

And make some modifications to the CSS. If anyone want to take a look at 
the code, it can be found here: http://jsfiddle.net/gilan/wR4Ee/

Thanks.

On 11/04/2013 12:56 PM, Josep Sanmartí wrote:
> Hello all,
>
> Based on one of the OpenLayers examples, I'm trying to add a custom 
> button to the interface. I added a button but unfortunately it doesn't 
> work and I have no idea why. Here you can find the full code in just 
> one file:
>  - 
> http://stackoverflow.com/questions/19586185/openlayers-adding-custom-button
>
> I'm sorry to paste just code but I can't filter the problem in smaller 
> pieces... Can anybody help me on that?
>
> Thanks!
>
> -- 
> Josep Sanmartí Besora
> Consorci de Biblioteques Universitàries de Catalunya -http://www.cbuc.cat/
> Telf.: 93 567 98 07
> Fax:  93 205 01 50
> Correu:jsanmarti at cbuc.cat
>
> El Consorci de Biblioteques Universitàries de Catalunya li agrairà que si ha rebut aquest correu electrònic sense ser la persona a qui es volia destinar, ens el reenviï i suprimeixi ambdós missatges i, si és el cas, els fitxers que pogués portar com a annex. Qualsevol altre ús o acció podria ser contrària a la llei. Gràcies.

-- 
Josep Sanmartí Besora
Consorci de Biblioteques Universitàries de Catalunya - http://www.cbuc.cat/
Telf.: 93 567 98 07
Fax:  93 205 01 50
Correu: jsanmarti at cbuc.cat

El Consorci de Biblioteques Universitàries de Catalunya li agrairà que si ha rebut aquest correu electrònic sense ser la persona a qui es volia destinar, ens el reenviï i suprimeixi ambdós missatges i, si és el cas, els fitxers que pogués portar com a annex. Qualsevol altre ús o acció podria ser contrària a la llei. Gràcies.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131104/6859aaa9/attachment.html>


More information about the Users mailing list