We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a9f2c4 commit 4b64edaCopy full SHA for 4b64eda
src/plotrecipes.jl
@@ -1,10 +1,8 @@
1
-function aspect_ratio(g::OSMGraph)
+function aspect_ratio(g::AbstractOSMGraph)
2
max_y, min_y = extrema(first, g.node_coordinates)
3
mid_y = (max_y + min_y)/2
4
return 1/cos(mid_y * pi/180)
5
end
6
-aspect_ratio(sg::SimplifiedOSMGraph) = aspect_ratio(sg.parent)
7
-
8
9
RecipesBase.@recipe function f(g::AbstractOSMGraph)
10
color --> :black
0 commit comments