static - How to add text over the top of a google map so that the text does not move when panning -


i working on html5 application designed run google map takes entire screen on mobile phone. sake of simple debugging, , perhaps later legitimate informational purposes, position text in bottom right hand corner of map, reports information, such current lat/lng of user. have looked through v3 api, , best of knowledge there's nothing in there this. there kind of workaround permit done?

pretty easy really. add div control. define empty div anywhere in html. add control, , maps sucks map display. write dom functions wish.

<div id="debug"></div>  -- code goes here --  var x = document.getelementbyid("debug"); mapname.controls[google.maps.controlposition.right_bottom].push(x);  -- code goes here --  $("#debug").html("debugging info") 

hope enough idea across.

in example put in right_bottom. other options here.

skip


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -