<commit_before>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using GMap.NET;
using GMap.NET.MapProviders;
using GMap.NET.WindowsForms;
using GMap.NET.WindowsForms.Markers;
using GMap.NET.WindowsForms.ToolTips;


namespace kagv
{
    public partial class gmaps : Form
    {
        internal readonly GMapOverlay myobjects = new GMapOverlay("objects");

        public gmaps()
        {
            InitializeComponent();
        }

        private void gmaps_Load(object sender, EventArgs e)
        {

            this.MaximizeBox = false;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.StartPosition = FormStartPosition.CenterScreen;

            nud_opacity.Maximum = 255;
            nud_opacity.Minimum = 0;

            //map implementation
            mymap.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance;//using it as FULL reference to have the complete list of providers
            GMaps.Instance.Mode = AccessMode.ServerOnly;
            
            mymap.SetPositionByKeywords("greece,thessaloniki");
            mymap.MinZoom = 0;
            mymap.MaxZoom = 18;
            mymap.Zoom = 8;
            mymap.Overlays.Add(myobjects);
            mymap.DragButton = MouseButtons.Left;
            mymap.InvertedMouseWheelZooming = true;

            cb_provider.Items.Add("GoogleMapProvider");
            cb_provider.Items.Add("GoogleTerrainMapProvider");
            cb_provider.Text = "GoogleMapProvider";
            //its not a joke ->
            //____________________________________________________________________opacity______________R___________________________G_______________________B
            mymap.SelectedAreaFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(65)))), ((int)(((byte)(105)))), ((int)(((byte)(225)))));
            nud_opacity.Value = 33;
          
        }

       

        private void cb_cross_CheckedChanged(object sender, EventArgs e)
        {
            mymap.ShowCenter = cb_cross.Checked;
            mymap.Refresh();
        }

        private void btn_marker_Click(object sender, EventArgs e)
        {
            Screenshot st = new Screenshot(this);
            st.Owner = this;
            st.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            mymap.Zoom += 1;
            mymap.Refresh();
        }

        private void mymap_MouseClick(object sender, MouseEventArgs e)
        {
           
        }

        private void cb_provider_SelectedIndexChanged(object sender, EventArgs e)
        {
            if ( cb_provider.SelectedItem.ToString() == "GoogleTerrainMapProvider")
                mymap.MapProvider = GMap.NET.MapProviders.GoogleTerrainMapProvider.Instance;
            if (cb_provider.SelectedItem.ToString() == "GoogleMapProvider")
                mymap.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance;
<commit_msg>gmap.cs: added satelite display mode<commit_after>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using GMap.NET;
using GMap.NET.MapProviders;
using GMap.NET.WindowsForms;
using GMap.NET.WindowsForms.Markers;
using GMap.NET.WindowsForms.ToolTips;


namespace kagv
{
    public partial class gmaps : Form
    {
        internal readonly GMapOverlay myobjects = new GMapOverlay("objects");

        public gmaps()
        {
            InitializeComponent();
        }

        private void gmaps_Load(object sender, EventArgs e)
        {

            this.MaximizeBox = false;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.StartPosition = FormStartPosition.CenterScreen;

            nud_opacity.Maximum = 255;
            nud_opacity.Minimum = 0;

            //map implementation
            mymap.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance;//using it as FULL reference to have the complete list of providers
            GMaps.Instance.Mode = AccessMode.ServerOnly;
            
            mymap.SetPositionByKeywords("greece,thessaloniki");
            mymap.MinZoom = 0;
            mymap.MaxZoom = 18;
            mymap.Zoom = 8;
            mymap.Overlays.Add(myobjects);
            mymap.DragButton = MouseButtons.Left;
            mymap.InvertedMouseWheelZooming = true;

            cb_provider.Items.Add("GoogleMapProvider");
            cb_provider.Items.Add("GoogleTerrainMapProvider");
            cb_provider.Items.Add("GoogleSatelliteMapProvider");
            cb_provider.Text = "GoogleMapProvider";
            //its not a joke ->
            //____________________________________________________________________opacity______________R___________________________G_______________________B
            mymap.SelectedAreaFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(65)))), ((int)(((byte)(105)))), ((int)(((byte)(225)))));
            nud_opacity.Value = 33;
          
        }

       

        private void cb_cross_CheckedChanged(object sender, EventArgs e)
        {
            mymap.ShowCenter = cb_cross.Checked;
            mymap.Refresh();
        }

        private void btn_marker_Click(object sender, EventArgs e)
        {
            Screenshot st = new Screenshot(this);
            st.Owner = this;
            st.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            mymap.Zoom += 1;
            mymap.Refresh();
        }

        private void mymap_MouseClick(object sender, MouseEventArgs e)
        {
           
        }

        private void cb_provider_SelectedIndexChanged(object sender, EventArgs e)
        {
            if ( cb_provider.SelectedItem.ToString() == "GoogleTerrainMapProvider")
                mymap.MapProvider = GMap.NET.MapProviders.GoogleTerrainMapProvider.Instance;
            if (cb_provider.SelectedItem.ToString() == "GoogleMapProvider")
                mymap.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance;
            if (cb_provider.SelectedItem.ToString() == "GoogleSatelliteMapProvider")
                mymap.MapProvider = GMap.NET.MapProviders.BingSatelliteMapProvider.Instance;

{'fraction_non_alphanumeric': 0.0944979794839913, 'fraction_numerical': 0.006838669567920423, 'mean_word_length': 2.3359253499222397, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5645006', 'n_tokens_mistral': 1765, 'n_tokens_neox': 1722, 'n_words': 322}