private void arreglarMapa()
        {
            GMap1.Add(new GControl(GControl.preBuilt.LargeMapControl));
            GMap1.enableHookMouseWheelToZoom = true;

            StringBuilder sb = new StringBuilder();
            sb.Append("function(marker, point) {");
            GLatLng latlng = new GLatLng("point");
            GInfoWindow window = new GInfoWindow(latlng, "<div style=\"height:140px;\"><blink>Loading...</blink></div>");
            sb.Append(window.ToString(GMap1.GMap_Id));
            sb.Append("}");

            GMap1.Add(new GListener(GMap1.GMap_Id, GListener.Event.click, sb.ToString()));

            StringBuilder sb2 = new StringBuilder();
            sb2.Append("function goTo(point){");
            GLatLng point = new GLatLng("point");
            sb2.AppendFormat("{0}.setZoom(11);", GMap1.GMap_Id);
            GMove move = new GMove(1, point);
            sb2.Append(move.ToString(GMap1.GMap_Id));
            GMarker marker = new GMarker(point);
            sb2.Append(marker.ToString(GMap1.GMap_Id));
            sb2.Append("}");
            GMap1.Add(sb2.ToString());
        }
Beispiel #2
0
        private void arreglarMapa()
        {
            GMap1.Add(new GControl(GControl.preBuilt.LargeMapControl));
            GMap1.enableHookMouseWheelToZoom = true;

            StringBuilder sb = new StringBuilder();

            sb.Append("function(marker, point) {");
            GLatLng     latlng = new GLatLng("point");
            GInfoWindow window = new GInfoWindow(latlng, "<div style=\"height:140px;\"><blink>Loading...</blink></div>");

            sb.Append(window.ToString(GMap1.GMap_Id));
            sb.Append("}");

            GMap1.Add(new GListener(GMap1.GMap_Id, GListener.Event.click, sb.ToString()));

            StringBuilder sb2 = new StringBuilder();

            sb2.Append("function goTo(point){");
            GLatLng point = new GLatLng("point");

            sb2.AppendFormat("{0}.setZoom(11);", GMap1.GMap_Id);
            GMove move = new GMove(1, point);

            sb2.Append(move.ToString(GMap1.GMap_Id));
            GMarker marker = new GMarker(point);

            sb2.Append(marker.ToString(GMap1.GMap_Id));
            sb2.Append("}");
            GMap1.Add(sb2.ToString());
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            GMove move = new GMove(500, 1, -1);
            GMap1.Add(move);

            GMove move2 = new GMove();
            move2.deltaMiliseconds = 2500;
            move2.goTo = new GLatLng(51, 44);

            GMap1.Add(move2);

            GMap1.Add(new GMove(2500, new GLatLng(51, 20)));

            GMap1.Add(new GMove(1500, 2, 3));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            GMove move = new GMove(500, 1, -1);

            GMap1.Add(move);

            GMove move2 = new GMove();

            move2.deltaMiliseconds = 2500;
            move2.goTo             = new GLatLng(51, 44);

            GMap1.Add(move2);

            GMap1.Add(new GMove(2500, new GLatLng(51, 20)));

            GMap1.Add(new GMove(1500, 2, 3));
        }