Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know this is a a stupid and direct question.

How do I add a button to a normal map?


I'm finding a way to make a button appear on the top of the screen.

share|improve this question
up vote 3 down vote accepted

you must be having map div.put following code

<div id="map">
    <input id="Addlyr" type="submit"  value = "Add Layer" style="position: absolute; z-index: 1000; left: 100px; float: right;" />

if you want new button and put nice style adjust using css in style attribute of input button.

If you are referring + and - button then those button are default zoom button which can be initialized in map properties.

share|improve this answer
for some reason it appear out of the map boundary. – seesee Jun 12 '13 at 7:49
adjust left, right and float value... – Gunner Jun 12 '13 at 7:51
See example #4 in this nice tutorial to understand absolute positioning within a relative div, – awesomo Jun 13 '13 at 16:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.