Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed and sorted unused usings #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion BlazorLeaflet/BlazorLeaflet/LeafletInterops.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Microsoft.JSInterop;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Drawing;
using System.Threading.Tasks;
using Rectangle = BlazorLeaflet.Models.Rectangle;
Expand Down
18 changes: 9 additions & 9 deletions BlazorLeaflet/BlazorLeaflet/Map.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using System;
using BlazorLeaflet.Exceptions;
using BlazorLeaflet.Models;
using BlazorLeaflet.Models.Events;
using BlazorLeaflet.Utils;
using System.Collections.ObjectModel;
using System.Drawing;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.JSInterop;
using BlazorLeaflet.Models.Events;
using System.Threading.Tasks;
using System.Collections.Specialized;
using BlazorLeaflet.Exceptions;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Drawing;
using System.Linq;
using Microsoft.AspNetCore.Components.Web;
using System.Threading.Tasks;

namespace BlazorLeaflet
{
Expand Down Expand Up @@ -178,7 +178,7 @@ public void PanTo(PointF position, bool animate = false, float duration = 0.25f,
}

public async Task<LatLng> GetCenter() => await LeafletInterops.GetCenter(_jsRuntime, Id);
public async Task<float> GetZoom() =>
public async Task<float> GetZoom() =>
await LeafletInterops.GetZoom(_jsRuntime, Id);

/// <summary>
Expand Down
4 changes: 1 addition & 3 deletions BlazorLeaflet/BlazorLeaflet/Models/Circle.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Drawing;

namespace BlazorLeaflet.Models
namespace BlazorLeaflet.Models
{
public class Circle : Path
{
Expand Down
6 changes: 1 addition & 5 deletions BlazorLeaflet/BlazorLeaflet/Models/Events/DragEndEvent.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BlazorLeaflet.Models.Events
namespace BlazorLeaflet.Models.Events
{
public class DragEndEvent : Event
{
Expand Down
6 changes: 1 addition & 5 deletions BlazorLeaflet/BlazorLeaflet/Models/Events/DragEvent.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BlazorLeaflet.Models.Events
namespace BlazorLeaflet.Models.Events
{
public class DragEvent : Event
{
Expand Down
6 changes: 1 addition & 5 deletions BlazorLeaflet/BlazorLeaflet/Models/Events/ErrorEvent.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BlazorLeaflet.Models.Events
namespace BlazorLeaflet.Models.Events
{
public class ErrorEvent : Event
{
Expand Down
6 changes: 1 addition & 5 deletions BlazorLeaflet/BlazorLeaflet/Models/Events/Event.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BlazorLeaflet.Models.Events
namespace BlazorLeaflet.Models.Events
{
public class Event
{
Expand Down
5 changes: 1 addition & 4 deletions BlazorLeaflet/BlazorLeaflet/Models/Events/MouseEvent.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Drawing;

namespace BlazorLeaflet.Models.Events
{
Expand Down
6 changes: 1 addition & 5 deletions BlazorLeaflet/BlazorLeaflet/Models/Events/PopupEvent.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BlazorLeaflet.Models.Events
namespace BlazorLeaflet.Models.Events
{
public class PopupEvent : Event
{
Expand Down
6 changes: 1 addition & 5 deletions BlazorLeaflet/BlazorLeaflet/Models/Events/TooltipEvent.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BlazorLeaflet.Models.Events
namespace BlazorLeaflet.Models.Events
{
public class TooltipEvent : Event
{
Expand Down
6 changes: 1 addition & 5 deletions BlazorLeaflet/BlazorLeaflet/Models/GeoJsonDataLayer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BlazorLeaflet.Models
namespace BlazorLeaflet.Models
{
public class GeoJsonDataLayer : InteractiveLayer
{
Expand Down
4 changes: 1 addition & 3 deletions BlazorLeaflet/BlazorLeaflet/Models/Marker.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using BlazorLeaflet.Models.Events;
using BlazorLeaflet.Utils;
using Microsoft.JSInterop;
using System;
using System.Drawing;

namespace BlazorLeaflet.Models
Expand Down Expand Up @@ -76,7 +74,7 @@ public class Marker : InteractiveLayer
/// Number of pixels the map should pan by.
/// </summary>
public int AutoPanSpeed { get; set; } = 10;

public Marker(float x, float y) : this(new LatLng(x, y)) { }

public Marker(PointF position) : this(position.X, position.Y) { }
Expand Down