Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I know this is a a stupid and direct question.

How do I add a button to a normal map?

Example: http://developers.arcgis.com/en/javascript/samples/map_simple/

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

share|improve this question
add comment

1 Answer 1

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;" />
</div>

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
1  
See example #4 in this nice tutorial to understand absolute positioning within a relative div, barelyfitz.com/screencast/html-training/css/positioning –  awesomo Jun 13 '13 at 16:55
add comment

Your Answer

 
discard

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.