Skip to content

Commit

Permalink
Add a tooltip illustration for buildings
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Apr 4, 2017
1 parent d173e06 commit 93b9507
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 47 deletions.
10 changes: 5 additions & 5 deletions modules/ui/intro/building.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ export function uiIntroBuilding(context, reveal) {
var tooltip = reveal('button.add-area',
t('intro.buildings.add_building', { button: icon('#icon-area', 'pre-text') }));

// tooltip.selectAll('.tooltip-inner')
// .insert('svg', 'span')
// .attr('class', 'tooltip-illustration')
// .append('use')
// .attr('xlink:href', '#landuse-images');
tooltip.selectAll('.tooltip-inner')
.insert('svg', 'span')
.attr('class', 'tooltip-illustration')
.append('use')
.attr('xlink:href', '#building-images');

houseId = null;
context.history().reset('initial');
Expand Down
3 changes: 2 additions & 1 deletion svg/iD-sprite.json
Original file line number Diff line number Diff line change
Expand Up @@ -401,5 +401,6 @@

"poi-images": { "viewBox": "0 320 200 80" },
"landuse-images": { "viewBox": "0 400 200 80" },
"feature-images": { "viewBox": "0 480 200 80" }
"feature-images": { "viewBox": "0 480 200 80" },
"building-images": { "viewBox": "700 480 200 80" }
}
Binary file modified svg/iD-sprite.src.idraw
Binary file not shown.
Loading

0 comments on commit 93b9507

Please sign in to comment.