[mapguide-users] Map width and height in pixels

Jim O'Leary jo at pat.ca
Sun Apr 20 19:48:23 EDT 2008


Is there a way to get the dimensions of the map frame in pixels? I have
tried:

mapHeight = mapFrame.document.body.clientHeight;
mapWidth = mapFrame.document.body.clientWidth;

...which seems to work, but does not update when you drag the layers pane
and resize the map. It always returns the original dimensions.

Thanks.

-----
 


Jim O’Leary Bachelor of Technology


Technical Consultant


Pacific Alliance Technologies

TEL 604.676.6000 EXT 110 TOL 877.691.9171
FAX 604.682.0962 


WEB  http://www.pat.ca/ www.pat.ca 


 


 “A Member
of StarDyne Technologies”
   http://www.stardynetech.com/ www.stardynetech.com  


The information contained
in this message may be privileged and confidential and protected from
disclosure. If the reader of this message is not the intended recipient, or
an
employee or agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this message is strictly prohibited. If you have received this
message in error, please notify us immediately by replying to this message
and
deleting it from your system without making a copy.  Internet
communications cannot be guaranteed to be secure or error-free as
information
could be intercepted, corrupted, lost, arrive late or contain viruses. 
We
are not liable for the timely, proper or complete transmission of the
information contained in such communications.  We are also not liable
for
the loss of confidentiality of information contained in such communications.


 


-- 
View this message in context: http://www.nabble.com/Map-width-and-height-in-pixels-tp16800295s16610p16800295.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list