[mapguide-users] Re: Raster resizing algorithm

2010-11-23 Thread Tom Chadwin

Bump - can anyone reply to this?

Thanks

Tom
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Raster-resizing-algorithm-tp1816249p5766022.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Raster resizing algorithm

2010-06-16 Thread Tom Chadwin

I'd still like to see if there are options for improvement of raster resizing
quality, even at the expense of performance. A colleague pointed me towards
a non-MGOS web GIS, and the raster quality is impeccable:

http://www.essexwalks.com/osmap.html?f=tollesburywick.gpx

Compare this to our MGOS:

http://maps.nnpa.org.uk

There are often real issues with legibility of text. Can anyone point me
towards a method to achieve the quality of resized rasters in the top
example?

Tom
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Raster-resizing-algorithm-tp1816249p5185883.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: IE refresh issue

2010-05-26 Thread Tom Chadwin

Hi Sean

I am now confused. I thought the patch resolved the issue. I then seemed to
see the problem reoccur this morning, but now I cannot recreate it. Can
anyone replicate the problem reliably? I do not know what, specifically,
triggers the issue.

Thanks

Tom
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/IE-refresh-issue-tp4817709p5102532.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Major problems passing parameters using mapviewerphp

2010-04-22 Thread Tom Chadwin

Hi Neil

I have followed the instructions from the second link you quoted on several
occasions. I find I usually make one or two errors, and it takes a while to
get it working, but it absolutely does work. From memory, that example
passes variables to the task frame, so you have to specify an initial script
there, using Maestro or Studio, which handles the passed in variables, and
then manipulates the map frame accordingly.

Is that the kind of thing you are trying to achieve?

Tom (also UK public sector, by the way)
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Major-problems-passing-parameters-using-mapviewerphp-tp4941481p4942845.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] RE: Change initial slider location

2010-04-21 Thread Tom Chadwin

OK, I found it at last, I think, though whether this is the best way or not,
I don't know - it seems to be pretty much hard-coded to me. In
ajaxmappane.templ, find the function ResizeMapSpace(). For my requirement
(change initial slider position to top left), change:

sscalex = mapDevW - 51, sscaley = 1;

to:

sscalex = 0, sscaley = 1;

Hope this helps - thanks for all the guidance

Tom
-- 
View this message in context: 
http://n2.nabble.com/Change-initial-slider-location-tp4930794p4937824.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-04-21 Thread Tom Chadwin

Math.random is what I was using - if it's the best way, I'll go back to it.

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4936382.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-04-21 Thread Tom Chadwin

Well, the following seems to get rid of caching:

header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("cache-control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");

But this seems like overkill. Does anyone have definitive information on
best practice for eliminating caching of xmlhttp requests?

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4936353.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-04-21 Thread Tom Chadwin

That's the page Praveen pointed me towards, and which I was trying to use as
a model. However, the two events it shows you how to hook into are the
completion of the loading of the map, and OnSelectionChaged. I need to hook
into RequestMap(), which is a function, not an event of any kind, as far as
my limited understanding tells me.

Unless someone can give me a technique to achieve that, I'll go back to
hacking the original function, and am aware of the problem of losing that
customization when upgrading MapGuide.

One other issue I have is caching of my xmlhttp request. I can work around
this by adding a random parameter to the query, but realize this is a hack.
I am now experimenting with adding cache control headers on the server side.
Does anyone know of the best way to achieve this (fully cross-browser
compatible)?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4936267.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-04-21 Thread Tom Chadwin

Thanks for that information, Praveen, but I cannot get it to hook onto the
right event properly, and I'm beyond the limit of my Javascript knowledge
here. ajaxmappane.templ has the function RequestMap() which was where I
placed my code, and which worked. However, I can see no corresponding
OnRequestMap onto which I could hook my function. RequestMap always seems to
be called directly, rather than being assigned as a variable, so I cannot
copy it and append my function. Or I might be totally misunderstanding how
this all works.

Can anyone else tell me if there is a way to hook my own function onto the
RequestMap() function without hacking the original function itself?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4936176.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-04-20 Thread Tom Chadwin

Yes, that seems to have worked perfectly. I've called the function from
RequestMap(), and it seems only to be called on zoom or show/hide layers.
Perfect. Thank you so much, Ivan.

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4931482.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-04-20 Thread Tom Chadwin

OK, I've got it working via AJAX now (without jQuery and JSON, actually, as
it's such a simple call), but I am left with having to make the AJAX request
repeatedly (every 2 seconds or so). Is there some event hook I can use so
that I only have to call this function when the map changes (zoom or change
layer visibility via the legend)?

Thanks for all the help

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4931044.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] RE: Change initial slider location

