mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 16:19:48 +02:00
don't de-select map feature when clicking on a street level photo
This commit is contained in:
@@ -100,6 +100,7 @@ function loadNextTilePage(which, currZoom, url, tile) {
|
||||
|
||||
if (which === 'images') {
|
||||
d = {
|
||||
service: 'photo',
|
||||
loc: loc,
|
||||
key: item.id,
|
||||
ca: +item.heading,
|
||||
|
||||
@@ -140,6 +140,7 @@ function loadTileDataToCache(data, tile) {
|
||||
let isPano = sourceWidth % sourceHeight === 0;
|
||||
|
||||
const d = {
|
||||
service: 'photo',
|
||||
loc: loc,
|
||||
capture_time: feature.properties.capture_time,
|
||||
id: feature.properties.id,
|
||||
|
||||
@@ -105,6 +105,7 @@ function loadTileDataToCache(data, tile, which) {
|
||||
feature = layer.feature(i).toGeoJSON(tile.xyz[0], tile.xyz[1], tile.xyz[2]);
|
||||
loc = feature.geometry.coordinates;
|
||||
d = {
|
||||
service: 'photo',
|
||||
loc: loc,
|
||||
captured_at: feature.properties.captured_at,
|
||||
ca: feature.properties.compass_angle,
|
||||
@@ -147,6 +148,7 @@ function loadTileDataToCache(data, tile, which) {
|
||||
loc = feature.geometry.coordinates;
|
||||
|
||||
d = {
|
||||
service: 'photo',
|
||||
loc: loc,
|
||||
id: feature.properties.id,
|
||||
first_seen_at: feature.properties.first_seen_at,
|
||||
@@ -172,6 +174,7 @@ function loadTileDataToCache(data, tile, which) {
|
||||
loc = feature.geometry.coordinates;
|
||||
|
||||
d = {
|
||||
service: 'photo',
|
||||
loc: loc,
|
||||
id: feature.properties.id,
|
||||
first_seen_at: feature.properties.first_seen_at,
|
||||
|
||||
@@ -178,6 +178,7 @@ function loadTileDataToCache(data, tile, zoom) {
|
||||
loc = feature.geometry.coordinates;
|
||||
|
||||
d = {
|
||||
service: 'photo',
|
||||
loc: loc,
|
||||
capture_time: feature.properties.ts,
|
||||
capture_time_parsed: new Date(feature.properties.ts),
|
||||
|
||||
@@ -120,6 +120,7 @@ function loadNextTilePage(which, url, tile) {
|
||||
bubble.lat || bubble.latitude
|
||||
];
|
||||
const d = {
|
||||
service: 'photo',
|
||||
loc: loc,
|
||||
key: bubbleId,
|
||||
imageUrl: bubble.imageUrl
|
||||
|
||||
@@ -142,6 +142,7 @@ async function loadTile(cache, typename, tile) {
|
||||
const lane_number = parseInt(lane_code.match(/^[0-9]+/)[0], 10);
|
||||
const direction = lane_number % 2 === 0 ? directionEnum.backward : directionEnum.forward;
|
||||
const data = {
|
||||
service: 'photo',
|
||||
loc,
|
||||
key,
|
||||
ca,
|
||||
|
||||
Reference in New Issue
Block a user