<html> <head> <script src="http://dev.openlayers.org/OpenLayers.js" type="text/javascript"></script> <title>Ya Mahdi</title> <style> html,body { height: 99%; width: 99%; } #map { width: 100%; height: 100%; border: 1px solid black; } </style> <script> mmGetCurvePoints = function(ptsa, tension, isClosed, numOfSegments) { if (ptsa.length <= 2) return ptsa; tension = typeof tension === 'number' ? tension : 0.5; isClosed = typeof isClosed === 'boolean' ? isClosed : false; numOfSegments = typeof numOfSegments === 'number' ? numOfSegments : 16; var ptsaClone = ptsa.slice(0); if (isClosed) ptsaClone.push(ptsa[0], ptsa[1], ptsa[2], ptsa[3]); var _pts, res = [], </script> </head> <body onload="init()"> <div id="map" style="width: 400px; height: 400px;"></div> </body> </html>
source share