2010-04-20 Thread Tom Chadwin

Yes, I tried add ing left: 0px, but it had no effect, probably because I
don't understand this div's position in the page structure. Any ideas?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/Change-initial-slider-location-tp4930794p4930849.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Change initial slider location

2010-04-20 Thread Tom Chadwin

Hello all

How do I change the initial location of the zoom slider in the Ajax viewer?
Not had any joy with the attempted tweaks I've tried.

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/Change-initial-slider-location-tp4930794p4930794.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: SetVisible worked in 2.0, fails in 2.1

2010-04-20 Thread Tom Chadwin

On a related issue, does MgLayer::IsVisible() work on base layers?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/SetVisible-worked-in-2-0-fails-in-2-1-tp4757366p4930431.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-04-20 Thread Tom Chadwin

Hi Praveen

Many thanks for the pointers. I've managed to get something working without
AJAX, but with your instructions, I'll try to implement it in AJAX (which
I've never coded before). A final question (hopefully) - how can I trigger
this function only when either any layer visiblity changes, or the map zoom
level changes? Do I have to hack the viewer templates to add onclick()
handlers to the icons/buttons, or are there existing event handlers which I
can hook into? At the moment, I'm just having to call the function
repeatedly, which results in an obvious repeated request from the browser
(ie the status bar progress bar keeps appearing when the request is made,
and the IE tab icon keeps changing to the spinning circle).

Thanks again for all the help - nealy there

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4930322.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-04-16 Thread Tom Chadwin

OK, I've filed it on trac:

http://trac.osgeo.org/mapguide/ticket/1318

Hope someone picks it up. Still haven't worked out a way to work around the
issue yet.

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4913182.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Raster resizing algorithm

2010-04-14 Thread Tom Chadwin

So is there no way I can set something away to pregenerate bicubically
resampled tiles? I know it would take a long time for the initial run, but
the quality gain would be huge, with no run-time performance hit.

Tom
-- 
View this message in context: 
http://n2.nabble.com/Raster-resizing-algorithm-tp1816249p4900503.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: IE refresh issue

2010-04-14 Thread Tom Chadwin

Osgeo is back up again, and no, it was my mistake. I can confirm that this
patch fixes the issue. Thanks for the pointer, Julien.

Tom
-- 
View this message in context: 
http://n2.nabble.com/IE-refresh-issue-tp4817709p4900330.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: IE refresh issue

2010-04-13 Thread Tom Chadwin

Hi Julien

Thanks for this interesting information. Although osgeo.org appears to be
down at the moment, I have implemented the patch (removing loaded="true"
from ajaxmappane.templ). However, the error persists - see
http://tyne.titaninternet.co.uk/. Once I can confirm I have implemented the
patch correctly, I shall test again. In the meantime, does anyone else have
any ideas on how to fix this?

Thanks again

Tom
-- 
View this message in context: 
http://n2.nabble.com/IE-refresh-issue-tp4817709p4894651.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-09 Thread Tom Chadwin

Is the problem here in your OnLayerChange() function:

propertySelect.options[i] = new Option(properties[i].name, i, false, false);

You are just passing in the variable i as the value, not the proper value. I
don't know if it is as simple as replacing this line with:

propertySelect.options[i] = new Option(properties[i].name,
properties[i].value, false, false);
-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4876607.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-09 Thread Tom Chadwin

View the source of the HTML in the browser, and confirm that the right values
are present for each option. In other words, make sure that you have:

FeatId
Parcel
Area

and not:

Feature ID
Parcel
Area

Regardless of this, try:

alert(propertySelect[propertySelect.selectedIndex].name)

Tom
-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4876305.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: IE refresh issue

2010-04-09 Thread Tom Chadwin

Thanks for confirming this, Gabriele. As for your workaround of refreshing
the map, I don't know on what event I should carry that out. And I can't
switch to non-tiled layers, as the performance will be too poor.

Any of the developers aware of this issue? Any ideas on a possible fix?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/IE-refresh-issue-tp4817709p4876284.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-07 Thread Tom Chadwin

To get back to your original question, from what I can see, your code will
set every option as "selected". But which item do you want to be selected?
That list is generated before any user interaction, so which option should
be selected? Once the user chooses one option, you can get at it via:

inputName.selectedIndex - this gives the numerical index of the item
selected

inputName[inputName.selectedIndex].value - this gives the value of the item
selected

I hope this answers your question.

Tom
-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4865266.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-07 Thread Tom Chadwin

