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