[GeoNetwork-users] default map extents

I'm looking for a way to have different initial map extents for the two
maps in the GN interface: the mini-search map and the larger display map.
Is that possible? I'm using the new search/display interface in GN 2.8
(latest nightly build) and the dimensions of the windows are different
enough that the initial coordinates of the map should be different. Thanks.

- John

Please help the DGS serve you better in the future by taking our user
survey!
http://www.dgs.udel.edu/news/please-take-our-user-survey

John Callahan
Research Scientist
Delaware Geological Survey
University of Delaware
http://www.dgs.udel.edu
john.callahan@anonymised.com

Hi John,

I think you will find that in WEB-INF/config-gui.xml (in v2.6.4 for sure, I haven't checked GIT/v2.8)

Look for
<mapSearch options="{projection: 'EPSG:4326', maxExtent: new OpenLayers.Bounds(-180,-90,180,90), units: 'degrees', restrictedExtent: new OpenLayers.Bounds(-180,-90,180,90)}">
and
<mapViewer options="{projection: 'EPSG:4326', maxExtent: new OpenLayers.Bounds(-180,-90,180,90), units: 'degrees', restrictedExtent: new OpenLayers.Bounds(-180,-90,180,90)}">

kind regards
Jørn-Vegard Røsnes

----- Original Message -----

Fra: "John Callahan" <john.callahan@anonymised.com>
Til: "Geonetwork Users" <geonetwork-users@lists.sourceforge.net>
Sendt: 19. oktober 2012 16:07:41
Emne: [GeoNetwork-users] default map extents

I'm looking for a way to have different initial map extents for the
two
maps in the GN interface: the mini-search map and the larger display
map.
Is that possible? I'm using the new search/display interface in
GN 2.8
(latest nightly build) and the dimensions of the windows are
different
enough that the initial coordinates of the map should be different.
Thanks.

- John

Please help the DGS serve you better in the future by taking our user
survey!
http://www.dgs.udel.edu/news/please-take-our-user-survey

John Callahan
Research Scientist
Delaware Geological Survey
University of Delaware
http://www.dgs.udel.edu
john.callahan@anonymised.com
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be
proprietary, confidential or subject to export regulations, and is only meant
for the intended recipient(s). Any disclosure, copying, distribution or use is
prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
error, please delete it immediately from your system and notify the sender
properly.

Thank you. I believe those settings affect the maps in the Gn 2.8 default
interface. It does not alter the extents in the maps in the /search and
/tabsearch interfaces, which are primarily javascript driven.

- John

John Callahan
Research Scientist
Delaware Geological Survey
University of Delaware
http://www.dgs.udel.edu
john.callahan@anonymised.com

On Mon, Oct 22, 2012 at 2:47 AM, Jørn Vegard Røsnes <jorn@anonymised.com>wrote:

Hi John,

I think you will find that in WEB-INF/config-gui.xml (in v2.6.4 for sure,
I haven't checked GIT/v2.8)

Look for
<mapSearch options="{projection: 'EPSG:4326', maxExtent: new
OpenLayers.Bounds(-180,-90,180,90), units: 'degrees', restrictedExtent: new
OpenLayers.Bounds(-180,-90,180,90)}">
and
<mapViewer options="{projection: 'EPSG:4326', maxExtent: new
OpenLayers.Bounds(-180,-90,180,90), units: 'degrees', restrictedExtent: new
OpenLayers.Bounds(-180,-90,180,90)}">

kind regards
Jørn-Vegard Røsnes

----- Original Message -----
> Fra: "John Callahan" <john.callahan@anonymised.com>
> Til: "Geonetwork Users" <geonetwork-users@lists.sourceforge.net>
> Sendt: 19. oktober 2012 16:07:41
> Emne: [GeoNetwork-users] default map extents
>
> I'm looking for a way to have different initial map extents for the
> two
> maps in the GN interface: the mini-search map and the larger display
> map.
> Is that possible? I'm using the new search/display interface in
> GN 2.8
> (latest nightly build) and the dimensions of the windows are
> different
> enough that the initial coordinates of the map should be different.
> Thanks.
>
> - John
>
> Please help the DGS serve you better in the future by taking our user
> survey!
> http://www.dgs.udel.edu/news/please-take-our-user-survey
>
> John Callahan
> Research Scientist
> Delaware Geological Survey
> University of Delaware
> http://www.dgs.udel.edu
> john.callahan@anonymised.com
>
------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> GeoNetwork-users mailing list
> GeoNetwork-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be
proprietary, confidential or subject to export regulations, and is only
meant
for the intended recipient(s). Any disclosure, copying, distribution or
use is
prohibited, if not otherwise explicitly agreed with KONGSBERG. If received
in
error, please delete it immediately from your system and notify the sender
properly.