Is there a missing close PHP tag?:

 
 $layerLabel) 
 { 
?> 
 > 

 
 

-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4864810.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-07 Thread Tom Chadwin

Perhaps view the source of the page, and post that here, just to make sure
the right values are populating the form select drop-downs.

Tom
-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4864331.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-04-07 Thread Tom Chadwin

I'm having difficulty getting this to work, and would appreciate any help on
how to go about achieveing this.

Our third-party base mapping is from multiple suppliers, and I need to
display different combinations of these suppliers' licence statements
according to which layers are currently visible. GetVisible(true,false)
would have enabled me to do this easily. How would I go about achieving this
if GetLayers(true,false) is broken? I am a beginner at AJAX, and am finding
difficulty in working out the best way to get my client-side and server-side
scripts to interact in the right order.

Can anyone help? Or can anyone fix the GetLayers(true,false) bug?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4864062.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-07 Thread Tom Chadwin

Instead of your:

alert(propertySelect.value); [it comes as  the index value] 

try:

alert(propertySelect[propertySelect.selectedIndex].value);

Does that fix it? This is a Javascript issue, not a PHP one.

Tom
-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4864089.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: IE refresh issue

2010-04-07 Thread Tom Chadwin

Anyone? This is a pretty serious issue, as it leads to total misalignment of
different map layers. I need to know if it is a problem at my end, and, if
so, if there is anything I can do about it.

So, again, can anyone else see this problem?

Tom
-- 
View this message in context: 
http://n2.nabble.com/IE-refresh-issue-tp4817709p4864043.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-03-31 Thread Tom Chadwin

Thanks, Praveen. I'll do something similar.

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4829865.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: IE refresh issue

2010-03-31 Thread Tom Chadwin

Can anyone see this issue, and comment?

Tom
-- 
View this message in context: 
http://n2.nabble.com/IE-refresh-issue-tp4817709p4829862.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] IE refresh issue

2010-03-29 Thread Tom Chadwin

Open IE, making sure it is not maximized, and is taking up the left-hand half
of your screen. Go to http://tyne.titaninternet.co.uk/ and wait until fully
loaded. Observe the correct location of the blue polygon (the right-hand
border is congruent with the raster's pale yellow shaded area). Now drag the
right-hand edge of the browser window to the right a good way. In my case
(IE8), the now-missing raster tiles are drawn without the view recentering,
but the vector overlay, when subsequently redrawn, is recentered, placing it
in totally the wrong location on the base rasters.

Can anyone recreate, and suggest a resolution?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/IE-refresh-issue-tp4817709p4817709.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-03-26 Thread Tom Chadwin

I could file it as a bug, but I'm not a high-level MGOS user, so it could
either be an error in my coding, or a misunderstanding on my part of
something. Can anyone else confirm this behaviour, and confirm that it is
incorrect?

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4804753.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-03-26 Thread Tom Chadwin

Can anyone help with this? GetLayers(true,false) seems to me to return all
base layers, regardless of zoom level and current visibility. Is this the
case? If so, is there a way to get the actual visibility of a base layer?

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4804178.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Viewer API GetLayer() and base layers

2010-03-24 Thread Tom Chadwin

Quick question: if I use the Viewer API function GetLayers(true,false) to
return only visible layers, will base layers be excluded if they are not
visible at the current zoom level? Or is this another instance of base
layers behaving in a somewhat unhelpful manner?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4792901.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Google Analytics

2010-03-24 Thread Tom Chadwin

I was asked the following:


Does your mapping have any way to record page views or better still unique
visitors?
> Or would you be able to put Google analytics on it in some meaningful way?
> 
> Just would be really useful to know how many people use the map and if
> there are peak times of use. Might be able to extrapolate out from looking
> at your main web visitors and map visitors, how many map visitors we might
> get for the other parks.

Perhaps simply adding the GA code either to the top-level frameset, or to
the task frame, would do the job.

-- 
View this message in context: 
http://n2.nabble.com/Google-Analytics-tp4790618p4791566.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Google Analytics

2010-03-24 Thread Tom Chadwin

Hello all

Has anyone implemented Google Analytics (GA) in MGOS? The GA support site
has the following article:

http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55519

However, I am unclear as to how to set about applying this, and in which
frame.

Any insight gratefully received

Tom
-- 
View this message in context: 
http://n2.nabble.com/Google-Analytics-tp4790618p4790618.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: SetVisible worked in 2.0, fails in 2.1

2010-03-19 Thread Tom Chadwin

Yup, that seems to have done the trick. To generalize this, how do I
determine if a layer is a base layer or not? $layer->GetLayerType() seemed
not to give me anything.

Thanks again

Tom
-- 
View this message in context: 
http://n2.nabble.com/SetVisible-worked-in-2-0-fails-in-2-1-tp4757366p4762997.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: SetVisible worked in 2.0, fails in 2.1

2010-03-19 Thread Tom Chadwin

Ah! Yes, I bet you are right. We didn't use base layers in the existing 2.0
installation, but are working with them now. I'll check and get back to you.

Thanks!

Tom
-- 
View this message in context: 
http://n2.nabble.com/SetVisible-worked-in-2-0-fails-in-2-1-tp4757366p4762174.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: SetVisible worked in 2.0, fails in 2.1

2010-03-19 Thread Tom Chadwin

Confirmed that SetVisible(True) is the issue. This is the code:

MgInitializeWebTier ($configFilePath);
$userInfo = new MgUserInformation($mgSessionId);
$siteConnection = new MgSiteConnection();
$siteConnection->Open($userInfo);
$map = new MgMap($siteConnection);
$map->Open($mapName);

//Create a filter to select the desired features.
$queryOptions = new MgFeatureQueryOptions();
$filterQuery = $_GET['searchColumn'] . " LIKE '%" . $_GET['searchValue'] .
"%'";
$queryOptions->SetFilter($filterQuery);

// Select the features.
$layer = $map->GetLayers()->GetItem($_GET['layerName']);
$featureReader = $layer->SelectFeatures($queryOptions); 

//display the layer
$layer->SetVisible(True);
$map->Save();

The stack trace gives:

- MgLayerBase.SetVisible() line 181 file
c:\osgeo\mapguide_21\mgdev\common\platformbase\MapLayer/LayerBase.cpp 

If I comment out the SetVisible(True) line, the rest of the script throws no
exceptions, and I get some data back.

Can anyone help?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/SetVisible-worked-in-2-0-fails-in-2-1-tp4757366p4762023.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] SetVisible worked in 2.0, fails in 2.1

2010-03-18 Thread Tom Chadwin

Hello all

We have a working MGOS 2.0 installation at maps.nnpa.org.uk. We are
rebuilding it in MGOS 2.1 at tyne.titaninternet.co.uk. I am trying to
migrate the PHP scripts (very simple ones), but have run into a problem
straight away. I am getting:

The requested operation is invalid

It seems to be triggered by the line:

$layer->SetVisible(True);

Does this immediately flag anything with anyone regarding possible changes
between 2.0 and 2.1?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/SetVisible-worked-in-2-0-fails-in-2-1-tp4757366p4757366.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] [ZS1] RE: MG2.0 install with other webapplications

2008-09-12 Thread Tom Chadwin

Really simple question (apologies): are you aware that the username is case
sensitive, as well as the password?

Tom
-- 
View this message in context: 
http://www.nabble.com/MG2.0-install-with-other-web-applications-tp16986233p19460257.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] An exception occurred in DB XML component. Error: Out of memory in NsSAX2Reader parse File

2008-08-05 Thread Tom Chadwin

Hello all

This morning, our MGOS was giving the following error:

An exception occurred in DB XML component. Error: Out of memory in
NsSAX2Reader parse File: ..\src\dbxml\nodeStore\NsSAX2Reader.cpp Line: 346
Exception occurred in method MgResourceDefinitionManager.ValidateDocument at
line 429 in file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\resource\ResourceDefinitionManager.cpp

MGOS2.0 (might be 2.01, not sure - how do I check?)
W2K3 SP2, IIS, PHP
Xeon 2.8GHz, 3.37 GB
System disk 50GB (30GB free) - MGOS installed on this volume
Data disk 225GB (218GB free) - MGOS repository on this volume
No other apps running on this box

I don't know how to reproduce the error - as I say, it just seemed to be
consistently displaying this morning. Stopping the MGOS service failed
(Error 1053: The service did not respond to the start or control request in
a timely fashion). A reboot of the box brought it back to life.

Has anyone seen this problem (a search of this list brings back an MGOS1.0
instance)? If so, is there a solution, or at least any idea what the cause
might be?

Thanks

Tom
-- 
View this message in context: 
http://www.nabble.com/An-exception-occurred-in-DB-XML-component.-Error%3A-Out-of-memory-in-NsSAX2Reader-parse-File-tp18827313p18827313.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Firefox 3 intermittent raster display

2008-07-24 Thread Tom Chadwin



zspitzer wrote:
> 
> As far as i could tell the raster's loaded ok, it's a little hard to
> tell without knowing the map,
> but here were no glaring holes from missing rasters
> 

V odd. So you see the same initial view as in IE7? How about if you zoom in
a few times? The map should always have raster tiles (or vector if you zoom
in a long way) underneath any of our vector data, unless you go somewhat
outside the main boundary polygon. In other words, if you are seeing a white
background, but you are within that polygon, that is wrong: there should be
base mapping of some kind visible at all zooms.

