angular - 如何在nativescript中使用MapView在html中使用数据
问题描述
从这个函数我得到数据:
this.spots.spotsnerby().subscribe(
spot => {
this.spot = spot;
for (let j = 0; j < this.spot.features.length; j++) {
let ii = this.spot.features[j];
console.log(ii.properties.stato_stallo);
});
onMarkerSelect(arg) {
console.log('id', id);
}
html
<MapView class="map" (mapReady)="onMapReady($event)" markerSelect)="onMarkerSelect($event)"></MapView>
如何ii.properties.stato_stallo
从 html 代码中进行选择?
你能问我任何想法吗?
解决方案
推荐阅读
- javascript - Node环境下如何将BLOB转为PDF文件?
- reactjs - 从 { useState } 'react' 导入反应;不工作
- php - 在 javascript 函数中与 php 一起传递值
- java - 如何从另一个类中的 AsyncTask 调用 notifyDataSetChanged()
- assembly - STM32103 自定义引导加载程序 - 跳转到主要固件问题
- angular - 如何在标签中使用表单控件名称 - 角度反应形式
- javascript - 使用随机颜色的背景生成器,但我在 javascript 文件上收到警告消息
- c - 如果没有输入,打印“no solution”
- r - R 自定义函数,它接受一个整数 i,然后返回一个整数附加的变量名
- laravel - Laravel 验证数组