[OpenLayers-Users] MapServer to OpenLayers line rendition

Aileen aileen at mapcentral.ph
Sun Oct 7 21:25:27 EDT 2007


Hi Steve!

Thanks for your reply.

Here's the line that is being passed to openlayers:

var myqry = new OpenLayers.Layer.MapServer.Untiled("Map", "/cgi-bin/mapserv?", {map: '/hometo/maps/mymap.map', layer:'#qrylayer#', map_#qrylayer#_classitem:'#qryitem#', map_#qrylayer#_class_expression:'#q.code#', layers:"#onlayer#", format: 'gif', transparent:'false'});

We are using mapserver 5.0 and Openlayers 2.4

No pink tiles encountered. What happens is it can zoom to the right location but could not render a line. 
When we are still using mapserver 4.10, the line above is what we use and it has no problems rendering a line.

We read the migration guide from mapserver and they changed the way they create a new feature:

changing a scalebar object:
...&map.scalebar=UNITS+MILES+COLOR+121+121+121+SIZE+300+2&...creating a new feature...&map_layer[3]=FEATURE+POINTS+500000+1000000+END+TEXT+'A+test+point'+END&...
The value is a snippet of a mapfile. The separator used to be underscore ( _ ) now it's a plus sign (+).But eventhough we changed that according to the new standard way of creating a new feature, the line cannot still be rendered!Here's our url: http:/203.131.125.60/mapcentral_OL/index.cfmEnter Keyword: Quezon AvenueEnter Location: Quezon City
Click on any "View Map" from the Search Result.The keyword you entered is a street, so it should highlight the street that it searched. But instead, it just zooms to the location.How could this be?
----- Original Message ----- 
  From: Steve Lime 
  To: Aileen ; users at openlayers.org 
  Sent: Saturday, October 06, 2007 6:49 AM
  Subject: Re: [OpenLayers-Users] MapServer to OpenLayers line rendition


  Aileen: I'm assuming you're bumping your head against the URL configuration changes
  that were made in 5.0. Virtually anything you could do in 4.10 is doable in 5.0 but the 
  mechanism may have changed. Can you pass along the URLs that are actually being
  sent to MapServer? If so, then I can tell you what changes would be necessary to 
  make them work. Whether that means the OpenLayers interface will have to be updated
  I'm not sure of.

  Steve

  >>> On 10/4/2007 at 9:41 PM, in message <003301c806f9$4bdda760$9601a8c0 at aileen>,
  "Aileen" <aileen at mapcentral.ph> wrote:
  > We recently upgraded our Mapserver version from 4.10 to 5.0.
  > 
  > With that, we no longer can render lines and shade polygons.
  > 
  > Did the parameter in passing variables from openlayers to mapserver changed?
  > 
  > How do you send line parameters to mapserver?
  > 
  > How will I render points and lines to CGI? What url do I use?
  > 
  > Currently we use this:
  > 
  > var myqry = new OpenLayers.Layer.MapServer.Untiled("Map", 
  > "/cgi-bin/mapserv?", {map: '/home/to/my/map.map', layer:'#qrylayer#', 
  > map_#qrylayer#:'classitem+#qryitem#+expression+#q.code#', format: 'gif', 
  > transparent:'false'});
  > 
  > Aileen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071008/bde9187a/attachment.html


More information about the Users mailing list