Geospatial mailing list archives
geospatial@odoo-community.org
Browse archives
Re: Center of the map and zooming
by
Camptocamp SA, Yannick Payot
For the default coordinates, look at the "default_extent" field on the view definition, this field is the area on which the map is centered.
default_extent = fields.Char(
'Default map extent in 900913', size=128,
default='-123164.85222423, 5574694.9538936, 1578017.6490538,'
' 6186191.1800898')
'-123164.85222423, 5574694.9538936, 1578017.6490538, 6186191.1800898', is the default extent which leads you to europe. It is the coordinates of a rectangle.
Once you have data, it should set the extent to match position of your data.
Yannick Vaucher
Business Solutions Software Developer
Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10
On 22 November 2017 at 18:02, iquadro <giuseppe.flammia@iquadro.net> wrote:
Hi actually, I use geoengine v-8. When I add a map in the form, I always have the map centered in the center of the Europe. My question is: How can I decide the center point that I show in the form ? Can I decide the zoom level too? Thanks______________________________
_________________
Mailing-List: https://odoo-community.org/groups/geospatial-48
Post to: mailto:geospatial@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe