[mapserver-users] Dynamic Reference Map

Steve Lime Steve.Lime at dnr.state.mn.us
Mon Jul 21 16:12:31 EDT 2008


Gabe: This is related to changes at the 5.0 release level limiting what can be changed via
URL. There has been a thread on this in the last couple of weeks or so. I'm going to be trying
to restore 5.0 capabilities but with security hobbles in place but that won't happen until 5.2.1
at the earliest and more likely 5.4 so for now you're out of luck unless you're in position to 
recompile.

Steve

>>> On 7/18/2008 at 3:23 PM, in message
<348277DFCE9FF044B3812A6CF459CD37DCC4BE at welshmail.welshco.com.local>, "Emerson,
Gabe" <gemerson at WelshCo.com> wrote:
> Hello everyone. My apologies if this has been solved already, but I've
> read through the previous posts on this topic and haven't found a
> solution that works for me. 
> 
>  
> 
> I'm trying to replace the default reference map image and extent on the
> fly, using Javascript in my template file. Basically, I want to check if
> the map is zooming out past a certain scale and/or leaving the area
> covered by the default reference map, and display a reference map of the
> entire state (the default is the local metro area). 
> 
>  
> 
> I'm using the 5.2.0 version of mapserv that comes with ms4w 2.2.7
> (although ms4w's default index page claims it's still 2.2.6 with mapserv
> 5.0). From what I've read in the docs and mailing list archives, I
> should be able to do what I want in one of two ways:
> 
>  
> 
> -Include in the url:    map_reference_image='/images/mnref.gif'
> 
>  
> 
> -Or alternatively:     map_reference=IMAGE+'/images/mnref.gif'
> 
>  
> 
> The first method gives me this error:
> 
> loadReferenceMap(): Unknown identifier. Parsing error near
> (/images/mnref.gif):(line 1)
> 
>  
> 
> And the second method gives me this:
> 
> loadReferenceMap(): Unknown identifier. Parsing error near (IMAGE):(line
> 1)
> 
>  
> 
> I've tried these with every combination of quotes, escaped quotes, no
> quotes, etc, without luck. What I CAN do is turn the reference map on
> and off with map_reference=STATUS+off in the url, but that seems to be
> the only reference object parameter that I can change. 
> 
>  
> 
> According to what I've read I'm pretty sure this is possible, there was
> even a code update to make the first method work in an earlier version.
> Hopefully I'm just missing something obvious and someone can  point out
> my newb mistake. 
> 
>  
> 
> Thanks!
> 
>  
> 
>  
> 
>  
> 
> Gabe Emerson
> 
> Research Department
> 
> Welsh Companies
> 
> 4350 Baker Road, Suite 400
> 
> Minnetonka, MN 55343-8695
> 
>  
> 
> 952-897-7700, ext. 1306
> 
> gemerson at welshco.com 
> 
>  



More information about the mapserver-users mailing list