[Ala-portal] map initial position

Nick.Dosremedios at csiro.au Nick.Dosremedios at csiro.au
Mon Sep 1 02:38:23 CEST 2014


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 at csiro.au<mailto:nick.dosremedios at csiro.au>




On 1 Sep 2014, at 2:30 am, Santiago Martinez de la Riva <sama at gbif.es<mailto:sama at 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 at gbif.es<mailto:sama at gbif.es>
28014 Madrid, Spain                                 www.gbif.es<http://www.gbif.es>
<image1.png>_______________________________________________
Ala-portal mailing list
Ala-portal at lists.gbif.org<mailto:Ala-portal at lists.gbif.org>
http://lists.gbif.org/mailman/listinfo/ala-portal

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gbif.org/pipermail/ala-portal/attachments/20140901/d4072f38/attachment.html 


More information about the Ala-portal mailing list