To simplify matters for testing purposes, turn off the "Local Development
Framework Map" layer group. All you should then see is our boundary over the
base mapping. Base mapping of some kind should always be visible within that
polygon. For me in FF3, it is not at the initial view, nor at many other
views/zooms. In IE7, it is always there.


zspitzer wrote:
> 
> just on the initial load i got the following error
> 
> Error: reqParams is not defined
> [snip]
> 
> also
> 
> Error: parent.InMeasure is not a function
> [snip]
> 

I found those too, subsequently. I don't know what is causing that. I have
manually patched ajaxmappane.templ as per instructions in an earlier thread
(changing from POST to GET in RequestMap(), SetSelection(), ZoomSelection(),
and RequestHyperLinkData()) in order to get it working in FF3. I noticed in
addition that some code was in a different location in the patched version
of RequestHyperLinkData(), so I moved it. Has that got rid of the Javascript
error? Looks like it might have done. It hasn't fixed the missing rasters,
though.

Thanks

Tom
-- 
View this message in context: 
http://www.nabble.com/Firefox-3-intermittent-raster-display-tp18629834p18632013.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Firefox 3 intermittent raster display

2008-07-24 Thread Tom Chadwin



Martin Morrison wrote:
> 
> You need to copy the .so file in also for Apache.
> 

Thanks, Martin. I'm on IIS, so no problem.

T
-- 
View this message in context: 
http://www.nabble.com/Firefox-3-intermittent-raster-display-tp18629834p18633923.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Firefox 3 intermittent raster display

2008-07-24 Thread Tom Chadwin


Tom Chadwin wrote:
> 
> I have manually patched ajaxmappane.templ as per instructions in an
> earlier thread (changing from POST to GET in RequestMap(), SetSelection(),
> ZoomSelection(), and RequestHyperLinkData()) in order to get it working in
> FF3. I noticed in addition that some code was in a different location in
> the patched version of RequestHyperLinkData(), so I moved it.
> 

I just double-checked Tom's FF3 patch. I hadn't realized there were patched
binaries too (MapAgent.exe and isapi_MapAgent.dll). I've now put those in
place too (I assume mod_mgmapagent.so is a source file, so I don't need to
worry about it). No change in behaviour, though.

T
-- 
View this message in context: 
http://www.nabble.com/Firefox-3-intermittent-raster-display-tp18629834p18632594.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Firefox 3 intermittent raster display

2008-07-24 Thread Tom Chadwin


zspitzer wrote:
> 
> Have you tried using fiddler to see if any http errors are occuring? 
> 

All results are 200 - no sign of any problem.


zspitzer wrote:
> 
> nothing in the mapguide or webserver error logs
> 

Nothing that I can see, no.


zspitzer wrote:
> 
> I am seeing some javascript errors with FF3
> 

I am not seeing them. How are you triggering them?

Any other ideas? Just to check: are you seeing the same behaviour as me?

T
-- 
View this message in context: 
http://www.nabble.com/Firefox-3-intermittent-raster-display-tp18629834p18630899.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Firefox 3 intermittent raster display

2008-07-24 Thread Tom Chadwin

Hello

Compare IE7/WinXP and FF3/WinXP display of:

http://maps.northumberlandnationalpark.org.uk/

IE7 works correctly. FF3 fails to display rasters on many occasions
(including the initial view). Zooming will sometimes bring back the rasters,
and sometimes even panning will cause them to appear. I have not determined
if the precise same zoom/coordinates will always give the same results as
far as the display of rasters goes, or whether it is truly intermittent.

Can anyone help with this?

Many thanks

Tom
-- 
View this message in context: 
http://www.nabble.com/Firefox-3-intermittent-raster-display-tp18629834p18629834.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] [mapguide-announce] MapGuide Open Source 2.0.0released

2008-07-21 Thread Tom Chadwin

Many thanks, Kenneth. That works a treat.

Tom
-- 
View this message in context: 
http://www.nabble.com/MapGuide-Open-Source-2.0.0-released-tp15751970p18564447.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: RE: [mapguide-users] [mapguide-announce] MapGuide Open Source 2.0.0released

2008-07-14 Thread Tom Chadwin


JasonBirch wrote:
> 
> Second, proper PNG8 support was added to the GETMAPIMAGE call while fixing
> the black background of GIF/JPG images.  This is not leveraged by either
> Fusion or the AJAX viewer by default, but you can modify these frameworks
> to use PNG8 instead fairly easily.

Hi Jason

Any pointers on how to implement PNG8 or JPG for AJAX? Also, can non-tiled
maps be rendered like this too? My problem is a very very slow application:

http://maps.nnpa.org.uk:443/

I'm guessing that reducing the file size of the rasters will speed things up
a great deal.

