This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Openlayers: placing a simple drop down box above the open street maps

0

Hi there,

I am trying to place a simple drop down box above the open street maps. Can some one guide me how to achieve this... I heard we need to create a

new new OpenLayers.Control.Button({ })

I used this method to add a button above the open street maps. But not sure of how to add a drop down box..... Please help me I am stuck for 2 days... Thank You

asked 17 Oct '12, 11:20

Dominc's gravatar image

Dominc
31336
accept rate: 0%

edited 17 Oct '12, 11:39

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

This isn't really an OpenStreetMap question. "OpenLayers" is used by some people to display OSM maps, but is really nothing to do with it. Were the links to openlayers resources added to your previous question of no help?

(17 Oct '12, 11:41) SomeoneElse ♦

Yes there were of help to me .. By following them(new new OpenLayers.Control.Button({ })) i added a buttons on top of osm. But i couldnt find anything related to adding a drop down box.

(17 Oct '12, 11:51) Dominc

Was no-one even in the Openlayers IRC channel able to help?

(17 Oct '12, 12:12) SomeoneElse ♦

I couldnt really find any help...

(17 Oct '12, 12:28) Dominc

Source code available on GitHub .