Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
autolocate は HTMLGeolocationElement インターフェイスのプロパティで、geolocation 機能の使用許可が既に付与されている場合に、 <geolocation> 要素がレンダリングされた際にブラウザーが直ちに位置情報をリクエストすべきかどうかを示す論理値を取得および設定します。
<geolocation> の autolocate 属性の値を反映します。
論理値です。
デフォルト値は false です。
geolocation 機能を使用する権限が事前に許可されていない場合、autolocate プロパティは無視されます。
autolocate を含む実際の例については、組み込み地図の例の手順を追っての説明をご覧ください。
| The HTML Geolocation Element # dom-htmlgeolocationelement-autolocate |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年2月11日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.