-
ID:Tn/YXP さんの質問

ある会社の拠点ページにgmaps.jsを実装しようとしているのですが、ブラウザのコンソールに「Uncaught No element defined.」というエラーがページ読み込みのたびに出てしまいます。

map = new GMaps({

上記を指しているのですが。。。

下記のサンプルを参考に記述しているのですが、エラーがなくなりません。
https://hpneo.github.io/gmaps/examples/markers.html

ご教示ください。

みんなの回答 1 件

ID:tKvufb さんの回答

The error you see happens only if <div id="map"/> does not exists in moment you create the map.

What you should do is to call the map creation script after you insert the map container into DOM tree.

ってことだ。

最終更新日:2016-02-19 (2,083 views)

関連するトピックス

ページ上部に戻る