Hi,
The problem is with projection. I am using Mapnik that has projection
as EPSG:900913 and the layer's projection is EPSG:4326.
If this is resolved, I think the points will be positioned correctly.
Thanks,
Rashmi.
On Jul 23, 1:54 am, bernard pavkovic <
bern...@gmail.com> wrote:
> If this can help you :
> I used custom marker (actually my college used it - since he is the one that
> created custom marker class and i extend it later). So in ours
> executeDrawing() method the code is like this (I think that is default code
> for OS - I don't want to bother and search it now :) )
> *var x:Number;
> var y:Number;
> var resolution:Number = this.layer.map.resolution
> var dX:int = -int(this.layer.map.layerContainer.x) + this.left;
> var dY:int = -int(this.layer.map.layerContainer.y) + this.top;
> x = dX + point.x / resolution;
> y = dY - point.y / resolution;*
>
> As you can see the pattern that you talk about is generated there (x and y
> change with resolution). Our problem was y displacement and it was due to
> the height of the marker. So in our draw method we had to make y decresment
> by the height of the display object we used to draw custom marker. At the
> end this code worked:
> *instance.y += y - (markerHeight+10);*
> where *instance* is display object we used to draw - it already has y
> coordinate due to drawing of it, *y* is the y coordinate generated in the
> code above, *markerHeight* is the height of our marker and *+10* is offset.
> I hope this helps :)
>
> > <
openscales-dev%2Bunsu...@googlegroups.com<
openscales-dev%252Buns...@googlegroups.com>