snipt

Ctrl+h for KB shortcuts

JavaScript

Get Latitude and Longitude values from Google Maps

javascript:void(prompt('',gApplication.getMap().getCenter()));
https://snipt.net/embed/b1e4ed445503e7ab09d1bca031692634/
/raw/b1e4ed445503e7ab09d1bca031692634/
b1e4ed445503e7ab09d1bca031692634
js
JavaScript
1
2019-08-19T20:52:37
True
False
False
/api/public/snipt/24359/
get-latitude-and-longitude-values-from-google-maps
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nx">javascript</span><span class="o">:</span><span class="k">void</span><span class="p">(</span><span class="nx">prompt</span><span class="p">(</span><span class="s1">&#39;&#39;</span><span class="p">,</span><span class="nx">gApplication</span><span class="p">.</span><span class="nx">getMap</span><span class="p">().</span><span class="nx">getCenter</span><span class="p">()));</span> </span></pre></div> </td></tr></table>
google, maps

JavaScript

google maps get lat/lon easy

javascript:void(prompt('',gApplication.getMap().getCenter()));
https://snipt.net/embed/d362f86e31ddad773d6899b6d7f60519/
/raw/d362f86e31ddad773d6899b6d7f60519/
d362f86e31ddad773d6899b6d7f60519
js
JavaScript
1
2019-08-19T20:53:29
True
False
False
/api/public/snipt/3323/
google-maps-get-latlon-easy
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nx">javascript</span><span class="o">:</span><span class="k">void</span><span class="p">(</span><span class="nx">prompt</span><span class="p">(</span><span class="s1">&#39;&#39;</span><span class="p">,</span><span class="nx">gApplication</span><span class="p">.</span><span class="nx">getMap</span><span class="p">().</span><span class="nx">getCenter</span><span class="p">()));</span> </span></pre></div> </td></tr></table>
google, lattitude, longitude, maps