Thanks

Tom
-- 
View this message in context: 
http://www.nabble.com/MapGuide-Open-Source-2.0.0-released-tp15751970p18442961.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Partial polygons closed at map viewer edges

2008-06-23 Thread Tom Chadwin

Hello 

When viewing a polygon in MGOS, if one is zoomed in so that some of the
polygon is off-screen, MGOS clips the border along the edges of the viewer.
To see what I mean, see:

http://maps.northumberlandnationalpark.org.uk:443/
http://maps.northumberlandnationalpark.org.uk:443/ 

Zoom in within the navy line which is our boundary, and see its behaviour
once some of the line is off-screen: it runs along the edge of the map,
despite the fact that the true border is not there, but off-screen.

Is there any reason for this behaviour? To me, it represents inaccurate
rendering of data.

Thanks

Tom
-- 
View this message in context: 
http://www.nabble.com/Partial-polygons-closed-at-map-viewer-edges-tp18070914p18070914.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Raster resizing algorithm

2008-06-23 Thread Tom Chadwin

Hello all

How does MGOS resize rasters on the fly? The image quality is poor compared
to a graphics package bicubic resample, and text can be difficult to read
because of distortion.

Cheers

Tom
-- 
View this message in context: 
http://www.nabble.com/Raster-resizing-algorithm-tp18070601p18070601.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] FF 3 ...AJAX viewer does not load map

2008-06-19 Thread Tom Chadwin

That works to a certain extent. The map (and legend) now loads, but my
rasters do not always show up, and sometimes I cannot zoom. I believe the
page can be seen from the outside world for anyone who wishes to test (but
please bear in mind that it is still in development, so changes are
ongoing):

http://maps.northumberlandnationalpark.org.uk:443/

Cheers

Tom


Le Ingenieur Inconnu wrote:
> 
> Hi!
> The problem seems to be in the ajaxmappane.templ. RequestMap() uses a POST
> in the XMLHttpRequest but it seems that the MapAgent does not like some of
> the headers and the reply is empty. A quick fix for this has been to
> change it to a GET, appending the parameter list.
> 
> function RequestMap(scale, centerX, centerY, showGroups, hideGroups,
> showLayers, hideLayers)
> {
>// ...
> mr = CreateRequestHandler();
> req = new MapRequest(mr, ++mapId);
> // -- FF3 Fix
> mr.open("GET", webAgent + "?" + reqParams, true);
> // -- Old code 
> //mr.open("POST", webAgent, true);
> mr.setRequestHeader("Content-Type",
> "application/x-www-form-urlencoded");
> // ...
> }
> 

-- 
View this message in context: 
http://www.nabble.com/FF-3-...AJAX-viewer-does-not-load-map-tp17972103p18012832.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Call legend palette method from scriptFrame

2008-06-19 Thread Tom Chadwin


Tom Chadwin wrote:
> 
> simply preventing the user from zooming in too far - setting a threshhold
> - for the entire application would do the job, but I cannot see how to do
> that anywhere. Is that possible?
> 

I found out how to do this here:

http://www.nabble.com/Set-Default-Zoom-Scale-For-Point-Features-td4909549.html#a9394736

Thanks for all the help.

Tom
-- 
View this message in context: 
http://www.nabble.com/Call-legend-palette-method-from-scriptFrame-tp17986614p18005762.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Call legend palette method from scriptFrame

2008-06-19 Thread Tom Chadwin


Tom Chadwin wrote:
> 
> The method you described works perfectly for me.
> 

I spoke too soon. If I execute ZoomToScale() immediately after
ExecuteMapAction(10), the zoom occurs before the zoom to selection happens.
I've read several threads discussing how to detect when the map has fully
loaded, but I cannot get them to work. Can someone tell me how to achieve
this (from the scriptFrame), so that I can delay ZoomToScale() until
ExecuteMapAction(10) has finished?

Thanks again

Tom

PS  Given my actual requirements, simply preventing the user from zooming in
too far - setting a threshhold - for the entire application would do the
job, but I cannot see how to do that anywhere. Is that possible?
-- 
View this message in context: 
http://www.nabble.com/Call-legend-palette-method-from-scriptFrame-tp17986614p18005746.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Call legend palette method from scriptFrame

2008-06-19 Thread Tom Chadwin



Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> If you call SetScale on the legend, it will display the legend as if the 
> map was in that scale.
> That is probably not what you want.
> 

No, indeed it isn't. I am using ExecuteMapAction to zoom to a selection, but
when the selection is a point object, the viewer is zoomed in so far that
there is no context visible, and one has to zoom out a long way before one
can see any other features. I therefore simply wanted to change the scale of
the map after zooming to the selection.


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> Javascript is case sensitive, you must use GetLegendCtrl(), not 
> getLegendCtrl().
> 

