I am targeting both platforms but I am testing this on an Android (Galaxy S5).
This is my page with the MapView:
<Page ux:Class="Map">
<NativeViewHost>
<MapView Latitude="{coordinates.lat}" Longitude="{coordinates.long}" Zoom="10" ShowMyLocation="true" ShowMyLocationButton="true" Style="Hybrid" MarkerTapped="{Marker}">
<Each Items="{data.poiDatabase}">
<MapMarker Latitude="{latitude}" Longitude="{longitude}" Label="{title}"/>
</Each>
</MapView>
</NativeViewHost>
</Page>
And this is my module.exports of my JS-file:
module.exports = {
//Navigation
gotoIndex: function() {router.push("index");},
gotoMap: function() {router.push("map");},
gotoPoi: function() {router.push("poi");},
gotoFavorites: function() {router.push("favorites");},
gotoInformations: function() {router.push("informations");},
gotoDetails: function(x) {
poiArray.value = x.data;
router.push("DetailView");},
filterView: function() {
if(filterVisible.value == true){filterVisible.value = false;}
else{filterVisible.value = true;}
},
filter: function() { filter();},
goBack: function() { router.goBack();},
Marker: function(args) {
console.log(JSON.stringify(args));
},
//DetailView
phoneCall: function() {
if(poiArray.value.phone != "")
{phone.call(poiArray.value.phone);}
},
openURL: function() {InterApp.launchUri(poiArray.value.url);},
openFB: function() {InterApp.launchUri(poiArray.value.facebookURL);},
//Other Stuff
categoryButton: function(content) {filterByType(data.value, content.data.ID, "Category");
},
cityButton: function(content) {filterByType(data.value, content.data.City, "City")},
filterVisible,
categorys,
citys,
data,
poiArray,
mainActive,
categoryActive,
cityActive,
categoryArray,
cityArray,
coordinates
};
I just logged the args value for testing and there is pretty much everything in it (filterVisible, categorys, citys and the whole poiDatabase, beginning at the very first entry).
Can you see any fault on my side here :)?