2) In BookMark functionality they are saving the bookmark inside the cookies or in the browser memory, how they are doing this?
private function updateBookmarkAC(bkAC:ArrayCollection):ArrayCollection { var outBkAC:ArrayCollection = new ArrayCollection(); var ext:Extent; var bkObj:Object; for each(var bk:Object in outBkAC) { ext = updateExtent(bk.srs, new String(bk.xmin + " " + bk.ymin + " " + bk.xmax + " " + bk.ymax)); bkObj = { recicon: bk.icon, name: bk.name, srs : bk.srs, xmin: Number(ext.xmin).toFixed(4), ymin: Number(ext.ymin).toFixed(4), xmax: Number(ext.xmax).toFixed(4), ymax: Number(ext.ymax).toFixed(4) } outBkAC.addItem(bkObj); } return outBkAC }
for each(var bk:Object in bkAC)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.