[OpenLayers-Users] drawing an ellipse
Mr. Puneet Kishor
punk.kish at gmail.com
Wed Sep 28 23:19:56 EDT 2011
On Sep 28, 2011, at 10:09 PM, Michael wrote:
> I'm thinking you'll have to do what I did, which is copy the code that would ordinarily draw a circle and add the parameters you reference.
>
> Then modify the algorithm to distort the circle along the lines you reference.
>
> Of course, someone may know of how this has already been done, but this is pretty much what I had to do to make geographically correct circles (which end up looking sort of like ellipses)
Hmmm... I hope not. That sounds too kludgy. What I am hoping for is being able to draw SVG features using something like jquery.svg [http://keith-wood.name/svg.html]
svg.ellipse('', '', 75, 50, {transform:
'translate(300 220) rotate(-30)',
fill: 'none', stroke: 'blue', strokeWidth: 10});
>
> Michael
>
> On 9/28/2011 8:05 PM, Mr. Puneet Kishor wrote:
>> Given a lng/lat, the semi-major-minor axes, and major axis rotation, I'd like to draw an ellipse on my map. What are my options?
>>
>> Many thanks in advance,
>>
>> --
>> Puneet Kishor_______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list