![](https://secure.gravatar.com/avatar/2d28e3d53cea111c062f61eb2aa230bb.jpg?s=120&d=mm&r=g)
Hi all, How can I do to centre the maps in SPAIN and not in Australia?
For Example: the map that is shown in the search by shapefile. (Image1)
Thanks. Kind Regards SaMa.
--------------------------------------------------------------------------------------- Santiago Martínez de la Riva GBIF.ES, Unidad de Coordinación Tel. +34 91 4203017 x 273 Real Jardín Botánico - CSIC Fax +34 91 429 2405 Plaza de Murillo, 2 sama@gbif.es 28014 Madrid, Spain www.gbif.es
![](https://secure.gravatar.com/avatar/f8ba0743a7f166286be75f145da5cb80.jpg?s=120&d=mm&r=g)
Hi Santi,
To configure the default location of your map components you need to include the settings below in your hub config file (e.g. /data/generic-hub/config/generic-hub-config.properties):
*# Shapefile Search and Occurrence List page*
*map.defaultLatitude =-10.183056*
*map.defaultLongitude =-48.333611*
*map.defaultZoom =4*
*# Explore Your Area page*
*exploreYourArea.lat=-10.183056* *exploreYourArea.lng=-48.333611*
* These values are related to Brazil.
Hope it helps,
Cheers.
![](https://secure.gravatar.com/avatar/2d28e3d53cea111c062f61eb2aa230bb.jpg?s=120&d=mm&r=g)
Thanks Daniel. --------------------------------------------------------------------------------------- Santiago Martínez de la Riva GBIF.ES, Unidad de Coordinación Tel. +34 91 4203017 x 273 Real Jardín Botánico - CSIC Fax +34 91 429 2405 Plaza de Murillo, 2 sama@gbif.es 28014 Madrid, Spain www.gbif.es
________________________________________ De: Daniel Lins [daniel.lins@gmail.com] Enviado el: domingo, 31 de agosto de 2014 21:40 Para: Santiago Martinez de la Riva CC: ala-portal@lists.gbif.org Asunto: Re: [Ala-portal] map initial position
Hi Santi,
To configure the default location of your map components you need to include the settings below in your hub config file (e.g. /data/generic-hub/config/generic-hub-config.properties):
# Shapefile Search and Occurrence List page
map.defaultLatitude =-10.183056 map.defaultLongitude =-48.333611 map.defaultZoom =4
# Explore Your Area page
exploreYourArea.lat=-10.183056 exploreYourArea.lng=-48.333611
* These values are related to Brazil.
Hope it helps,
Cheers.
-- Daniel Lins da Silva (Mobile) 55 11 96144-4050 Research Center on Biodiversity and Computing (Biocomp) University of Sao Paulo, Brazil daniellins@usp.brmailto:daniellins@usp.br daniel.lins@gmail.commailto:daniel.lins@gmail.com
2014-08-31 13:30 GMT-03:00 Santiago Martinez de la Riva <sama@gbif.esmailto:sama@gbif.es>: Hi all, How can I do to centre the maps in SPAIN and not in Australia?
For Example: the map that is shown in the search by shapefile. (Image1)
Thanks. Kind Regards SaMa.
--------------------------------------------------------------------------------------- Santiago Martínez de la Riva GBIF.EShttp://GBIF.ES, Unidad de Coordinación Tel. +34 91 4203017 x 273tel:%2B34%2091%204203017%20x%20273 Real Jardín Botánico - CSIC Fax +34 91 429 2405tel:%2B34%2091%20429%202405 Plaza de Murillo, 2 sama@gbif.esmailto:sama@gbif.es 28014 Madrid, Spain www.gbif.eshttp://www.gbif.es
_______________________________________________ Ala-portal mailing list Ala-portal@lists.gbif.orgmailto:Ala-portal@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ala-portal
![](https://secure.gravatar.com/avatar/dd0dfc2b2e1120ce51bbca8afff9715e.jpg?s=120&d=mm&r=g)
Hi Santiago,
You can change the coordinates that the map is set to by default, with the vars:
map.defaultLatitude = 12.3 map.defaultLongitude = -43.5 map.defaultZoom = 12
You should also check the value of:
map.zoomOutsideScopedRegion = true // show full extent of records
The default value for the generic-hub is 'true' , which will show the full "extent" of records (i.e. map zooms to show all records for a given search). If you change it to false, then the map will not zoom out any further than the values I mentioned above.
Regards
Nick -- Nick dos Remedios Software Developer Atlas of Living Australiahttp://www.ala.org.au National Facilities & Collections, CSIROhttp://www.csiro.au/Organisation-Structure/National-Facilities.aspx nick.dosremedios@csiro.aumailto:nick.dosremedios@csiro.au
On 1 Sep 2014, at 2:30 am, Santiago Martinez de la Riva <sama@gbif.esmailto:sama@gbif.es> wrote:
Hi all, How can I do to centre the maps in SPAIN and not in Australia?
For Example: the map that is shown in the search by shapefile. (Image1)
Thanks. Kind Regards SaMa.
--------------------------------------------------------------------------------------- Santiago Martínez de la Riva GBIF.ES, Unidad de Coordinación Tel. +34 91 4203017 x 273 Real Jardín Botánico - CSIC Fax +34 91 429 2405 Plaza de Murillo, 2 sama@gbif.esmailto:sama@gbif.es 28014 Madrid, Spain www.gbif.eshttp://www.gbif.es <image1.png>_______________________________________________ Ala-portal mailing list Ala-portal@lists.gbif.orgmailto:Ala-portal@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ala-portal
![](https://secure.gravatar.com/avatar/2d28e3d53cea111c062f61eb2aa230bb.jpg?s=120&d=mm&r=g)
Hi Nick,
Thanks for the explanation.
Kind regards, SaMa.
--------------------------------------------------------------------------------------- Santiago Martínez de la Riva GBIF.ES, Unidad de Coordinación Tel. +34 91 4203017 x 273 Real Jardín Botánico - CSIC Fax +34 91 429 2405 Plaza de Murillo, 2 sama@gbif.es 28014 Madrid, Spain www.gbif.es
________________________________________ De: Nick.Dosremedios@csiro.au [Nick.Dosremedios@csiro.au] Enviado el: lunes, 01 de septiembre de 2014 2:38 Para: Santiago Martinez de la Riva CC: ala-portal@lists.gbif.org Asunto: Re: [Ala-portal] map initial position
Hi Santiago,
You can change the coordinates that the map is set to by default, with the vars:
map.defaultLatitude = 12.3 map.defaultLongitude = -43.5 map.defaultZoom = 12
You should also check the value of:
map.zoomOutsideScopedRegion = true // show full extent of records
The default value for the generic-hub is 'true' , which will show the full "extent" of records (i.e. map zooms to show all records for a given search). If you change it to false, then the map will not zoom out any further than the values I mentioned above.
Regards
Nick -- Nick dos Remedios Software Developer Atlas of Living Australiahttp://www.ala.org.au National Facilities & Collections, CSIROhttp://www.csiro.au/Organisation-Structure/National-Facilities.aspx nick.dosremedios@csiro.aumailto:nick.dosremedios@csiro.au
On 1 Sep 2014, at 2:30 am, Santiago Martinez de la Riva <sama@gbif.esmailto:sama@gbif.es> wrote:
Hi all, How can I do to centre the maps in SPAIN and not in Australia?
For Example: the map that is shown in the search by shapefile. (Image1)
Thanks. Kind Regards SaMa.
--------------------------------------------------------------------------------------- Santiago Martínez de la Riva GBIF.ES, Unidad de Coordinación Tel. +34 91 4203017 x 273 Real Jardín Botánico - CSIC Fax +34 91 429 2405 Plaza de Murillo, 2 sama@gbif.esmailto:sama@gbif.es 28014 Madrid, Spain www.gbif.eshttp://www.gbif.es <image1.png>_______________________________________________ Ala-portal mailing list Ala-portal@lists.gbif.orgmailto:Ala-portal@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ala-portal
participants (3)
-
Daniel Lins
-
Nick.Dosremedios@csiro.au
-
Santiago Martinez de la Riva