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.
1 Answer 1
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.
-
for some reason it appear out of the map boundary.seesee– seesee2013年06月12日 07:49:13 +00:00Commented Jun 12, 2013 at 7:49
-
adjust left, right and float value...Gunner– Gunner2013年06月12日 07:51:14 +00:00Commented Jun 12, 2013 at 7:51
-
1See example #4 in this nice tutorial to understand absolute positioning within a relative div, barelyfitz.com/screencast/html-training/css/positioningawesomo– awesomo2013年06月13日 16:55:21 +00:00Commented Jun 13, 2013 at 16:55
Explore related questions
See similar questions with these tags.