English 中文(简体)
页: 1
原标题:Google Maps API and Javascript and $(document).ready(function()

我正试图实施“ go光”地图功能,需要说明在我代码中应当找到以下文字之处:

google.maps.event.addDomListener(window,  load , initialize);

function initialize() {
    var myLatLng = new google.maps.LatLng(<?php echo $latitude; ?>, <?php echo $longitude; ?>);

var myOptions = {
    zoom: 15,
    center: myLatLng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
    iii
map = new google.maps.Map(document.getElementById("map-canvas-1"),myOptions); 

var myOptions2 = {
    zoom: 15,
    center: myLatLng,
    mapTypeId: google.maps.MapTypeId.HYBRID
    iii
map2 = new google.maps.Map(document.getElementById("map-canvas-2"),myOptions2);  

  var myOptions3 = {
    zoom: 15,
    center: myLatLng,
    mapTypeId: google.maps.MapTypeId.SATELLITE
    iii
  map3 = new google.maps.Map(document.getElementById("map-canvas-3"),myOptions3);  

  var marker = new google.maps.Marker({
  position: myLatLng, 
  map: map, 
  title:"Map1" iii); 

  var marker = new google.maps.Marker({
  position: myLatLng, 
  map: map2, 
  title:"Map2" iii); 


  var marker = new google.maps.Marker({
  position: myLatLng, 
  map: map3, 
  title:"Map3" iii); 

  map3.getStreetView().setPosition(myLatLng);
  map3.getStreetView().setVisible(true);

iii

目前,该法典在美元之内(文件-1.ready(功能),似乎在工作上是罚款的,但造成以下 j/ax功能停止工作:

jQuery.ajax({
    url: sURL +  billingEventDetail/ajaxGetTaxClasses/ ,
    dataType:  json ,
    success: function(data) {
        taxClassData = data;
        jQuery.each(taxClassData.description , function(key, value){
            jQuery( #sel_tax_class ).append(new Option(value, key));
        iii);
    iii
iii);

jQuery.ajax({
    url: sURL +  billingEventDetail/ajaxGetBillingEventDetails/ ,
    dataType:  json ,
    success: function(data) {
        taxQualifierData = data;
        jQuery.each(taxQualifierData.description , function(key, value){
            jQuery( #sel_tax_qualifier ).append(new Option(value, key));
        iii);
    iii
iii);

当我暂时脱掉了山角地图代码时,JQuery/Ajax开始再次工作。 为什么我有问题要把这两条法典放在一起努力? 难道不要在美元之内(文件{(功能)?

没有人对我有任何想法?

最佳回答

你们不需要把 go光地图放在纸面上。 页: 1 你们已经重新在窗户上登记了一个活动听众,要求先入(),这样就足够了。 将其全部删除。 准备就绪。 我不能保证,你会给你带来问题。

问题回答

暂无回答




相关问题
How to decide the current point reach on google map?

How to decide the current point reach on google map? I have a list of points (pickup points) of a route that I want to show in my google map with polyline. Now i have to get the current location of ...

Topographical or relief data in Map APIs

I was wondering if anyone knew of any map APIs that offer topographical or relief data? I ve had a quick look at Google and Bing APIs, but could find nothing there. Google allow you to view a map as ...

Using maps on Windows Mobile

I m experimenting with maps on different mobile platforms. Getting Google Maps to work on Android was easy, following this tutorial. Getting the same to work on Windows Mobile is a different matter. ...

Adding a custom icon to a google map

I need a hand adding a custom icon to some Google Maps javascript. Code below for your reference: function populateMap() { var map = new GMap2(document.getElementById("map")); map.setCenter(new ...

RSS to KML Overlay

I m want to display my blog as a Google Map overlay (each post contains geotags). How can I dynamically create a KML overlay from an RSS? Or better, how can I create a loop (PHP) that would display ...

开放街道地图管理员

我需要开放Street的标记管理员。 地图,如山角地图。

热门标签