mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Convert map surface and supersurface from ids to classes
This commit is contained in:
@@ -217,7 +217,7 @@ export function uiIntroLine(context, reveal) {
|
||||
|
||||
context.map().centerEase(tulipRoadIntersection, 500);
|
||||
|
||||
reveal('#surface', t('intro.lines.continue_line'));
|
||||
reveal('.surface', t('intro.lines.continue_line'));
|
||||
|
||||
context.on('enter.intro', function(mode) {
|
||||
if (mode.id === 'draw-line')
|
||||
@@ -362,7 +362,7 @@ export function uiIntroLine(context, reveal) {
|
||||
context.history().checkpoint('doneAddLine');
|
||||
|
||||
timeout(function() {
|
||||
reveal('#surface', t('intro.lines.did_name_road'), {
|
||||
reveal('.surface', t('intro.lines.did_name_road'), {
|
||||
buttonText: t('intro.ok'),
|
||||
buttonCallback: function() { continueTo(updateLine); }
|
||||
});
|
||||
|
||||
@@ -57,9 +57,9 @@ export function uiIntroNavigation(context, reveal) {
|
||||
timeout(function() {
|
||||
var centerStart = context.map().center();
|
||||
|
||||
reveal('#surface', t('intro.navigation.drag'));
|
||||
reveal('.surface', t('intro.navigation.drag'));
|
||||
context.map().on('drawn.intro', function() {
|
||||
reveal('#surface', t('intro.navigation.drag'), { duration: 0 });
|
||||
reveal('.surface', t('intro.navigation.drag'), { duration: 0 });
|
||||
});
|
||||
|
||||
context.map().on('move.intro', function() {
|
||||
@@ -82,7 +82,7 @@ export function uiIntroNavigation(context, reveal) {
|
||||
function zoomMap() {
|
||||
var zoomStart = context.map().zoom();
|
||||
|
||||
reveal('#surface',
|
||||
reveal('.surface',
|
||||
t('intro.navigation.zoom', {
|
||||
plus: icon('#iD-icon-plus', 'pre-text'),
|
||||
minus: icon('#iD-icon-minus', 'pre-text')
|
||||
@@ -90,7 +90,7 @@ export function uiIntroNavigation(context, reveal) {
|
||||
);
|
||||
|
||||
context.map().on('drawn.intro', function() {
|
||||
reveal('#surface',
|
||||
reveal('.surface',
|
||||
t('intro.navigation.zoom', {
|
||||
plus: icon('#iD-icon-plus', 'pre-text'),
|
||||
minus: icon('#iD-icon-minus', 'pre-text')
|
||||
@@ -115,12 +115,12 @@ export function uiIntroNavigation(context, reveal) {
|
||||
function features() {
|
||||
var onClick = function() { continueTo(pointsLinesAreas); };
|
||||
|
||||
reveal('#surface', t('intro.navigation.features'),
|
||||
reveal('.surface', t('intro.navigation.features'),
|
||||
{ buttonText: t('intro.ok'), buttonCallback: onClick }
|
||||
);
|
||||
|
||||
context.map().on('drawn.intro', function() {
|
||||
reveal('#surface', t('intro.navigation.features'),
|
||||
reveal('.surface', t('intro.navigation.features'),
|
||||
{ duration: 0, buttonText: t('intro.ok'), buttonCallback: onClick }
|
||||
);
|
||||
});
|
||||
@@ -134,12 +134,12 @@ export function uiIntroNavigation(context, reveal) {
|
||||
function pointsLinesAreas() {
|
||||
var onClick = function() { continueTo(nodesWays); };
|
||||
|
||||
reveal('#surface', t('intro.navigation.points_lines_areas'),
|
||||
reveal('.surface', t('intro.navigation.points_lines_areas'),
|
||||
{ buttonText: t('intro.ok'), buttonCallback: onClick }
|
||||
);
|
||||
|
||||
context.map().on('drawn.intro', function() {
|
||||
reveal('#surface', t('intro.navigation.points_lines_areas'),
|
||||
reveal('.surface', t('intro.navigation.points_lines_areas'),
|
||||
{ duration: 0, buttonText: t('intro.ok'), buttonCallback: onClick }
|
||||
);
|
||||
});
|
||||
@@ -153,12 +153,12 @@ export function uiIntroNavigation(context, reveal) {
|
||||
function nodesWays() {
|
||||
var onClick = function() { continueTo(clickTownHall); };
|
||||
|
||||
reveal('#surface', t('intro.navigation.nodes_ways'),
|
||||
reveal('.surface', t('intro.navigation.nodes_ways'),
|
||||
{ buttonText: t('intro.ok'), buttonCallback: onClick }
|
||||
);
|
||||
|
||||
context.map().on('drawn.intro', function() {
|
||||
reveal('#surface', t('intro.navigation.nodes_ways'),
|
||||
reveal('.surface', t('intro.navigation.nodes_ways'),
|
||||
{ duration: 0, buttonText: t('intro.ok'), buttonCallback: onClick }
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user