[Users] How to change mappanel width and height dynamically
dustin.r.blankenship at accenturefederal.com
dustin.r.blankenship at accenturefederal.com
Thu Sep 4 15:35:58 CEST 2014
Nice looking framework wish I’d seen this a few months back.
From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On Behalf Of Zsolt Magyar
Sent: Thursday, September 04, 2014 8:29 AM
To: Hari Pradhan
Cc: users at geoext.org
Subject: Re: [Users] How to change mappanel width and height dynamically
Hi Ceyhun,
You can find here http://heron-mc.org/ every information, or join the google group: https://groups.google.com/forum/?hl=en#!forum/geoext-viewer-devel
Bests,
Zsolt
2014-09-04 15:23 GMT+02:00 Hari Pradhan <starling.lucky at gmail.com<mailto:starling.lucky at gmail.com>>:
Hi Ceyhun,
Can you try the code below? It worked for me.
// Resize map view panel when window is resized.
Ext.EventManager.onWindowResize(function () {
var height = Ext.getBody().getViewSize().height - 80;
var width = Ext.getBody().getViewSize().width;
yourPanel.setSize(width, height);
});
Thanks,
Hari
On Thu, Sep 4, 2014 at 8:13 AM, Ceyhun Ganioglu <ceyhunganioglu at gmail.com<mailto:ceyhunganioglu at gmail.com>> wrote:
Hi Zsolt,
I saw it in some mailing lists and forums while searching on the internet. I had no chance to have a look. Anyway spent some time trying to learn some geoext, openlayers and ext. If this Heron thing does not have very detailed documentation which makes everything easy feven for beginners, no need to waste some more time.
Otherwise I can have a look at it.
Regards
04.09.2014 16:09 tarihinde, Zsolt Magyar yazdı:
Hi Guys,
Do you know Heron Mapping JavaScript library?
It is a very good solution to make own webmap app. an easy way!
Have a Nice Work with it!
Regards:
Zsolt Magyar
2014-09-04 14:03 GMT+02:00 Ceyhun Ganioglu <ceyhunganioglu at gmail.com<mailto:ceyhunganioglu at gmail.com>>:
Hi Marc,
Yes you are right. MapPanel perfectly resized. But now I can not do the same resize for the LayerTree panel. Container division does not make the same effect to it.
And another thing is I am trying to run a map.updateSize(); in the "onresize" Javascript file. It does not make any map updates
Regards
04.09.2014 14:17 tarihinde, Marc Jansen yazdı:
Hey Ceyhun,
if I remember correctly: yes.
Best,
Marc
On 04.09.2014 13:05, Ceyhun Ganioglu wrote:
Hey,
So basicly, if I don't give any sizes to the Mappanel and resize the container division onresize mappanel will automatically resize. Right?
Regards
04.09.2014 14:03 tarihinde, Marc Jansen yazdı:
Hey,
I think this is because you use absolute values for width and height of the mappanel. When the browsers dimensions change, your panels dimensions won't. If you have the MapPanel in a layout that reacts on changes to the browser dimensions, everything should work.
Best,
Marc
On 04.09.2014 12:56, Ceyhun Ganioglu wrote:
Hi Marc,
Thanks for your email. Here is my code:
http://tny.cz/d6cde4a2
When I resize the browser mappanel size does not change accordingly. That's why I am trying to do it with onresize
Many thanks
04.09.2014 13:50 tarihinde, Marc Jansen yazdı:
Hey Ceyhan,
usually you don't need to update the size manually, as GeoExt should register appropriate eventlisteners already. Can you share code.
Best,
Marc
On 03.09.2014 15:35, Ceyhun Ganioglu wrote:
Hi,
I am trying to change mappanel width and height on resize of the browser and call map.updateSize function
Can anybody send me a simple example piece of code or tell me how to do it in a "for dummies" way? Many thanks
_______________________________________________
Users mailing list
Users at geoext.org<mailto:Users at geoext.org>
http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at geoext.org<mailto:Users at geoext.org>
http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at geoext.org<mailto:Users at geoext.org>
http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at geoext.org<mailto:Users at geoext.org>
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20140904/ff51333b/attachment.htm
More information about the Users
mailing list