locator
locator copied to clipboard
jQuery not necessary for embeds
From @tmcw (deleted old repo):
It looks like jQuery's main use here is for data attributes, and it's not clear why they're being used - you could use a TileJSON obj and it'd be about the same length:
<div class="mapbox-map" data-mapid="examples.map-vyofok3q" ></div></div><script async="" src="//mapbox.com/locator/embed.js" charset="utf-8">
{center:[-77.03174888087197,38.91489166732006,14],data:{features:[
geometry:{coordinates:[-77.03054395981971,38.919652568869274],properties:{'marker-type':'pin-m','marker-symbol':'triangle-stroked','marker-color':'5ea154',title:'Foo%20bar.'}}]};
</script>