06-22-2011 03:12 PM
I am tring to integrate google maps in Web app , i am using this code :
!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" id="viewport" content="height=device-height,width=device-width,u
<title>Google Maps JavaScript API v3 Example: Place Search</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&lib
<style type="text/css">
#map {
height:400px;
width:400px;
border: thin solid #333;
margin-top:0;
}
</style>
<script type="text/javascript">
var map;
var service;
var infowindow;
var pyrmont ;
function initialize() {
pyrmont = new google.maps.LatLng(25.100756,55.204411);
it works on BB 6 fine , but it when i try to run over BB5 simulator i have error "
TypeError: undefined is not a function.
Running at line 7: pyrmont=new google.maps.LatLng(25.100756,55.204411);.
Called from line 1: initialize()} } } }.
06-23-2011 07:56 AM
I don't believe the BB5 rendering engine supports google dynamic maps API. It is an older rendering engine and is not webkit based.
06-23-2011 08:16 AM