Exemplo n.º 1
0
        private void SetProvider()
        {
            OpenStreetMapProvider provider = new OpenStreetMapProvider();

            provider.Layer = OpenStreetMapLayer.Humanitarian;

            this.mapProvider = provider;
        }
Exemplo n.º 2
0
    public static TileDefinition ToTileDefinition(this Color color, MapProviderBase mapProvider)
    {
        var result = mapProvider.tiles.FirstOrDefault(x => x.color == color);

        if (result == null)
        {
            return(ToTileDefinition(Color.white, mapProvider));
        }
        return(result);
    }
Exemplo n.º 3
0
 private void DisableCommand(MapProviderBase provider, string commandParameter)
 {
     CommandDescription roadCommand = (from cmd in provider.Commands
                                       where (string)cmd.CommandParameter == commandParameter
                                       select cmd).FirstOrDefault();
     if (roadCommand != null)
     {
         roadCommand.IsAllowed = false;
     }
 }
Exemplo n.º 4
0
        private void DisableCommand(MapProviderBase provider, string commandParameter)
        {
            CommandDescription command = (from cmd in provider.Commands
                                          where (string)cmd.CommandParameter == commandParameter
                                          select cmd).FirstOrDefault();

            if (command != null)
            {
                command.IsAllowed = false;
            }
        }
Exemplo n.º 5
0
        private void SetProvider()
        {
            OpenStreetMapProvider provider = new OpenStreetMapProvider()
            {
                // This user agent should be set per application.
                // Please specify different string in your application.
                StandardModeUserAgent = "Telerik UI for WPF SDK samples"
            };

            provider.Layer = OpenStreetMapLayer.Humanitarian;

            this.mapProvider = provider;
        }