i using google maps api along html 5 geolocation api display position marker on map. once marker displayed have simple on marker double click function saves new marker current position using indexeddb. goes until object stored, recieve message " uncaught datacloneerror: failed execute 'put' on 'idbobjectstore': object not cloned. " in console. code follows: function initialize() { var mapproperties = { // set maps properties center:new google.maps.latlng(55.8580,-4.2590), zoom:8, maptypeid:google.maps.maptypeid.roadmap }; var map=new google.maps.map(document.getelementbyid("map-overview"),mapproperties); //display map in map-overview div function nogeolocation(e) { //a function handle users not have geolocation if (e) { var content = 'error: unfortunately geolocation service failed.'; } else { ...
i have phonegap application in need download images offline usage , show inside iframe. possible , need corhttpd ( https://github.com/floatinghotpot/cordova-httpd ) serve assets locally? i have been trying store files on file system when try show (even without being inside iframe), doesn't show. seem loaded (can seen in network console in remote debugging), though, (of course) without headers. after spending more , more time on , settings gapdebug correctly remote debug application, able solve problem giving {responsetype: "arraybuffer"} to angularjs's $http.get method config parameter described here . able images arraybuffer correctly , there base64 encode them added inside html stored offline. suitable solution case @ least..
Comments
Post a Comment