352
seCure develoPment For mobIle APPs
HTML Fragments Description
ere are three main HTML snippets used for marking the map. e variable
newMarkerHTML is used as the form inside the InfoWindow for creating a new
marker. e variable markerHTML displays the HTML inside an InfoWindow for
existing pins. e videoHTML is the HTML that displays YouTube videos inside an
InfoWindow. e snippets are basic HTML elements which can be easily changed or
styled at will.
Class and ID attributes are used where needed to reference the HTML elements
for the JavaScript, which attaches and inserts data as needed.
HTML Fragments For InfoWindow
//HTML FRAGMENTS ARE CONSOLIDATED HERE IN ONE PLACE
//HELPS KEEP HTML AND JAVASCRIPT SEPERATE
//helps make things easier to ...