Skip to content

Commit

Permalink
Improves support for oneway icons in newer mapbox GL js
Browse files Browse the repository at this point in the history
  • Loading branch information
buma committed Dec 4, 2015
1 parent 6f78f23 commit e53dddb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/debug-plan/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src='//api.tiles.mapbox.com/mapbox-gl-js/v0.11.1/mapbox-gl.js'></script>
<script src='//api.tiles.mapbox.com/mapbox-gl-js/v0.12.0/mapbox-gl.js'></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5.1/dat.gui.min.js'></script>
<script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src='./scripts/config.js'></script>
<script src='./scripts/utils.js'></script>
<script src='./scripts/gui.js'></script>
<script src='./scripts/debug.js'></script>
<link href='//api.tiles.mapbox.com/mapbox-gl-js/v0.11.1/mapbox-gl.css' rel='stylesheet' />
<link href='//api.tiles.mapbox.com/mapbox-gl-js/v0.12.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/debug-plan/scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ var mapbox_style = {
},
"perm": {
"type": "geojson",
"data": full_url
"data": full_url,
"maxzoom":22
}
},
"sprite": "oneway",
Expand Down Expand Up @@ -131,11 +132,11 @@ var oneway_icons_style = {
],
[
17,
"oneway-big-mix-large"
"oneway-big-mix-small"
]
]
},
"icon-ignore-placement": false,
"icon-ignore-placement": true,
"symbol-spacing":250,
"icon-allow-overlap":false,
"icon-padding":2
Expand Down

0 comments on commit e53dddb

Please sign in to comment.