Closed fanningert closed 8 years ago
This are only ideas for the final solution.
Support for complex marker via JSON-Array. Before I insert the attribute, I need to stringify the json array/object to a string.
(googlemaps lat: LAT lng: LNG marker: [{ "lat" : "LAT", "lng" : "LNG", "text" : "TEXT" }...])
or
(googlemaps) (marker: TEXT lat: LAT lng: LNG) (marker lat: LAT lng: LNG) Content (/marker) ... (/googlemaps)
<div class="googlemaps" data-googlemaps="true" data-marker="[{ "lat" : "", "lng" : "", "text" : "" }]"></div>
<div class="googlemaps" data-googlemaps="true"> <div class="googlemaps-marker" data-marker-lat="" data-marker-lng="">Content</div> ... </div>
Hint:
$('.delete').attr('data-foobar', JSON.stringify(data) ); var data = JSON.parse( $('.delete').attr('data-foobar') );
Solved
(googlemaps) (marker title: TEXT lat: LAT lng: LNG) (marker lat: LAT lng: LNG) Content (/marker) ... (/googlemaps)
This are only ideas for the final solution.
Support for complex marker via JSON-Array. Before I insert the attribute, I need to stringify the json array/object to a string.
or
or
Hint: