How to mark object on a map using PHP/MapScript ??

Daniel Morissette danmo at videotron.ca
Fri Sep 8 16:32:12 EDT 2000


kibez wrote:
> 
> Unfortunately the given code does not work!!!
> 
> ..........................
> $img = $gpoMap->draw();
> 
> $point[0]=3396429;
> $point[1]=6490035;
> 
> $oMarkPoint = ms_newpointobj();
> $oMarkPoint->setxy($point[0], $point[1]);
> 
> $oLayerAddress = $gpoMap->getlayerbyname("address_point");
> $oMarkPoint->draw($gpoMap, $oLayerAddress, $img, "", "!!!!!!!!!!");
> 
>                   Fatal error:  Call to unsupported or undefined
> function draw() in map.php3 on line 675
> ...................................


Sorry for the late reply!

The pointObj and rectObj draw() methods were implemented but were not
properly registered.  I fixed this, and that should be part of the next
MapServer release.

-- 
------------------------------------------------------------
 Daniel Morissette                       danmo at videotron.ca
              http://pages.infinit.net/danmo/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.




More information about the mapserver-users mailing list