This question is locked. New answers and comments are not allowed.
Hi - new user here and I have to say I'm impressed in a big way so far....
I've started looking at how I can use Icenium and the first thing I wanted to play with was the geolocation function as its at the hart of a lot of things I do. Using the initial Kendo UI example I have started replacing the static map example with the Javascript map from Good how ever I have run in to a snag - it doesnt seem to want to display. I've used the following example in a HTML5 app else where so I know this works so I thought I'd ask on here seeing as this is all beta at the moment.
Note I have tested in the sim and on an actual device.
First I change <div id="map_canvas" style="width:300px; height:300px;"></div> as I have seen issues other wise and then I inserted the following code which is called when the app starts.
// Google Map initial Setup
function initializeGooglemap() {
var mapOptions = {
center: new google.maps.LatLng(52.5960, - 1.9110),
minZoom: 6,
maxZoom: 16,
zoom: 9,
mapTypeId: google.maps.MapTypeId.ROADMAPP
};
map = new google.maps.Map(document.getElementById('map_canvas'),
mapOptions);
}
For refrence the example that Google use and I have based this code on ( as I was keeping it simple ) is https://google-developers.appspot.com/maps/documentation/javascript/examples/map-simple
Thanks
Terran
I've started looking at how I can use Icenium and the first thing I wanted to play with was the geolocation function as its at the hart of a lot of things I do. Using the initial Kendo UI example I have started replacing the static map example with the Javascript map from Good how ever I have run in to a snag - it doesnt seem to want to display. I've used the following example in a HTML5 app else where so I know this works so I thought I'd ask on here seeing as this is all beta at the moment.
Note I have tested in the sim and on an actual device.
First I change <div id="map_canvas" style="width:300px; height:300px;"></div> as I have seen issues other wise and then I inserted the following code which is called when the app starts.
// Google Map initial Setup
function initializeGooglemap() {
var mapOptions = {
center: new google.maps.LatLng(52.5960, - 1.9110),
minZoom: 6,
maxZoom: 16,
zoom: 9,
mapTypeId: google.maps.MapTypeId.ROADMAPP
};
map = new google.maps.Map(document.getElementById('map_canvas'),
mapOptions);
}
For refrence the example that Google use and I have based this code on ( as I was keeping it simple ) is https://google-developers.appspot.com/maps/documentation/javascript/examples/map-simple
Thanks
Terran