Google Maps JavaScript API Error In Internet Explorer

前端 未结 2 1322
挽巷
挽巷 2021-01-24 03:07

I have written a really simple jQuery Plugin for the Google Maps JavaScript API v3.

It is working in Firefox, Chrome (et al), but not Internet Explorer 8.

The er

2条回答
  •  时光取名叫无心
    2021-01-24 03:19

    I think it's just a matter of timing. Try making this call from the html:

    $("#map").simplemap({ search: "Buckingham Palace, London", description: "Buckingham Palace,
    London" });

    on ready:

    $.ready(function() {
      $("#map").simplemap({ search: "Buckingham Palace, London", description: "Buckingham Palace,
    London" }); });

提交回复
热议问题