Thanks for responding..
http://appery.io/app/mobile-frame?src...
I set the SearchEstablishment as Start Page. This is where the parameters will come from to do the NearbySearch (Google Places). So filling up:
Location, Keyword, Type of Establishment and Boundary then Click or tap Search (green) then it will navigate to EstablishmentMap where I am having problem. Map and results are not showing unlike when I set the same page as Start Page.
Here's the Javascript on EstablishmentMap Page LOAD Event
code
var map;
var infowindow;
function initialize() {
var pyrmont = new google.maps.LatLng(15.168424, 120.5800724);
map = new google.maps.Map($("[name=googlemap_2]")[0], {
center: pyrmont,
zoom: 15
});
var request = {
location: pyrmont,
radius: 2000,
types: ['convenience_store']
};
infowindow = new google.maps.InfoWindow();
var service = new google.maps.places.PlacesService(map);
service.nearbySearch(request, callback);
}
function callback(results, status) {
if (status == google.maps.places.PlacesServiceStatus.OK) {
for (var i = 0; i < results.length; i++) {
createMarker(results);
}
}
}
function createMarker(place) {
var placeLoc = place.geometry.location;
var marker = new google.maps.Marker({
map: map,
position: place.geometry.location
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.setContent(place.name);
infowindow.open(map, this);
});
}/code
I get this error on console.
"You have included the Google Maps API multiple times on this page. This may cause unexpected errors."