Print Page | Close Window

Position initial no work

Printed From: TMS Software
Category: FMX Components
Forum Name: FMX WebGMaps / WebOSMaps
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=6574
Printed Date: 18 Sep 2019 at 5:23pm


Topic: Position initial no work
Posted By: belmar sigisfredo
Subject: Position initial no work
Date Posted: 11 May 2016 at 10:06pm
hi, i try set position initial, an this no work, this is my code

        TMSFMXWebGMaps1.Visible:=false;
        TabControl1.ActiveTab:=Tab_Respuestas;
        TMSFMXWebGMaps1.MapOptions.DefaultLatitude:=NLat;
        TMSFMXWebGMaps1.MapOptions.DefaultLongitude:=NLon;
        TMSFMXWebGMaps1.MapOptions.ZoomMap:=17;
        TMSFMXWebGMaps1.Visible:=true;

the idea is move camara to ney marker add



Replies:
Posted By: Pieter Scheldeman
Date Posted: 11 May 2016 at 10:32pm
Hi, the default latitude and longitude can only be set at designtime, to navigate to a new location please use MapPanTo instead.



Print Page | Close Window