单张地图无法使用多标记自动居中

时间:2019-07-10 02:45:24

标签: leaflet

当我将坐标39.61更改为49.61时,地图不会自动居中,也不会像Google地图那样自动缩小。如何解决?

namespace TipManager {
     static class Program
     {
         /// <summary>
         /// The main entry point for the application.
         /// </summary>
         [STAThread]
         static void Main()
         {
             Application.EnableVisualStyles();
             Application.SetCompatibleTextRenderingDefault(false);
             form = new Form1();
             Application.Run(form);

             TipManagerModel tipManager = new TipManagerModel();
             TipManagerServices services = new TipManagerServices(tipManager);

             Home homeView = new Home();
             HomePresenter homePresenter = new HomePresenter(homeView, tipManager, services);

             form.Controls.Add(homeView);
             homeView.BringToFront();
         }
         static Form1 form;
     } }

0 个答案:

没有答案