Generate static, dynamic and editable maps from semantic HTML
Copy these 2 lines into the head section of your HTML.
Everything is available at GitHub. Check out https://github.com/dyve/bootmap. Clone it, fork it, use it!
Bootmap turns this
<div style="width: 400px; height: 300px" data-map="map" data-lat="40" data-lng="4" data-zoom="5"></div>
into this
Bootmap turns this
<div data-map="map" data-input="#map3_data" style="width: 400px; height: 300px"></div>
<textarea id="map3_data" data-type="wkt">
POLYGON((4 40, 5 40, 5 45, 4 45, 4 40), (4.2 41, 4.8 44, 4.8 41, 4.2 41))
</textarea>
If you edit the polygon on the right, you will see the textarea below it change.
into this
Bootmap turns this
<div id="map4" data-map="map" data-type="wkt-file" style="width: 400px; height: 300px">http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml</div>
into this