[GeoNetwork-users] Change Map in version 2.1

Hello

In version 2.02 I can change the area of the map in the file main-page.xsl (Usually there's a map of the world)

There are few settings like (near line 300)
      var myWest = -12;
      var myEast = 45;
      var mySouth = 25;
      var myNorth = 58;
      var map = new quickWMS(-12, 25, 45, 58);
      where = myWest+","+mySouth+","+myEast +","+myNorth ;

But I can't find them in the version 2.1
How can I change this ?

Thank you for you help

Hervé TRON
Office International de l'Eau

Hello Hervé, you should have a look to the scripts/gn_search.js and
update the resetSimpleSearch, resetAdvancedSearch and doRegionSearch
function to adapt the lat lon boundaries I guess.

Maybe, check the searchform_simple_template.xsl for default value.

HTH. Francois

Hervé TRON wrote:

Hello

In version 2.02 I can change the area of the map in the file main-page.xsl (Usually there's a map of the world)

There are few settings like (near line 300)
      var myWest = -12;
      var myEast = 45;
      var mySouth = 25;
      var myNorth = 58;
      var map = new quickWMS(-12, 25, 45, 58);
      where = myWest+","+mySouth+","+myEast +","+myNorth ;

But I can't find them in the version 2.1
How can I change this ?

Thank you for you help

Hervé TRON
Office International de l'Eau
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
  
--
Francois Xavier Prunayre
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)6 34 11 71 75
http://www.camptocamp.com
francois-xavier.prunayre@anonymised.com

The files are both modified but I didn't notice any change.
Any other suggestion ?

Hervé

----- Message d'origine ----- De : "Francois-Xavier Prunayre" <francois-xavier.prunayre@anonymised.com>
À : "Hervé TRON" <ht@anonymised.com>
Cc : <geonetwork-users@lists.sourceforge.net>
Envoyé : mardi 20 novembre 2007 23:54
Objet : Re: [GeoNetwork-users] Change Map in version 2.1

Hello Hervé, you should have a look to the scripts/gn_search.js and
update the resetSimpleSearch, resetAdvancedSearch and doRegionSearch
function to adapt the lat lon boundaries I guess.

Maybe, check the searchform_simple_template.xsl for default value.

HTH. Francois

Hervé TRON wrote:

Hello

In version 2.02 I can change the area of the map in the file main-page.xsl (Usually there's a map of the world)

There are few settings like (near line 300)
      var myWest = -12;
      var myEast = 45;
      var mySouth = 25;
      var myNorth = 58;
      var map = new quickWMS(-12, 25, 45, 58);
      where = myWest+","+mySouth+","+myEast +","+myNorth ;

But I can't find them in the version 2.1
How can I change this ?

Thank you for you help

Hervé TRON
Office International de l'Eau
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

--
Francois Xavier Prunayre
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)6 34 11 71 75
http://www.camptocamp.com
francois-xavier.prunayre@anonymised.com

If you click on the "reset" link under the map, doest it zoom to the
area you defined ?
if yes, you need to call the function to update the zoom area when page
is loading.

HTH. Francois

Hervé TRON wrote:

The files are both modified but I didn't notice any change.
Any other suggestion ?

Hervé

----- Message d'origine ----- De : "Francois-Xavier Prunayre"
<francois-xavier.prunayre@anonymised.com>
À : "Hervé TRON" <ht@anonymised.com>
Cc : <geonetwork-users@lists.sourceforge.net>
Envoyé : mardi 20 novembre 2007 23:54
Objet : Re: [GeoNetwork-users] Change Map in version 2.1

Hello Hervé, you should have a look to the scripts/gn_search.js and
update the resetSimpleSearch, resetAdvancedSearch and doRegionSearch
function to adapt the lat lon boundaries I guess.

Maybe, check the searchform_simple_template.xsl for default value.

HTH. Francois

Hervé TRON wrote:

Hello

In version 2.02 I can change the area of the map in the file
main-page.xsl (Usually there's a map of the world)

There are few settings like (near line 300)
      var myWest = -12;
      var myEast = 45;
      var mySouth = 25;
      var myNorth = 58;
      var map = new quickWMS(-12, 25, 45, 58);
      where = myWest+","+mySouth+","+myEast +","+myNorth ;

But I can't find them in the version 2.1
How can I change this ?

Thank you for you help

Hervé TRON
Office International de l'Eau
-------------------------------------------------------------------------

This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

--
Francois Xavier Prunayre
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)6 34 11 71 75
http://www.camptocamp.com
francois-xavier.prunayre@anonymised.com

--
Francois Xavier Prunayre
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)6 34 11 71 75
http://www.camptocamp.com
francois-xavier.prunayre@anonymised.com