[Mapserver-users] Mapscript: Display points on the fly
Sean Gillies
sgillies at frii.com
Fri Jul 11 12:43:26 PDT 2003
On Wednesday, July 9, 2003, at 08:01 AM, Bjoern Platzen wrote:
> Hi,
>
> I'm trying to display a point at the last klickpoint in the map, but it
> doesn't appear on the map. I know that this has been discussed on the
> list a few times, but all the Examples I found were in Perl and I'm not
> really a Perl-programmer...
>
> First of all, the mapObj (self.mymap) is defined and the image is
> prepared with
>
> self.myimage=self.mymap.prepareImage()
>
> My function to draw the point looks like that:
>
> def _drawPoint(self, point):
>
> pLayer = self.mymap.getLayerByName('onthefly')
> pLayer.status = mapscript.MS_ON
> newPoint = mapscript.pointObj()
> newPoint.x, newPoint.x = point[0], point[1]
^^^ ^^^
Well, there's one problem.
Sean
--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies
More information about the MapServer-users
mailing list