예제 #1
0
        // Sample code to show how to:
        // 1.- Navigate and center a country in the map
        // 2.- Add a blink effect to one country (can be used on any number of countries)
        void FlyToCountry(string countryName)
        {
            int countryIndex = map.GetCountryIndex(countryName);

            map.FlyToCountry(countryIndex);
            map.BlinkCountry(countryIndex, Color.black, Color.green, 4, 0.2f);
        }
예제 #2
0
        // Sample code to show how to:
        // 1.- Navigate and center a country in the map
        // 2.- Add a blink effect to one country (can be used on any number of countries)
        void FlyToCountry(string countryName)
        {
            int   countryIndex = map.GetCountryIndex(countryName);
            float zoomLevel    = map.GetCountryMainRegionZoomExtents(countryIndex);

            map.FlyToCountry(countryIndex, 1f, zoomLevel, 0.1f);
            map.BlinkCountry(countryIndex, Color.black, Color.green, 4, 2.5f, true);
        }