
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

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.br daniel.lins@gmail.com 2014-08-31 13:30 GMT-03:00 Santiago Martinez de la Riva <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.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
_______________________________________________ Ala-portal mailing list Ala-portal@lists.gbif.org http://lists.gbif.org/mailman/listinfo/ala-portal

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.br<mailto:daniellins@usp.br> daniel.lins@gmail.com<mailto:daniel.lins@gmail.com> 2014-08-31 13:30 GMT-03:00 Santiago Martinez de la Riva <sama@gbif.es<mailto: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.ES<http://GBIF.ES>, Unidad de Coordinación Tel. +34 91 4203017 x 273<tel:%2B34%2091%204203017%20x%20273> Real Jardín Botánico - CSIC Fax +34 91 429 2405<tel:%2B34%2091%20429%202405> Plaza de Murillo, 2 sama@gbif.es<mailto:sama@gbif.es> 28014 Madrid, Spain www.gbif.es<http://www.gbif.es> _______________________________________________ Ala-portal mailing list Ala-portal@lists.gbif.org<mailto:Ala-portal@lists.gbif.org> http://lists.gbif.org/mailman/listinfo/ala-portal

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 Australia<http://www.ala.org.au> National Facilities & Collections, CSIRO<http://www.csiro.au/Organisation-Structure/National-Facilities.aspx> nick.dosremedios@csiro.au<mailto:nick.dosremedios@csiro.au> On 1 Sep 2014, at 2:30 am, Santiago Martinez de la Riva <sama@gbif.es<mailto: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.es<mailto:sama@gbif.es> 28014 Madrid, Spain www.gbif.es<http://www.gbif.es> <image1.png>_______________________________________________ Ala-portal mailing list Ala-portal@lists.gbif.org<mailto:Ala-portal@lists.gbif.org> http://lists.gbif.org/mailman/listinfo/ala-portal

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 Australia<http://www.ala.org.au> National Facilities & Collections, CSIRO<http://www.csiro.au/Organisation-Structure/National-Facilities.aspx> nick.dosremedios@csiro.au<mailto:nick.dosremedios@csiro.au> On 1 Sep 2014, at 2:30 am, Santiago Martinez de la Riva <sama@gbif.es<mailto: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.es<mailto:sama@gbif.es> 28014 Madrid, Spain www.gbif.es<http://www.gbif.es> <image1.png>_______________________________________________ Ala-portal mailing list Ala-portal@lists.gbif.org<mailto: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