[OpenLayers-Users] How to set width on map div or make a menu left align with map div.

miguel juanabreu at hotmail.com
Mon Nov 26 12:28:01 PST 2012


Never mind I figured this out. It had to do with a function that Maptiler
puts into the javascript called resize. It was basically calculating the
total size of the window and making the map the total size of my screen.
Sorry everyone. I can't believe I kept missing this function.

Thanks

Miguel

 

From: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of miguel
Sent: Monday, November 26, 2012 12:20 PM
To: openlayers-users at lists.osgeo.org
Subject: [OpenLayers-Users] How to set width on map div or make a menu left
align with map div.

 

 

Guys trying to put a menu right nex to my map. I'm actually creating a
custom map from an image using the example found here
http://trac.osgeo.org/openlayers/wiki/UsingCustomTiles. I have no problem
with the map or displaying it however, I can't seem to figure out where open
layers is getting the size and width of the map. I have try inline styling
the map, css etc.. and every time I run my application the map ends up below
the menu not beside the menu. Quite frankly im at a loss I have no idea what
im doing wrong. Can someone please throw me a bone and tell me what is it
that I need to do to override the map width or even better yet If I can have
the map div resize to allow for the menu on the left hand side. So if the
menu is 50% width the map is the other 50%.

Thanks in advance all

Miguel 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121126/e2d6c689/attachment.html>


More information about the Users mailing list