My error - apologies. There is now no error thrown, so presumably the method
is being called successfully. However, what on earth does it actually do?
What, in real terms, does it mean to change the scale of the legend? I
assumed that SetScale() was simply an easy way to change the scale of the
map, without having to bother with the coordinates, but plainly this is not
the case.

Thanks for all your help, though. The method you described works perfectly
for me.

Cheers

Tom
-- 
View this message in context: 
http://www.nabble.com/Call-legend-palette-method-from-scriptFrame-tp17986614p17999653.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] FF 3 ...AJAX viewer does not load map

2008-06-19 Thread Tom Chadwin

Apologies, Zac - I meant to mention that IIS seems unaffected. It appears in
this set-up that the problem is entirely client-side.

Cheers

Tom
-- 
View this message in context: 
http://www.nabble.com/FF-3-...AJAX-viewer-does-not-load-map-tp17972103p17999421.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Call legend palette method from scriptFrame

2008-06-18 Thread Tom Chadwin

This works:

> mapFrame.ZoomToView(mapFrame.GetCenter().X, mapFrame.GetCenter().Y, scale)

Brilliant!

Still, in the spirit of understanding things fully, how does one proceed
using the method you just described? This fails from the scriptFrame:

parent.mapFrame.getLegendCtrl().SetScale(1000);

Thanks for the help.

Tom



Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> Arh... you have to call mapFrame.GetLegendCtrl()
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Tom Chadwin skrev:
>> Hi Kenneth
>>
>> Thanks for the reply. I know the description and diagram are in the
>> Developers' Guide, but the Legend Palette is not present in either the
>> list
>> of frames or the diagram. Is it part of mapFrame? If so, it must be a
>> frame
>> within it, since I believe that mapFrame.SetScale() throws an error.
>>
>> Thanks
>>
>> Tom
>>
>>
>>
>> Kenneth Skovhede, GEOGRAF A/S wrote:
>>   
>>> The viewer frame layout is described in the "MapGuide Developers Guide" 
>>> on page 19:
>>> http://mapguide.osgeo.org/2.0/documentation.html
>>>
>>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>>
>>>
>>>
>>> Tom Chadwin skrev:
>>> 
>>>> Hello
>>>>
>>>> I cannot work out which frame contains the legend palette functions. I
>>>> want
>>>> to execute the Viewer API function SetScale from a script in the
>>>> scriptFrame, but cannot seem to get the path right.
>>>>
>>>> Can anyone help?
>>>>
>>>> Many thanks
>>>>
>>>> Tom
>>>>   
>>>>   
>>> ___
>>> mapguide-users mailing list
>>> mapguide-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>> 
>>
>>   
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Call-legend-palette-method-from-scriptFrame-tp17986614p17988347.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Call legend palette method from scriptFrame

2008-06-18 Thread Tom Chadwin

Hi Kenneth

Thanks for the reply. I know the description and diagram are in the
Developers' Guide, but the Legend Palette is not present in either the list
of frames or the diagram. Is it part of mapFrame? If so, it must be a frame
within it, since I believe that mapFrame.SetScale() throws an error.

Thanks

Tom



Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> The viewer frame layout is described in the "MapGuide Developers Guide" 
> on page 19:
> http://mapguide.osgeo.org/2.0/documentation.html
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Tom Chadwin skrev:
>> Hello
>>
>> I cannot work out which frame contains the legend palette functions. I
>> want
>> to execute the Viewer API function SetScale from a script in the
>> scriptFrame, but cannot seem to get the path right.
>>
>> Can anyone help?
>>
>> Many thanks
>>
>> Tom
>>   
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Call-legend-palette-method-from-scriptFrame-tp17986614p17987600.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Call legend palette method from scriptFrame

2008-06-18 Thread Tom Chadwin

Hello

I cannot work out which frame contains the legend palette functions. I want
to execute the Viewer API function SetScale from a script in the
scriptFrame, but cannot seem to get the path right.

Can anyone help?

Many thanks

Tom
-- 
View this message in context: 
http://www.nabble.com/Call-legend-palette-method-from-scriptFrame-tp17986614p17986614.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] FF 3 ...AJAX viewer does not load map

2008-06-18 Thread Tom Chadwin

Hello all

Just to confirm, map also fails to load in FF3 on WinXP SP3, (MGOS on W2K3
IIS, PHP):

http://maps.northumberlandnationalpark.org.uk:443/

Also, layers which are set not to appear in the legend appear initially,
labelled with '?' as they do in IE7. However, they do not subsequently
disappear, as they do in IE7.

Hope this helps, as this is obviously extremely important.

