Skip to content Skip to sidebar Skip to footer

Use Json.stringify And Json.parse To Store Polygon Coordinates Into Oracle

I want to store the coordinates of a google maps polygon overlay into oracle and display it on next session. There is the code: function savePolygons(){ $.post('oracle_deletePo

Solution 1:

JSON.stringify() will not keep the original MVCArray, the constructor is missing.

You better use google.maps.geometry.encoding.encodePath() to create a storable value and decode it before re-using it.

Post a Comment for "Use Json.stringify And Json.parse To Store Polygon Coordinates Into Oracle"