Thanks

Tom



macieksk wrote:
> 
> Hi
> 
> all about this  is under this url:
> http://trac.osgeo.org/mapguide/ticket/378
> i add screen from Firebug (on FF 3 full)
> 
> So dear Mapguide team how can we fix this?
> 
> this bug should be fixed immediately
> 
> ...new customers...and counting.
> http://downloadcounter.sj.mozilla.com/
> 
> 
> maciek
> 
> 
> 
> 
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FF-3-...AJAX-viewer-does-not-load-map-tp17972103p17984100.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: RE: [mapguide-users] Passing variables into MGOS [No Viruses detected]

2008-06-16 Thread Tom Chadwin

Hi Mauricio

I've followed your instructions (MGOS2.0, W2K3, IIS, PHP), but the value of
externalParam is not appearing in the taskframe FRAME tag SRC value. See
http://maps.northumberlandnationalpark.org.uk:443?externalParam=test/
(assuming I've got the networking right for it to be externally visible).

Any ideas what I should check to get this working?

Thanks

Tom



Mauricio Villablanca wrote:
> 
> A little bit late here's how you pass ONE parameter to Mapguide:
> 
> Mapguide creates internal parameters when a web layout is loaded. External
> parameters can be sent to Mapguide Open Source by modifying the Mapguide
> API and editing the files mainframe.php, taskframe.php, mainframe.templ.
> taskframe.templ. The PHP scripts are located under www/mapviewerphp and
> the templates under www/viewerfiles in the Mapguide installation folder.
> 
> mainframe.templ and mainframe.php:
> The mainframe.php script loads and formats the mainframe.templ template
> when a web layout is viewed in the browser. The following change must be
> made to the template:
> 
> Add the parameter as variable at the beginning of the script, i.e.: 
> var externalParam = '%s';
> The %s wildcard represents a variable which value will be inserted in that
> line when the template is loaded via the sprintf PHP function.
> 
> Add the variable representing the parameter to the params array populated
> in the AddStdParams function, i.e.
>   params.push("externalParam");  params.push(externalParam);
> 
> Add the variable representing the parameter to the URL generated in the
> MakeUrl function, i.e.
>   url += . + "&externalParam=" + externalParam;
> 
> Once the template has been updated, proceed to edit the mainframe.php
> script. Declare a variable at the beginning of the Mainframe.php script,
> i.e. 
> $externalParam = '';
> 
> Then declare it as a global variable in the BuildViewer function, i.e.
> global $externalParam;
> 
> The variable is then passed to the task pane when Mapguide loads the
> layout by modifying the $srcTaskFrame variable and adding the parameter to
> the URL, i.e.
> $srcTaskFrame =. '&externalParam=' . $externalParam . 
> 
> The variable that represents the parameter must also be added to the
> $templ variable when formatting the mainframe.templ template by inserting
> the variable in the correct order, i.e.
> print sprintf($templ, , $externalParam, 
> 
> Then declare a global variable representing the parameter in the
> GetParameters function and set it, i.e.
>   if(isset($params['externalParam'])) {
>$externalParam = $params['externalParam'];
>   } else { externalParam = '';}
> 
> taskframe.templ and taskframe.php:
> The mainframe.php script also executes the taskFrame.php script that
> formats the taskframe.templ template when a web layout is viewed in the
> browser. The following change must be made to the template:
> 
> Add the additional parameter to the source of the taskPaneFrame frame at
> the end of the remplate, i.e.:
> Src=”... &LOCALE=%s&externalParam=%s" noresize>
> 
> Make the following changes to the the taskframe.php script:
> Declare the variable that represents the parameter at the beginning of the
> script, i.e.:
> $externalParam = '';
> Add the same variable in the correct order to the sprintf function that
> formats the taskframe.templ template, i.e.:
> sprintf($templ, GetSurroundVirtualPath() . "tasklist.php", $locale,
> $taskPane, $session, urlencode($webLayout), $dwf, $locale,
> $externalParam);
> 
> Declare and set the same variable in the GetParameters fuction, i.e.:
> global $externalParam;
> Then
> $externalParam = $params['externalParam'];
>   
> After these changes, pass a parameter to Mapguide by adding the parameter
> to the web layout’s URL, e.g.
> http://server/mapguide/mapviewerajax/?WEBLAYOUT=Library%3a%2f%2ftest%2fWeb_Layouts%2fAll.WebLayout&LOCALE=en&externalParam=foo.
> 
> The external parameter will be passed to the task frame when Mapguide
> loads a web layout. If it’s not added, Mapguide will set it as a empty
> string.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Passing-variables-into-MGOS--No-Viruses-detected--tp7701810p17863142.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users