Re: [mapguide-users] MGOS 2.1 tooltips in Fusion

2009-12-03 Thread gingerbbm

Yes, I did see that but discounted it because it was about .NET specifically.
My installation is PHP. Having re-read it and the corresponding links I'm
still at a loss: the event is not firing.

I have raised this over on the Fusion-Users mailing list:
http://n2.nabble.com/Maptip-not-working-td3906671.html#a3906671
-- 
View this message in context: 
http://n2.nabble.com/MGOS-2-1-tooltips-in-Fusion-tp4099906p4107256.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] MGOS 2.1 tooltips in Fusion

2009-12-02 Thread gingerbbm

Dear all

I have just installed 2.1 on Windows/IIS and set up a quick Fusion
application (LimeGold, out of the box) on a simple map containing one layer
from a SHP file. 

The problem is that I'm not seeing any tooltips, and in Firebug there's
evidently no request being fired. (Looking at one of my older apps I
would've expected something like this:
http://blah/mapagent.fcgi?&operation=QUERYMAPFEATURES&mapname=mymap&geometry=POLYGON...)

The tooltips appear as expected when I use a frames-based layout.

I guess this is something simple. Any ideas?

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/MGOS-2-1-tooltips-in-Fusion-tp4099906p4099906.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] Two performance questions

2009-02-22 Thread gingerbbm

BTW, Jason, that is the problem I was experiencing with MgCooker, but if I
leave the base group checked and check the one zoom scale I'm interested in,
it appears always to generate the tiles in S0 folder.

And perhaps I'm doing something wrong, but all my tiles are blank...
-- 
View this message in context: 
http://n2.nabble.com/Two-performance-questions-tp2358277p2368200.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] Two performance questions

2009-02-22 Thread gingerbbm

Heh. This thread is starting to digress. I'm interested in speeding up the
seeding.

Zac, thanks for your comments. I fully intend to take MapGuide out of the
picture once the tiles have been generated.

You started by saying "i have to stress the concept of testing out the
concepts yourself" which you follow up with "too often i see people doing
heaps of work based on the wrong assumptions". The reason I posted the
original message was to avoid the wrong assumptions when I'm testing the
concepts! If I discover that painting the server increases tiling speed by
50% I'll be sure to share it with you ;)

Thanks again
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Two-performance-questions-tp2358277p2367856.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] Two performance questions

2009-02-21 Thread gingerbbm

How simple is simple? One tile at a time? I'd be interested to see it in any
case. Thanks!
-- 
View this message in context: 
http://n2.nabble.com/Two-performance-questions-tp2358277p2364807.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] Two performance questions

2009-02-21 Thread gingerbbm

Thanks for all your thoughts. Removing unnecessary attributes from the SDFs
is something we can definitely do.

My set-up is MGE2009 on Windows under IIS6 and my questions are really about
how best to configure MapGuide for this environment. I'm running through
various tests but thought it best to canvas opinion amongst people on the
list who've been through these things before.

I've had a quick look at Kenneth's cooker but it doesn't seem to be working
right. Need to find more time for this because if there's a clear winner
between that and Zac's JS seeder I want to use the quickest, obviously.

Thanks again
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Two-performance-questions-tp2358277p2363531.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] Two performance questions

2009-02-20 Thread gingerbbm

Dear all

I've spent a while looking at the documentation, white papers, blogs and
mailing lists in order to try and get a bit more performance out of our
MGE2009 Windows installation using SDFs. We need to seed a tile cache with
many tiles and the predicted execution times are very large. I have two
questions:

1. Is there anything I can do to tweak ISAPI in the same way as is suggested
for FastCGI? I suppose not because when I run Zac's seeder, Task Manager is
showing all eight cores being utilised equally.

2. Is there any advantage in loading our SDFs into a repository? At the
moment they're just external. This page...

http://sandbox.mapguide.com/index.php/Managed_versus_Unmanaged_Resources
http://sandbox.mapguide.com/index.php/Managed_versus_Unmanaged_Resources 

...says "In general the performance of managed and unamanaged resources are
the same", but Zac on his blog at...

http://zacster.blogspot.com/2008/10/mapguide-performance-tips.html
http://zacster.blogspot.com/2008/10/mapguide-performance-tips.html 

...says "Always use Managed Resources, that is SDF's uploaded into the
repository".

And as a follow-on, how does the size of the SDFs affect performance when
loaded and external? We're currently playing with some external ones of
around 6GB (which work fine).

Appreciate your thoughts on all this.

Thanks
Stuart

-- 
View this message in context: 
http://n2.nabble.com/Two-performance-questions-tp2358277p2358277.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, google maps and open layers

2009-02-07 Thread gingerbbm

Is this not a projection issue? The projection of your overlay data from
MapGuide needs to match that used by Google Maps.
-- 
View this message in context: 
http://n2.nabble.com/mapguide%2C-google-maps-and-open-layers-tp2286353p2288981.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] Create map in the session

2009-01-16 Thread gingerbbm

Hi Kenneth

I added the [PHP equivalent of the] following, but it didn't appear to make
any difference to my request.

MgSelection sel = new MgSelection(map);
sel.Save(resourceSrvc, mapName); 

I may revisit this in time, but I discovered another method that I have now
used successfully, described here:

http://lists.osgeo.org/pipermail/mapguide-users/2007-January/004819.html

Thanks for all your help.

Stuart
-- 
View this message in context: 
http://n2.nabble.com/Create-map-in-the-session-tp2163117p2169360.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] Create map in the session

2009-01-15 Thread gingerbbm

Thinking again about your reply, it occurred to me that perhaps the
QUERYMAPFEATURES call will never work if the map hasn't been created by a
Viewer. Is this the case?

And if so, how might I go about querying a map that hasn't been created by a
Viewer?
-- 
View this message in context: 
http://n2.nabble.com/Create-map-in-the-session-tp2163117p2163657.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] Create map in the session

2009-01-15 Thread gingerbbm

Hi Kenneth

If I issue GetResourceContent on Session:..//mapname.Map (as opposed to
.MapDefinition) I don't get an error. I get simply "".

I'm not interested in the viewer - I simply want to issue the HTTP query and
do something with the XML that (hopefully) is returned. If I in fact try the
query having run the previous PHP, i.e.

http://.../mapguide2009/mapagent/mapagent.fcgi?GEOMETRY=POLYGON((3 2,4 2,4
3,3 3,3
2))&MAXFEATURES=1&OPERATION=QUERYMAPFEATURES&PERSIST=0&SELECTIONVARIANT=INTERSECTS&MAPNAME=...&SESSION=...&VERSION=1.0.0

I get the following error:

Invalid argument(s): The value cannot be less than or equal to zero.
Invalid argument(s): The value cannot be less than or equal to zero.
Exception occurred in method MgServerRenderingService.RenderForSelection at
line 1041 in file
d:\build\carrera_nightly\build_34.2\ent\os\server\src\services\rendering\ServerRenderingService.cpp
 

?


-- 
View this message in context: 
http://n2.nabble.com/Create-map-in-the-session-tp2163117p2163532.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] Create map in the session

2009-01-15 Thread gingerbbm

Dear all

I want to be able to issue the following kind of query from a web
application:

http://.../mapguide2009/mapagent/mapagent.fcgi?GEOMETRY=POLYGON((3 2,4 2,4
3,3 3,3
2))&MAXFEATURES=1&OPERATION=QUERYMAPFEATURES&PERSIST=0&SELECTIONVARIANT=INTERSECTS&MAPNAME=...&SESSION=...&VERSION=1.0.0

For this to work I need a session ID and map name, so I'm trying to create a
map in the session on-the-fly, as follows:

Open(new MgUserInformation("Administrator", "admin"));

$sessionId = $site->CreateSession();

$siteConnection = new MgSiteConnection();
$siteConnection->Open(new MgUserInformation($sessionId));

$resourceService =
$siteConnection->CreateService(MgServiceType::ResourceService);
$mdResourceId = new
MgResourceIdentifier("Library://Maps/mapname.MapDefinition");

$mapName = $mdResourceId->GetName();

$map = new MgMap();
$map->Create($resourceService, $mdResourceId, $mapName);

echo "Name of map:" . $map->GetName() . "";
echo "Session ID of map:" . $map->GetSessionId() . "";
echo "Object ID: " . $map->GetObjectId() . "";
echo "Session ID: " . $sessionId . "";

$mapId = new MgResourceIdentifier("Session:$sessionId//$mapName." .
MgResourceType::Map);
$map->Save($resourceService, $mapId);

$layerCollection = $map->GetLayers();
for ($i = 0; $i < $layerCollection->GetCount(); $i++)
{
$layer = $layerCollection->GetItem($i);
echo "  layer #" . ($i + 1) . ": " . $layer->GetName() . 
"";
}
?>

Although this returns a list of layers as expected, the value returned by
$map->GetSessionId() is blank and I suspect this has something to with why,
having loaded this page, I get the following in the map agent when I submit
a GetResourceContent request on "Session:...//mapname.MapDefinition":

Resource was not found: Session:...//mapname.MapDefinition

What am I missing?

Thanks
Stuart

-- 
View this message in context: 
http://n2.nabble.com/Create-map-in-the-session-tp2163117p2163117.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] FeatureSet XML returned by QUERYMAPFEATURES for WFS layer

2008-12-09 Thread gingerbbm

OK... any idea how I should configure the extension? Does MapGuide assume a
particular extension name for primary keys?
-- 
View this message in context: 
http://n2.nabble.com/FeatureSet-XML-returned-by-QUERYMAPFEATURES-for-WFS-layer-tp1614063p1633862.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] FeatureSet XML returned by QUERYMAPFEATURES for WFS layer

2008-12-09 Thread gingerbbm

Hi Kenneth


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> You cannot select items from FeatureSources, if the FeatureSource has no
> primary key.
> 


Could you elaborate on this a bit? If I look in Maestro at the XML for a WFS
connector, or an SDF connector, or an Oracle connector, there's nothing to
suggest a primary key. So how does MapGuide know whether one exists in a
given data source?

Thanks
Stuart

-- 
View this message in context: 
http://n2.nabble.com/FeatureSet-XML-returned-by-QUERYMAPFEATURES-for-WFS-layer-tp1614063p1633250.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] FeatureSet XML returned by QUERYMAPFEATURES for WFS layer

2008-12-04 Thread gingerbbm

Dear all

I've modified the PHP sample (Ajax viewer) to show an SDF layer and a WFS
layer.

If I drag-select in the SDF layer, objects are selected (highlighted) as you
would expect, and the Properties pane is updated.

But, if I drag-select in the WFS layer, nothing happens.

The XML returned by the QUERYMAPFEATURES on the SDF layer:



http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd"> 
  
   
dwgAAA==  
 


SJ99


...


The XML returned by the QUERYMAPFEATURES on the WFS layer:



http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd">




...


In other words, the  element is empty for the WFS layer.
Presumably this is what's preventing the object being highlighted and the
Properties pane being updated.

Can anyone explain why the XML structure is different?

Many thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/FeatureSet-XML-returned-by-QUERYMAPFEATURES-for-WFS-layer-tp1614063p1614063.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] How to check if session is expired?

2008-11-27 Thread gingerbbm


gingerbbm wrote:
> 
> I thought I was losing the connection (hence my efforts).
> 


My bad. I've left three sessions running all day and they're still
connected.

Thanks all!

Stuart


-- 
View this message in context: 
http://www.nabble.com/How-to-check-if-session-is-expired--tp6146014p20724187.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] How to check if session is expired?

2008-11-26 Thread gingerbbm

Hmm... I'll have to check this because I thought I was losing the connection
(hence my efforts).

-- 
View this message in context: 
http://www.nabble.com/How-to-check-if-session-is-expired--tp6146014p20706133.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] How to check if session is expired?

2008-11-26 Thread gingerbbm

Thank you Martin. It's an important point.

-- 
View this message in context: 
http://www.nabble.com/How-to-check-if-session-is-expired--tp6146014p20704800.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] How to check if session is expired?

2008-11-26 Thread gingerbbm

FYI I have implemented the following "keep alive" functionality in Fusion.

This JavaScript excerpt uses the PeriodicalExecuter() class from Prototype.
Place it in your "Fusion initialised" function. It will do a getScale()
every 20 minutes and it appears to keep the map live all day :)

//
// Periodically poll the MapGuide server to keep the session alive.
//
var map = Fusion.getMapById('Map');
new PeriodicalExecuter(
function(pe) {
console.log('Employing keep-alive measures [' + new 
Date() + ']');
map.getScale();
},
1200 // period, in seconds
);

Hope this helps somebody...

Cheers
Stuart
-- 
View this message in context: 
http://www.nabble.com/How-to-check-if-session-is-expired--tp6146014p20704615.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] Installation mapguide 64bits

2008-11-20 Thread gingerbbm

That's good to hear.

I uninstalled 64-bit Windows and replaced it with 32-bit, and got the same
issues. Turns out that this was the problem all along:

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

So anyway I then discovered the patch for MGE2009 which fixes everything.
Here if you need it:

http://usa.autodesk.com/adsk/servlet/ps/dl/index?siteID=123112&id=2334435&linkID=9242179

Thanks all.
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Installation-mapguide-64bits-tp1365405p1558381.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] Installation mapguide 64bits

2008-11-20 Thread gingerbbm

Just got official word from an Autodesk reseller that MGE2009 is not
supported on 64-bit.
-- 
View this message in context: 
http://n2.nabble.com/Installation-mapguide-64bits-tp1365405p1557041.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] Installation mapguide 64bits

2008-11-20 Thread gingerbbm

I've installed on Windows Server 2003 64-bit and it certainly doesn't seem to
work. When I try the functionality in the PHP sample I end up with "Service
Unavailable" and a bunch of messages like this in the event viewer:

"A process serving application pool 'MapGuide' terminated unexpectedly. The
process id was '4056'. The process exit code was '0xe06d7363'."

And ultimately:

"Application pool 'MapGuide' is being automatically disabled due to a series
of failures in the process(es) serving that application pool."

I'm using MapGuide Enterprise 2009 but I assume the same goes for MGOS.

Does anyone have any information on this?

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Installation-mapguide-64bits-tp1365405p1556838.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] Fusion custom widget: how to proceed

2008-11-10 Thread gingerbbm

Allen

If it's not a stupid question, are you definitely refreshing/reloading the
map? It strikes me that if you can see your new layers via the schema report
interface then there's nothing left to check.

Cheers
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Re%3A-Fusion-custom-widget%3A-how-to-proceed-tp1479085p1479888.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] Using GetFeatureInfo on MapGuide layers via WMS

2008-11-05 Thread gingerbbm

Dear all

I am accessing MapGuide layers via WMS (in OpenLayers). I want to be able to
click a point and see feature information (ultimately to create dynamic
tooltips). I found the code to do this job (see below) which employs
GetFeatureInfo.

The thing is, it doesn't appear to work on point or line layers, only
polygon ones. Can anyone confirm that this doesn't work, or offer some
advice on how to make it work.

map.events.register('click', map, function (e) {
OpenLayers.Util.getElement('nodeList').innerHTML = "Loading...
please wait...";
var url =  layerTube.getFullRequestString({
REQUEST: "GetFeatureInfo",
EXCEPTIONS: "application/vnd.ogc.se_xml",
BBOX: layerTube.map.getExtent().toBBOX(),
X: e.xy.x,
Y: e.xy.y,
INFO_FORMAT: 'text/html',
QUERY_LAYERS: layerTube.params.LAYERS,
WIDTH: layerTube.map.size.w,
HEIGHT: layerTube.map.size.h,
TOLERANCE: 50
});
OpenLayers.loadURL(url, '', this, setHTML);
OpenLayers.Event.stop(e);
  }); 


I would appreciate any advice on this subject.

Thanks!
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Using-GetFeatureInfo-on-MapGuide-layers-via-WMS-tp1461258p1461258.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] OpenLayers and MapGuide: retrieving feature information

2008-11-04 Thread gingerbbm

Dear all

I'm new to OpenLayers and I realise that many of you may have not used it,
but I address this to those who have:

I don't know how to retrieve feature information from a MapGuide layer.

I've configured an OpenLayers map to show my tiled base layer using
OpenLayers.Layer.MapGuide(). If I use this same construct for my overlay
layers, how would I go about querying the features within it to show a
tooltip/popup?

I have seen references to WMS and WFS. Should I use these constructs
instead? I just need a hint to get me started so any help is greatly
appreciated.

Thanks in advance
Stuart
-- 
View this message in context: 
http://n2.nabble.com/OpenLayers-and-MapGuide%3A-retrieving-feature-information-tp1454118p1454118.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] Does anybody know how to disable the map login?

2008-10-29 Thread gingerbbm

Well, adding "username=anonymous&password=" to the URL should do it.

If you need to do this programmatically, check out the Developer's Guide
which contains a code sample.

http://mapguide.osgeo.org/sites/mapguide.osgeo.org/files/MgOpenSourceDevGuide.pdf
-- 
View this message in context: 
http://n2.nabble.com/Does-anybody-know-how-to-disable-the-map-login--tp1392988p1393057.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] PNG/PNG8 question regarding overlay transparency

2008-10-29 Thread gingerbbm

OK, I've raised my first ticket!

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


-- 
View this message in context: 
http://n2.nabble.com/PNG-PNG8-question-regarding-overlay-transparency-tp1381702p1393049.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] Watermarking a Map

2008-10-28 Thread gingerbbm

Dear all

Here's a revised JavaScript method for watermarking. This will only overlay
the map. I've added a new parameter elName which is the DIV which contains
the map image. In the Ajax viewer the required value is "mapSpace", so it
could be hard-coded if desired.

/**
 * Place a tiled image between the map and the scale slider
 * to represent a watermark on the map. The image is expected to have a 
 * transparent background.
 *
 * @doc   The document object.
 * @elNameThe name of the element before which the watermark will be
put.
 * @imageUrl  The URL of the map image used for the watermark.
 *
 */
ShowWatermark: function(doc, elName, imageUrl) {

if (!doc) return;
if ((!elName) || (!doc.getElementById(elName))) return;
if (!imageUrl) return;

//
// Create a DIV to hold the watermark.
//
var watermark = doc.createElement('div');

//
// Assign the passed-in background image URL.
//
watermark.style.backgroundImage = 'url(' + imageUrl + ')';

//
// This value is very important. It must be less than the 
lowest z-index
// value used by the scale slider (which happens to be 4 at the 
time of 
// writing.
//
watermark.style.zIndex = '3';

//
// The rest of the styles.
// TODO: Make this more sustainable. External CSS?
//
watermark.style.position = 'absolute';
watermark.style.width = '100%';
watermark.style.height = '100%';
watermark.style.opacity = 0.5;
watermark.style.filter = 'alpha(opacity=50)';

watermark.setAttribute('id', this.WATERMARK_ID);

//
// Insert it into the DOM. 
//
var el = doc.getElementById(elName);
el.parentNode.insertBefore(watermark, el);
}

Cheers
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Watermarking-a-Map-tp1085166p1386694.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] TileCache, dynamic layers, and the Session

2008-10-28 Thread gingerbbm

Thanks Kenneth. Sounds like a lot of extra effort... 
-- 
View this message in context: 
http://n2.nabble.com/TileCache%2C-dynamic-layers%2C-and-the-Session-tp1386552p1386682.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] TileCache, dynamic layers, and the Session

2008-10-28 Thread gingerbbm

Dear all

If I'm dynamically adding a session-specific layer to a map that employs
base layer groups (i.e. tiles), is there any way to avoid having a
session-specific tile cache generated?

The dynamic layer is served via a separate request
(GETDYNAMICMAPOVERLAYIMAGE) as a separate image - so in theory I should be
able to have one tile cache used by all sessions.

If this isn't possible it rather defeats the object of having a tile cache
at all.

Any thoughts?

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/TileCache%2C-dynamic-layers%2C-and-the-Session-tp1386552p1386552.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] PNG/PNG8 question regarding overlay transparency

2008-10-28 Thread gingerbbm


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> You should create an enhancement ticket for it.
> 


I found this...

http://trac.osgeo.org/mapguide/wiki/MapGuideRfc38

...which includes the following line:

Include support for "PNG8" in the FORMAT parameter of
GETDYNAMICMAPOVERLAYIMAGE.

So, I'm resisting opening a new ticket.
-- 
View this message in context: 
http://n2.nabble.com/PNG-PNG8-question-regarding-overlay-transparency-tp1381702p1386529.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] PNG/PNG8 question regarding overlay transparency

2008-10-27 Thread gingerbbm

I was using Firefox exclusively. But I just checked IE and there's no
difference.

It's easy to see the differences by finding the GETDYNAMICMAPOVERLAYIMAGE in
Firebug and browsing that URL directly. Swap PNG to PNG8 to see how it
changes.

http://.../mapguide/mapagent/mapagent.fcgi?OPERATION=GETDYNAMICMAPOVERLAYIMAGE&FORMAT=PNG...

In fact the PNG8 overlay looks terrible because the anti-aliasing
disappears.
-- 
View this message in context: 
http://n2.nabble.com/PNG-PNG8-question-regarding-overlay-transparency-tp1381702p1382661.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] PNG/PNG8 question regarding overlay transparency

2008-10-27 Thread gingerbbm


zspitzer wrote:
> 
> tiles are a server wide setting, for overlays it's per request
> 


Well [unless I'm misunderstanding something] that's what I put in the
opening post of this thread. What I want to know is why using PNG8 for both
causes the latter to lose transparency.

?
-- 
View this message in context: 
http://n2.nabble.com/PNG-PNG8-question-regarding-overlay-transparency-tp1381702p1382357.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] PNG/PNG8 question regarding overlay transparency

2008-10-27 Thread gingerbbm

OK... if I use PNG8 for the tiles and PNG for the overlay it looks good, but
I'm still concerned about the file size and would prefer to use PNG8 for
both. Is it possible?
-- 
View this message in context: 
http://n2.nabble.com/PNG-PNG8-question-regarding-overlay-transparency-tp1381702p1382296.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] PNG/PNG8 question regarding overlay transparency

2008-10-27 Thread gingerbbm

Dear all

A while back I saw a tip that suggested changing from PNG to PNG8, so I
updated serverconfig.ini accordingly. That resulted in smaller file sizes
for my tiles but they were being overlaid with one big white image, i.e. not
a very useful map! So I changed the line in ajaxmappane.templ so that the
call to GETDYNAMICMAPOVERLAYIMAGE uses PNG8 and now my overlay is working,
but the transparency of the features contained within the overlay has been
lost.

Using "PNG" in both serverconfig.ini and ajaxmappane.templ:

http://n2.nabble.com/file/n1381702/mg_png.png 

Using "PNG8" in both serverconfig.ini and ajaxmappane.templ:

http://n2.nabble.com/file/n1381702/mg_png8.png 

What am I missing? Is what I want to do actually possible? Please don't make
me revert to JPEGs!

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/PNG-PNG8-question-regarding-overlay-transparency-tp1381702p1381702.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] Zac's tile seeder with British National Grid

2008-10-22 Thread gingerbbm


zspitzer wrote:
> 
> the way the tiler shows the scales in the drop down isn't correct BTW
> 


Yeah, it doesn't look right ;)

Thanks Zac: for the tool itself and the subsequent support.
-- 
View this message in context: 
http://n2.nabble.com/Zac%27s-tile-seeder-with-British-National-Grid-tp1360223p1364422.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] Zac's tile seeder with British National Grid

2008-10-22 Thread gingerbbm

Well on the one hand I think I've been the victim of caching issues (oh, the
irony) but also I needed to ensure that the bounds set in the following line
match the ones in the MapDefinition. 

extent = new OpenLayers.Bounds(...);

Seems obvious now.

I still don't understand what the deal is with tempScales and would
appreciate an explanation.

Cheers
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Zac%27s-tile-seeder-with-British-National-Grid-tp1360223p1364337.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] Zac's tile seeder with British National Grid

2008-10-22 Thread gingerbbm


zspitzer wrote:
> 
> you need to change the settings for the extents, the tempScales and under
> params both the mapdefinition, basemaplayergroupname
> 


Check, check and check. However I don't understand what's needed regarding
the tempScales: whatever values I use to populate this array bears no
resemblance to what gets rendered into the drop-down list in the browser.
What should I be using? Currently I have typed in the values that were
generated by Studio, i.e.

var tempScales = [5000,36840.31499,271441.76166,200];

I'm getting tiles but they're big, pink and not very useful!



zspitzer wrote:
> 
> are there any javascript errors?
> 


Only down to extent not being declared globally, which I've rectified.
-- 
View this message in context: 
http://n2.nabble.com/Zac%27s-tile-seeder-with-British-National-Grid-tp1360223p1363881.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] error 1053

2008-10-21 Thread gingerbbm

Just a thought: is the mgserver.exe process still running? Check via Task
Manager and kill if so.
-- 
View this message in context: 
http://n2.nabble.com/error-1053-tp1360586p1361737.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] Zac's tile seeder with British National Grid

2008-10-21 Thread gingerbbm

Dear all

I got Zac's tile seeder working with Sheboygan using both of the following:

http://trac.osgeo.org/mapguide/attachment/wiki/CodeSamples/Tiles/TileCacheSeeding/mapguide_tile_seeder.html
http://trac.osgeo.org/mapguide/attachment/wiki/CodeSamples/Tiles/TileCacheSeeding/mapguide_tile_seeder.html
 

http://trac.osgeo.org/mapguide/attachment/wiki/CodeSamples/JavaScript/OpenlayersExample/sheboygan.php
http://trac.osgeo.org/mapguide/attachment/wiki/CodeSamples/JavaScript/OpenlayersExample/sheboygan.php
 

But I can't convert either to work with my tiled map using British National
Grid coordinates.

I've changed my Bounds like this:

var extent = new OpenLayers.Bounds(302000,37,375000,41);

I've tweaked the mapOptions thus:

var mapOptions = {
...
units: 'm',
projection: 'EPSG:27700',
...
};

And I added these lines (as stated 
http://zacster.blogspot.com/2008/08/tiny-little-openlayers-mapguide-fusion.html
in Zac's blog ):

var metersPerUnit = 111319.4908;  //value returned from mapguide
var inPerUnit = OpenLayers.INCHES_PER_UNIT.m * metersPerUnit;
OpenLayers.INCHES_PER_UNIT["dd"] = inPerUnit;
OpenLayers.INCHES_PER_UNIT["degrees"] = inPerUnit;

I'm suspicious about the hard-coded tempScales values. As I have no previous
experience with OpenLayers, perhaps there's something obvious I've not done.

Any ideas, anyone?

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Zac%27s-tile-seeder-with-British-National-Grid-tp1360223p1360223.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 Oracle FDO provider: Autodesk vs.King.Oracle

2008-10-17 Thread gingerbbm


Brent Robinson wrote:
> The extra one to copy is OracleOverrides.dll.


Ah, that's OK then. I thought that was Number 3 but it already existed in
the MGOS bin/FDO folder. Thanks for confirming.
-- 
View this message in context: 
http://n2.nabble.com/MapGuide-Oracle-FDO-provider%3A-Autodesk-vs.-King.Oracle-tp1341597p1345416.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 Oracle FDO provider: Autodesk vs.King.Oracle

2008-10-17 Thread gingerbbm


- the Autodesk Oracle provider DLLs (there should be at least three of them)


Any idea which ones? I copied the following:
1. Autodesk.Gis.Fdo.Providers.Oracle.Overrides.dll
2. FdoRdbms.dll

...and it seems to work. What else?
-- 
View this message in context: 
http://n2.nabble.com/MapGuide-Oracle-FDO-provider%3A-Autodesk-vs.-King.Oracle-tp1341597p1345157.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] Please help! Has anybody used King.Oracleinrealconditions?

2008-10-17 Thread gingerbbm

Here are my details:

MapGuide Server Version 2.0.0.2716
King.Oracle FDO 0.7.4
Windows Server 2003 R2 Service Pack 2 and IIS V6.0
Oracle Client 10.2.0.1.0


Haris Kurtagic wrote:
> If you can test your data and memory issues with Fdo2Fdo that could help.


Not sure what Fdo2Fdo is... I'll have a look...
-- 
View this message in context: 
http://n2.nabble.com/Please-help%21-Has-anybody-used-King.Oracle-in-real-conditions--tp1140937p1344473.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] MapGuide Oracle FDO provider: Autodesk vs. King.Oracle

2008-10-16 Thread gingerbbm

Dear all

[This was originally posted to FDO Users.]

We have bought and paid for an MGE2009 licence but have been working with
MGOS in order to be up-to-date with the latest and greatest enhancements.
But the King.Oracle FDO provider has memory leak issues (
http://n2.nabble.com/Please-help%21-Has-anybody-used-King.Oracle-in-real-conditions--td1140937.html#a1336262
which Haris is looking into ).

I'm wondering if it's possible to use the Autodesk provider (for which we're
licensed) with MGOS? And if so, how does one go about it?

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/MapGuide-Oracle-FDO-provider%3A-Autodesk-vs.-King.Oracle-tp1341597p1341597.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] Generate map tiles from Oracle data

2008-10-16 Thread gingerbbm


gingerbbm wrote:
> 
> My next question is whether MapGuide will use the same set of tiles for
> base layers that are referenced in several different map definitions. I
> assume it will... can somebody confirm this?
> 


Well I've had a look in the Repositories/TileCache folder and it's obvious
that this is not the case. This means that for each project with the same
base layers we're going to have to have a distinct copy of the tiles. Is
there any way around this duplication?

-- 
View this message in context: 
http://n2.nabble.com/Generate-map-tiles-from-Oracle-data-tp1336571p1340619.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] Generate map tiles from Oracle data

2008-10-16 Thread gingerbbm

This is really excellent information.

So as I understand it if I convert my Oracle tables to SDF, and use the SDFs
as layers in a Base Layer group, then seed the tile cache using Zac's tool,
it'll fly.

My next question is whether MapGuide will use the same set of tiles for base
layers that are referenced in several different map definitions. I assume it
will... can somebody confirm this?

Thanks
Stuart

-- 
View this message in context: 
http://n2.nabble.com/Generate-map-tiles-from-Oracle-data-tp1336571p1340364.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] Generate map tiles from Oracle data

2008-10-15 Thread gingerbbm

Hmm.

Is there a way to configure MapGuide to exclusively use a tile cache? The
reason I ask is that the initial enumeration of spatial objects in the
Oracle schema is really slow. Jason states that:


using the Base Layer Group functionality in MapGuide would mean that
requests beyond the initial request would come from the tiles rather than
from Oracle


Is there any way around this once my tiles exist?
-- 
View this message in context: 
http://n2.nabble.com/Generate-map-tiles-from-Oracle-data-tp1336571p1338864.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] Generate map tiles from Oracle data

2008-10-15 Thread gingerbbm

I'm amazed that I've been goofing around with MapGuide for months and yet
I've only just discovered Base Layers. Thank you all so much for continuing
to say "use base layers". I just tried it and the tiling is great, even on
our crummy development box.

I've got a few more things to try... but thanks again. It's been most
revelatory :)
-- 
View this message in context: 
http://n2.nabble.com/Generate-map-tiles-from-Oracle-data-tp1336571p1337810.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] Generate map tiles from Oracle data

2008-10-15 Thread gingerbbm


Jason Birch wrote:
> 
> It may be that I am missing something vital from your initial requirements
> :)
> 

OK, let me try and explain our predicament in a bit more detail.

We have MapGuide serving maps using data held in Oracle spatial tables. So
for example we have one table holding all the roads for the UK. What we want
to do is create a set of tiles at various zoom levels for this data so that
we can cease to hold the information in Oracle.

At the moment MapGuide is reading the spatial data from Oracle, generating
an image, and streaming it to the browser. What we want to end up with is
MapGuide simply serving up static tiles.

Is this any clearer? :confused:

-- 
View this message in context: 
http://n2.nabble.com/Generate-map-tiles-from-Oracle-data-tp1336571p1337615.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] Generate map tiles from Oracle data

2008-10-15 Thread gingerbbm

Thanks, but as I understand, for Zac's tool to work, the tiles need to exist
first. I need to create tiles for non-tiled data held in Oracle.
-- 
View this message in context: 
http://n2.nabble.com/Generate-map-tiles-from-Oracle-data-tp1336571p1337398.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] Generate map tiles from Oracle data

2008-10-15 Thread gingerbbm

Hi George

Yes, I downloaded it, but it looks out of date to my eye. One of the
instructions is to replace the DLLs it comes with, with those from the
Enterprise bin folder. But the names of these files are mostly different so
I assumed it just doesn't work with the latest software.

I sent Websoft an e-mail. I'm suspicious that all the dates I've seen on
their website are 2007 or earlier.

If you're happy to make available your PHP scripts I'll gladly give them a
go. How do they work?

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Generate-map-tiles-from-Oracle-data-tp1336571p1337209.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] Generate map tiles from Oracle data

2008-10-15 Thread gingerbbm


zspitzer wrote:
> 
> have you tried using base layer groups rather than layer groups?
> 

Forgive my ignorance. Use the base layer groups to generate tiles? Or
improve performance?
-- 
View this message in context: 
http://n2.nabble.com/Generate-map-tiles-from-Oracle-data-tp1336571p1336681.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] Generate map tiles from Oracle data

2008-10-15 Thread gingerbbm

Dear all

Does anyone have any ideas on how to do this? Given the troubles we've had
getting MapGuide to generate maps on-the-fly from our Oracle data, and given
the fact that we've spent considerable time doing getting the theming right,
perhaps there's something that plugs into or uses MapGuide to generate
tiles?

Any and all ideas welcome!

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Generate-map-tiles-from-Oracle-data-tp1336571p1336571.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] Please help! Has anybody used King.Oracle inreal conditions?

2008-10-13 Thread gingerbbm

Hi Haris


Haris Kurtagic wrote:
> 
> Seriously, I will have some news by start of next week.
> 

Sorry to chase you. Were you able to make any progress?
-- 
View this message in context: 
http://n2.nabble.com/Please-help%21-Has-anybody-used-King.Oracle-in-real-conditions--tp1140937p1328900.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] Please help! Has anybody used King.Oracle inreal conditions?

2008-10-08 Thread gingerbbm


Haris Kurtagic wrote:
> 
> Seriously, I will have some news by start of next week.
> 

Really appreciate it. Thanks!

-- 
View this message in context: 
http://n2.nabble.com/Please-help%21-Has-anybody-used-King.Oracle-in-real-conditions--tp1140937p1306959.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] Please help! Has anybody used King.Oracle in real conditions?

2008-10-08 Thread gingerbbm

Hi Haris


shreepad Ranadive wrote:
> 
> did you get time to look into this. please let us know 
> 

Or, if possible, do you at least have a timescale for looking into it? :-)

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Please-help%21-Has-anybody-used-King.Oracle-in-real-conditions--tp1140937p1306252.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] Please help! Has anybody used King.Oracleinreal conditions?

2008-10-06 Thread gingerbbm

Hi Haris


Haris Kurtagic wrote:
> 
> How many spatial tables you have?
> How many tables you use in a MapGuide?
> 

It varies. Current set-up is around 150 Oracle schemas, each containing at
most 100 spatial tables (actually, they're views into a different schema).
The data covers the whole of the UK.


Haris Kurtagic wrote:
> 
> using one Oracle Schema owner and setting that owner name in King.Oracle
> connection property should speed it up.
> 

I've modified our installation of MapGuide so that on each map request we
look in the appropriate schema for the appropriate table. It all works, but
it's just not very quick.

Cheers
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Please-help%21-Has-anybody-used-King.Oracle-in-real-conditions--tp1140937p1300345.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] Please help! Has anybody used King.Oracle inreal conditions?

2008-10-05 Thread gingerbbm

I really appreciate your responses.

We went from having one Oracle schema containing all our spatial tables, to
many schemas containing a few, but still the initial hit/enumeration is
unacceptable. I'm now considering one Oracle schema per table, but this
really concerns me from an administrative point of view!

I suppose we could look at converting to SDF again. We did before but the
files were very very large.

Thanks again
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Please-help%21-Has-anybody-used-King.Oracle-in-real-conditions--tp1140937p1298986.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] Please help! Has anybody used King.Oracle in real conditions?

2008-10-03 Thread gingerbbm

I am facing the same problems. MapGuide Open Source running on Windows Server
2003 and IIS6, using King.Oracle to connect to an Oracle 10g database.

Everything's working pretty well except for the fact the memory gets gobbled
at an alarming rate, and it doesn't ever seem to be freed.

As an aside, I'm concerned about the performance of the enumeration of
spatial objects in the database. It appears that this happens once per
database schema. Is there some way of making this quicker? Or caching the
information before users hit the site? I'd appreciate any advice because
although it's close, it's not good enough to go live with. And I've invested
a lot of time in this product which I'd like to see the benefit of :)

Any help is greatly appreciated.

Cheers
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Please-help%21-Has-anybody-used-King.Oracle-in-real-conditions--tp1140937p1142504.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] Watermarking a Map

2008-09-24 Thread gingerbbm

Yes, sorry, I should've probably put a disclaimer on the solution I posted
up. I arrived at this solution for the project I'm currently working on
which has an extremely simple interface: it's just the map and the scale
slider. So I hadn't tried it with more elements of the Ajax viewer.

Still, it shouldn't be too difficult to tweak/improve. (And I recommend
Firebug to help drill down into the HTML in order to find the right place to
insert the watermark DIV.)

Cheers
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Watermarking-a-Map-tp1085166p1115812.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] Watermarking a Map

2008-09-24 Thread gingerbbm


Andy Morsell wrote:
> 
> Does the map print with the watermark or is it only for screen viewing?
> 

Assuming that you're talking about using the "Get printable page" button on
the standard toolbar, no. It's only for screen viewing.
-- 
View this message in context: 
http://n2.nabble.com/Watermarking-a-Map-tp1085166p1114810.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] Adding a watermark (Ajax viewer)

2008-09-23 Thread gingerbbm

OK, I have a solution. See the aforementioned thread.
-- 
View this message in context: 
http://n2.nabble.com/Adding-a-watermark-%28Ajax-viewer%29-tp1096871p1112330.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] Watermarking a Map

2008-09-23 Thread gingerbbm



>> Here is Fridays problem - Watermarking a map.  Not in Fusion, just on a
>> basic layout.
> 

Here's what I came up with (for the Ajax viewer). The expected parameters to
this JavaScript method are:

doc: The document object, such as that returned by
"frames['mapFrame'].document"
imageUrl: The path to the watermark tile, e.g. "/images/watermark.gif"

So this method will insert a DIV that covers the entire map with the tiled
image. My image is transparent except for the required watermark string. In
the code I set the opacity, but this is probably not necessary if you get
your image looking the way you want it to beforehand. There are two
important things to note:

1. I'm using this in a WebLayout with no left or right pane, and the middle
pane comprises the status bar and zoom control only (plus the map of
course). In this configuration the map frame is resizeable despite no left
pane being present, which is undesirable. Fortunately, the watermarking
method below covers this up and prevents manual resizing.

2. The z-index of the inserted DIV must be configured to be less than that
of the zoom control ("scale slider") so that it appears underneath, but
still above the map image.


ShowInAjaxViewer: function(doc, imageUrl) {

if (!doc) return;
if (!imageUrl) return;

//
// Create a DIV to hold the watermark.
//
var watermark = doc.createElement('div');

//
// Assign the passed-in background image URL.
//
watermark.style.backgroundImage = 'url(' + imageUrl + ')';

//
// This value is very important. It must be less than the 
lowest z-index
// value used by the scale slider (which happens to be 4 at the 
time of 
// writing.
//
watermark.style.zIndex = '3';

//
// The rest of the styles.
//
watermark.style.position = 'absolute';
watermark.style.width = '100%';
watermark.style.height = '100%';
watermark.style.opacity = 0.5;
watermark.style.filter = 'alpha(opacity=50)';

doc.body.insertBefore(watermark, doc.body.firstChild);
}


Hope this helps somebody.

Cheers
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Watermarking-a-Map-tp1085166p1112325.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] Adding a watermark (Ajax viewer)

2008-09-17 Thread gingerbbm

Apologies. I've just seen this recent thread:

http://n2.nabble.com/Watermarking-a-Map-td1085166.html
http://n2.nabble.com/Watermarking-a-Map-td1085166.html 

I'm still interested to know if anyone's achieved this... 
-- 
View this message in context: 
http://n2.nabble.com/Adding-a-watermark-%28Ajax-viewer%29-tp1096871p1096896.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] Adding a watermark (Ajax viewer)

2008-09-17 Thread gingerbbm

Hi folks

According to my Googling this subject has come up a few times in the past
though I've not seen any definitive answers. My preferred option is to place
a transparent image over the map but I'm wondering what'll happen to the
mouse events.

If anyone has successfully used this overlay method I'd be interested in
your experiences.

Thanks
Stuart

P.S. How come watermarking isn't a standard feature in MapGuide anyway?
-- 
View this message in context: 
http://n2.nabble.com/Adding-a-watermark-%28Ajax-viewer%29-tp1096871p1096871.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] Extending the functionality of built-in commands (Ajax viewer)

2008-09-15 Thread gingerbbm

Kenneth, you are a star.

I tweaked your code as follows to prove the visibility toggling:

$map = new MgMap(); 
$map->Open($resourceService, $mapName); 
$map->GetLayers()->GetItem(0)->SetVisible(true);
$resId = new MgResourceIdentifier("Session:$sessionID//$mapName.Map");
$resId->Validate();
$map->Save($resourceService, $resId);

Ultimately I needed to change the feature class of a layer. To achieve this
I read in the LayerDefinition from the Library repository, edit the
FeatureName XML element in the desired manner, then write the modified
LayerDefinition to the Session repository, which I use in a
SetLayerDefinition() call on the relevant layer in the runtime map. And it
works a treat!

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Extending-the-functionality-of-built-in-commands-%28Ajax-viewer%29-tp841643p1090337.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] Extending the functionality of built-in commands (Ajax viewer)

2008-09-11 Thread gingerbbm

[This question is off the back of 
http://n2.nabble.com/RE%3A-Bypassing-initial-view-at-startup-td790257.html
this thread .]

I have successfully intercepted the call to mapagent.fcgi with a call to my
own PHP page (let's call it "bespoke.php"). I build a querystring of all the
POST or GET parameters and simply redirect at the end of bespoke.php like
so:


$url = "mapagent.fcgi?" . $querystring;
header("Location: $url");
exit();


That works nicely.

Ultimately, before redirection occurs, I want to alter the feature class of
one of the layers, but for now I'm just trying to toggle the visibility of
one (via the MapDefinition) to prove the point. I simply read in the map
definition as XML, tweak it, then write it back:


$siteConnection = new MgSiteConnection();
$siteConnection->Open(new MgUserInformation($sessionId));
$resourceService =
$siteConnection->CreateService(MgServiceType::ResourceService);

// Use MapDefinition from the Session
$mdResourceId = new
MgResourceIdentifier("Session:$sessionId//$mapName.MapDefinition");
$mdReader = $resourceService->GetResourceContent($mdResourceId);
$mdXml = $mdReader->ToString();
$mdDomDoc = DOMDocument::loadXML($mdXml); 

$node = $mdDomDoc->getElementsByTagName("Visible")->item(1);
$node->nodeValue = "false";

$mdUpdatedXml = $mdDomDoc->saveXML();
$mdByteSource = new MgByteSource($mdUpdatedXml, strlen($mdUpdatedXml));

// Overwrite
$resourceService->SetResource($mdResourceId, $mdByteSource->GetReader(),
null);


Although I can confirm that the MapDefinition in the Session is changing as
expected (by interrogating http://.../mapguide/mapagent/index.html), the
map's appearance does not change as expected when it redraws.

Any ideas why not?

Thanks
Stuart



Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> I'm sure it can be done.
> However, it seems fairly advanced.
> I would suggest that you have a look at OpenLayers:
> http://openlayers.org
> 
> With OpenLayers, you can have your MapGuide map as a base layer,
> and then put an overlay with your custom layer.
> You can then override the mapagent path in the overlay to point to your 
> customization page, rather than mapagent.fcgi.
> 
> If you want to stick with the WebLayout based you will most likely get 
> better results with a manually added overlay image.
> The problem with the manual approach is passing on events to the image 
> below.
> 
> Another option would be to have all calls to mapagent.fcgi point to your 
> PHP script, and then make the script
> act as a relay page for those calls that you are not interrested in.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
-- 
View this message in context: 
http://n2.nabble.com/Extending-the-functionality-of-built-in-commands-%28Ajax-viewer%29-tp841643p1083220.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] Adjusting subsequent views

2008-09-05 Thread gingerbbm

This belongs in a 
http://n2.nabble.com/Extending-the-functionality-of-built-in-commands-%28Ajax-viewer%29-td841643.html
new thread .
-- 
View this message in context: 
http://n2.nabble.com/RE%3A-Bypassing-initial-view-at-startup-tp790257p841646.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] Extending the functionality of built-in commands (Ajax viewer)

2008-09-05 Thread gingerbbm

This is my challenge: as the user pans the map (using the Ajax viewer) I need
to update the feature class of one of the layers.

(Based upon the coordinates I can work out which database table the feature
class must be changed to.)

My current idea is to put a synchronous call to a bespoke PHP during the
relevant JavaScript functions (such as Pan()) which will alter the runtime
map. When control returns to the JavaScript, RequestMap() will ultimately be
called and thus display my altered map. But to me this seems a bit nasty.

Any comments or suggestions?

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Extending-the-functionality-of-built-in-commands-%28Ajax-viewer%29-tp841643p841643.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] Adjusting subsequent views

2008-09-05 Thread gingerbbm

OK, I understand that I can grab the runtime map and use the API to alter it.
The question is, where do I put the code to do this? For the Ajax viewer
I've traced the code to JavaScript in ajaxmappane.templ, where functions
like Pan() end up calling RequestMap(). But RequestMap() posts to
mapagent.fcgi - in other words an impasse.

My current idea is to put a synchronous call to a bespoke PHP during the
relevant JavaScript functions (such as Pan()) which will alter the runtime
map. When control returns to the JavaScript, RequestMap() will ultimately be
called and thus display my altered map.

Do this sound feasible? :confused:
 
-- 
View this message in context: 
http://n2.nabble.com/RE%3A-Bypassing-initial-view-at-startup-tp790257p841215.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] Adjusting subsequent views

2008-09-05 Thread gingerbbm

I don't mind at all; thanks for doing it.

Just as an addendum to this discussion about adjusting map configuration
dynamically, my next challenge is to update the feature class of a layer
based upon the current map centre point. In other words, as the user drags
the map around, at certain positions the underlying database table for one
of my layers needs to change.

Back towards the start of this thread, one of the suggestions for adjusting
the intial map view was:

"2. modify the ajaxviewer"

Is this my only option to set a layer's feature class dynamically? My
current thinking is to override specific tools (such as pan) to call a
custom PHP which ultimately redirects to the Ajax Viewer.

Any thoughts on this?
-- 
View this message in context: 
http://n2.nabble.com/RE%3A-Bypassing-initial-view-at-startup-tp790257p840943.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] Bypassing initial view at startup - and adding a layer

2008-09-04 Thread gingerbbm

Well, hooray, and thanks for all your help. I'd like to buy you a beer ;) 

Here's a snippet that might be useful for others:

// Build a string pointing to the new layer in the Session
$rlLayerResourceId = "Session:$sessionId//$layerName.LayerDefinition";

// Read the XML of the Library Map Definition
$mdReader = $resourceService->GetResourceContent($mdResourceId);
$mdXml = $mdReader->ToString();
$mdDomDoc = DOMDocument::loadXML($mdXml); 

// Create the MapLayer XML nodeset in the first position
$targetNode = $mdDomDoc->getElementsByTagName("MapLayer")->item(0);
$newNode = $targetNode->parentNode->insertBefore(new DOMElement("MapLayer"),
$targetNode); 
$newNode->appendChild($mdDomDoc->createElement("Name", $layerName));
$newNode->appendChild($mdDomDoc->createElement("ResourceId",
$rlLayerResourceId));
$newNode->appendChild($mdDomDoc->createElement("Selectable", "false"));
$newNode->appendChild($mdDomDoc->createElement("ShowInLegend", "false"));
$newNode->appendChild($mdDomDoc->createElement("LegendLabel"));
$newNode->appendChild($mdDomDoc->createElement("ExpandInLegend", "false"));
$newNode->appendChild($mdDomDoc->createElement("Visible", "true"));
$newNode->appendChild($mdDomDoc->createElement("Group"));

// Write the XML out to form the Session Map Definition
$mdUpdatedXml = $mdDomDoc->saveXML();


-- 
View this message in context: 
http://n2.nabble.com/RE%3A-Bypassing-initial-view-at-startup-tp790257p839124.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] Bypassing initial view at startup - and adding a layer

2008-09-04 Thread gingerbbm

Kenneth, thankyou for your continued help (and patience)!

The key point I was missing is:

Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> 2. Insert the polygon layer into the Xml
> 

I guess I can do a GetResourceContent() on my polygon layer and insert its
XML into my Map Definition XML. But the polygon layer's XML references a
feature source defined as:

http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd" version="1.0.0">
OSGeo.SDF
  
File
 %MG_DATA_FILE_PATH%RedlineLayer.sdf
 
  
ReadOnly
FALSE
  


1. Does this look right?
2. Do I need to insert this XML anywhere?

Thanks
Stuart
-- 
View this message in context: 
http://www.nabble.com/Bypassing-initial-view-at-startup-tp9623015p19308999.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] Bypassing initial view at startup - and adding a layer

2008-09-04 Thread gingerbbm


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> You must add your layer to the MapDefinition in step 1.
> 

OK. I changed my code to do a $map->Create() based upon the Library Map
Definition, whereupon I create the polygon and layer and add it successfully
to $map.

I save that to an MgResourceIdentifier derived from
"Session:$sessionId//$mapName.Map".

Then what I try and do is GetResourceContent() on that MgResourceIdentifier
to load as XML. Then I create a new MgResourceIdentifier derived from
"Session:$sessionId//$sessionMdName.MapDefinition", and when I call
SetResource() against that the script breaks.

I suspect that something is going wrong before that though, because the
script also breaks if I try and echo the variable populated by the saveXML()
method.

-- 
View this message in context: 
http://www.nabble.com/Bypassing-initial-view-at-startup-tp9623015p19308752.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] Bypassing initial view at startup - and adding a layer

2008-09-04 Thread gingerbbm

Having solved the first issue of altering the web layout, I now need a
polygon to appear in the initial view.

I have working code to create a polygon based on a passed-in WKT string but
again am struggling conceptually with how to integrate this into the initial
view code.

At the moment this is what I'm doing:
1. Load the Map Definition from the Library as XML then save it to the
Session.
2. Load the Web Layout from the Library as XML, change the x, y, scale and
 values (the latter to point to my Session Map Definition),
then save it to the Session.
3. Create a new map using the Session Map Definition and invoke my
polygon-creation code.
4. Save the map to the Session.
5. Direct the Ajax Viewer to the Session Web Layout.

The code runs and the map opens but the polygon isn't there. From reading
various threads I think what's happening is that the runtime map I'm
creating is simply being discarded (despite saving it to the session). I'd
appreciate any advice on this.

Thanks
Stuart
-- 
View this message in context: 
http://www.nabble.com/Bypassing-initial-view-at-startup-tp9623015p19306892.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] Google Chrome

2008-09-03 Thread gingerbbm


Jackie C. Ng wrote:
> 
> The mousewheel zoom in the AJAX viewer (MGOS 2.0.1) is a bit buggered in
> Chrome. Anyone else notice?
> 

Yup, first thing I witnessed. In both FF2 and IE7 one notch on my mousewheel
takes my map from 1:15 to 1:10. In the other direction it takes me
to 1:225000.

In Chrome I'm taken to 1:13168.72 and 1:1708593 respectively.
-- 
View this message in context: 
http://www.nabble.com/Google-Chrome-tp19278372p19285341.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] Bypassing initial view at startup

2008-09-02 Thread gingerbbm

As promised, I've added the code to the wiki:

http://trac.osgeo.org/mapguide/wiki/CodeSamples/PHP/InitialMapView
http://trac.osgeo.org/mapguide/wiki/CodeSamples/PHP/InitialMapView 

-- 
View this message in context: 
http://n2.nabble.com/RE%3A-Bypassing-initial-view-at-startup-tp790257p833784.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] Bypassing initial view at startup

2008-09-02 Thread gingerbbm

Thanks Kenneth. That line was already in my code, albeit commented out.
Previously I had had success with it in IE, only to try it in Firefox
whereupon I'd get a PHP access violation, which would then require me to
restart IIS.

Now that I think about it, this was probably because I was running the IE
instance through a debugger at the time that I tried Firefox.

Thanks
Stuart

-- 
View this message in context: 
http://n2.nabble.com/RE%3A-Bypassing-initial-view-at-startup-tp790257p833656.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] Bypassing initial view at startup

2008-09-02 Thread gingerbbm

Well, I'm almost there. The only problem is that I'm being prompted to log
in, despite successfully creating a session for the anonymous user. I'd
appreciate any advice. Here's the code:

http://n2.nabble.com/file/n833593/set_initial_view.php set_initial_view.php 

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/RE%3A-Bypassing-initial-view-at-startup-tp790257p833593.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] Bypassing initial view at startup

2008-08-29 Thread gingerbbm

First of all, thanks for the speedy responses! Glad to know I was on the
right track. As a bit of bed-time reading last night I revisited the
Developer's Guide and it also confirmed the way to go. RTFM, eh?!

I need the map to go straight to the coords/scale passed in via a URL's
querystring, so the JavaScript (two step) suggestion won't cut it. I also
don't want to dabble with the base code for the reasons you mentioned.

I very much like the idea of the PHP page redirecting to the viewer, so
thanks for that one.

When I get this sorted I'll put in on the wiki.

Thanks again
Stuart
-- 
View this message in context: 
http://n2.nabble.com/RE%3A-Bypassing-initial-view-at-startup-tp790257p791707.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] Bypassing initial view at startup

2008-08-28 Thread gingerbbm

This is an old thread but very important for me right now.

I want to set the initial view (coords and scale) of a map and have been
struggling conceptually with how to implement this. I have a page containing
an iframe. The iframe's src attribute is the path to a MapGuide web layout,
e.g.

/mapguide/mapviewerajax/?WEBLAYOUT=Library://Trial/Trial.WebLayout&LOCALE=en

Originally I thought that I would need to interrupt the initial map load to
dabble with the web layout's XML, but http://tinyurl.com/6jkdyj talks about
creating a copy of the web layout, making the desired changes, and saving it
to the session, and using the copy. So would the following be the right way
to go?

1. Change the main page's iframe to have no src attribute specified
2. On page load, call a PHP script to create a web layout in the session
based upon the one in the library
3. Dynamically set the iframe's src to be something like
"...?WEBLAYOUT=Session://..."

I hope one of you seasoned MapGuide developers can put me straight on this!
Thanks for your time.

Stuart
-- 
View this message in context: 
http://www.nabble.com/Bypassing-initial-view-at-startup-tp9623015p19205498.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 Enterprise 2009 and Oracle View

2008-08-26 Thread gingerbbm

Francesco

Check out the open source FDO provider King.Oracle:
http://www.sl-king.com/fdooracle/fdooracle.html
http://www.sl-king.com/fdooracle/fdooracle.html 

Installation instructions:
http://www.sl-king.com/fdooracle/download/README.txt
http://www.sl-king.com/fdooracle/download/README.txt 

"How to":
http://www.sl-king.com/fdooracle/KingFdoClass.htm
http://www.sl-king.com/fdooracle/KingFdoClass.htm 

Sorry that this is a bit of a link dump, but persevere because this works
well with Enterprise 2009 and Oracle (we're doing it this way).

Cheers
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Mapguide-Enterprise-2009-and-Oracle-View-tp780917p784086.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] Custom command button behaviour (Ajax viewer)

2008-08-22 Thread gingerbbm

Dear all

I've successfully added a custom command to a toolbar in the Ajax Viewer
using MapGuide Studio 2009. The tool is a polygon redline tool that performs
an "Invoke Script" action: the user plots their polygon using
DigitizePolygon() and in the callback I send the points to a server script.
That all works.

I'd like the button to appear selected (as with the built-in tools such as
"Select Polygon") until a different tool is chosen, but this isn't happening
by default. Is there a JavaScript flag or something I need to set for this?

Thanks
Stuart
-- 
View this message in context: 
http://n2.nabble.com/Custom-command-button-behaviour-%28Ajax-viewer%29-tp759660p759660.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] Fusion + Oracle datasource problem

2008-08-21 Thread gingerbbm

We're using IIS6. Are you using Fusion to render Oracle spatial objects in
MapGuide?

I'll take a look at that link!
-- 
View this message in context: 
http://www.nabble.com/Fusion-%2B-Oracle-datasource-problem-tp17884373p19092627.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] Fusion + Oracle datasource problem

2008-08-21 Thread gingerbbm

Thanks Paul :)
-- 
View this message in context: 
http://www.nabble.com/Fusion-%2B-Oracle-datasource-problem-tp17884373p19092411.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] Fusion + Oracle datasource problem

2008-08-21 Thread gingerbbm


Rock Beans wrote:
> 
> To be honest how does the data source type affect one viewer over the
> other
> 
It's simply the problem that startup takes an age - if it works at all. And
with more than ten or so layers it simply doesn't work. But it's true that
if and when the initial load is done it all works fine. And that's the
galling part.

-- 
View this message in context: 
http://www.nabble.com/Fusion-%2B-Oracle-datasource-problem-tp17884373p19092385.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] Fusion + Oracle datasource problem

2008-08-20 Thread gingerbbm

That all sounds really promising but unfortunately I'm working to an
aggressive deadline, and having paid money for the Autodesk MapGuide product
I sort of assumed it would operate consistently regardless of my choice of
viewer.

So what's the best way of keeping track of these new developments? Do you
announce it here or somewhere else? I'd like to be involved if I can be.

Cheers
Stuart
-- 
View this message in context: 
http://www.nabble.com/Fusion-%2B-Oracle-datasource-problem-tp17884373p19083167.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] Fusion + Oracle datasource problem

2008-08-20 Thread gingerbbm

I'm pretty disappointed. I've invested a lot of time learning Fusion and now
I discover that as far as Oracle is concerned it's not fit for purpose. It
takes an age on initial load, and has a limit of around ten layers maximum.

:(

-- 
View this message in context: 
http://www.nabble.com/Fusion-%2B-Oracle-datasource-problem-tp17884373p19069781.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] Fusion + Oracle datasource problem

2008-08-20 Thread gingerbbm

I wish I hadn't just discovered this issue.


Paul Spencer-5 wrote:
> 
> I hope that this will be part of the next Fusion release.
> 

Is Oracle + Fusion speed going to be improved in the next release? And when
is the next release?


-- 
View this message in context: 
http://www.nabble.com/Fusion-%2B-Oracle-datasource-problem-tp17884373p19068079.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] Fusion custom widget: Add polygon to layer

2008-08-04 Thread gingerbbm


gingerbbm wrote:
> 
> How can I check that the layer I've generated really does contain the
> polygon that I think (and hope) it does?
> 
To answer my own question, you need to use the SchemaReport feature of the
MapAgent, available at:

http://{server}/{mapguide2009}/schemareport/main.php

Into the "Resource ID" textbox type the following:

Session:{Session ID}//{New layer name}.FeatureSource

Click "Find". On the next screen, click "View Feature" to see if your
polygon (or whatever) exists.

In my case, I discovered that the polygon wasn't being created despite
receiving no error messages. It turns out that [using the DRAW_LINES.PHP
from the MapGuide samples] the string "Lines" in the following code excerpt
must be consistent.

...
$map = new MgMap();
$map->Open($resourceService, $mapName); 
$layerName = "Lines";
...
$classDefinition = new MgClassDefinition();
$classDefinition->SetName("Lines");
...
$featureName = "SHP_Schema:Lines";
$geometry = "SHPGEOM";
$layerDefinition = $factory->CreateLayerDefinition(...);
...

Hope this helps somebody someday...

Cheers
Stuart
-- 
View this message in context: 
http://www.nabble.com/Fusion-custom-widget%3A-how-to-proceed-tp18614320p18813929.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] Fusion custom widget: how to proceed

2008-07-28 Thread gingerbbm

I have now replaced "this.drawMap()" with "this.reloadMap()" in the
JavaScript and my new layer is now present in the aLayers collection. But it
still doesn't show on the map.

How can I check that the layer I've generated really does contain the
polygon that I think (and hope) it does?
-- 
View this message in context: 
http://www.nabble.com/Fusion-custom-widget%3A-how-to-proceed-tp18614320p18694626.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] Fusion custom widget: how to proceed

2008-07-28 Thread gingerbbm

I've now taken the SelectPolygon widget as the basis for my new DrawPolygon
tool. I have created duplicates of the functions in
fusion\MapGuide\MapGuide.js such as query(), processQueryResults() and so on
and tweaked them to call my PHP function.

The whole process completes without error: I draw a polygon, the PHP is
called, and the map refreshes. But my geometry doesn't appear. What am I
missing?

The PHP code is definitely creating a new layer. But I'm not seeing this in
the "this.aLayers" collection in the JavaScript. Should I? How do I show my
new layer?
-- 
View this message in context: 
http://www.nabble.com/Fusion-custom-widget%3A-how-to-proceed-tp18614320p18686811.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] Fusion custom widget: how to proceed

2008-07-25 Thread gingerbbm

I'm struggling with this. I think part of the problem is that I've been
trying to use the redlining example
(PHPSAMPLES/DIGITIZING_FEATURES/draw_line.php) in the creation of a Fusion
widget. Not to mention the fact that this is my first time with the MapGuide
API and I'm not sure conceptually what the steps are to add a custom
geometry to a map.

Where I'm at is that the JavaScript behind my DrawPolygon widget is calling
the PHP I've written (based on the aforementioned "draw_line.php"). I assume
that the PHP code is OK (it doesn't error) but how do I get the map to
refresh once the PHP code has executed?
-- 
View this message in context: 
http://www.nabble.com/Fusion-custom-widget%3A-how-to-proceed-tp18614320p18652277.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] Fusion custom widget: how to proceed

2008-07-24 Thread gingerbbm


Mike Adair wrote:
> 
> Examples of calling server-side PHP can be found in 
> MapGuide/MapGuide.js.  Look for 'Fusion.ajaxRequest'

Thanks Mike. Ended up using measureSegment() from the Measure widget as my
basis.
-- 
View this message in context: 
http://www.nabble.com/Fusion-custom-widget%3A-how-to-proceed-tp18614320p18628514.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] Fusion custom widget: how to proceed

2008-07-23 Thread gingerbbm

Dear all

I'm new to MapGuide and Fusion. We have an Enterprise 2009 (Windows, IIS)
set-up here and I've successfully created a simple page showing a map and
toolbar. I now want to create a custom widget that allows the user to define
a polygon which is then converted to a redline object on the map.

The Developer's Guide is fairly helpful, stating the three main steps
involved in redlining:
1. Pass the digitized coordinates from the client to the server.
2. Create a temporary feature source. This will be used to draw the lines
on.
3. Create a layer to display that temporary feature source.

But I'm stuck at 1.

I took a copy of SelectPolygon.js, renamed it to DrawPolygon.js, and found
out where to grab the drawn vertices, but I'm not sure how best to fire this
at a PHP file.

I'd appreciate any comments on the best way to do this, and any pointers to
examples.

Many thanks
Stuart
-- 
View this message in context: 
http://www.nabble.com/Fusion-custom-widget%3A-how-to-proceed-tp18614320p18614320.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 studio expired

2008-05-07 Thread gingerbbm

Thanks Zac. Just to be clear, is it only the "Repositories" folder (and all
its contents) I need to copy?
-- 
View this message in context: 
http://www.nabble.com/MapGuide-studio-expired-tp17078652p17100193.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 studio expired

2008-05-07 Thread gingerbbm

Hijacking the thread a little bit: I was using the evaluation version of
MapGuide Studio and Enterprise. They've both now expired and I'm looking for
advice on how to migrate the work I've done to the open source MapGuide
server.

I'd appreciate a few tips!

Thanks
Stuart
-- 
View this message in context: 
http://www.nabble.com/MapGuide-studio-expired-tp17078652p17099739.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] Newbie: Tutorial on setting up the server

2007-11-02 Thread gingerbbm

I guess I'll give Autodesk MapGuide Studio a try then.

Is the configuration too hairy to do manually though? I'd still like to see
it described in a step-by-step guide. What did people do before MapGuide
Studio came along?!

-- 
View this message in context: 
http://www.nabble.com/Newbie%3A-Tutorial-on-setting-up-the-server-tf4734877s16610.html#a13547596
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] Newbie: Tutorial on setting up the server

2007-11-02 Thread gingerbbm

Hi all

Downloaded and configured everything from http://mapguide.osgeo.org/ to get
the ASP.NET sample up and running. Got my spatial tables in my Oracle
database all set to go. Downloaded King Oracle and am now at the point where
I need to create a connection from the MapGuide server to the Oracle
database.

Can I find any simple steps to follow? Nope. I've been around
http://mapguide.osgeo.org/ a number of times but can't find anything to
assist me. I'm not entirely sure I understand the concepts anyway. There's
talk on these here forums of the AutoDesk product to be used for
configuring.

Could someone give me a bit of background, or perhaps point me somewhere?
Everyone using MapGuide must've been through this before.

Thanks in advance. I'm excited by MapGuide and can't wait to start using it
in earnest.

Cheers
Stuart
-- 
View this message in context: 
http://www.nabble.com/Newbie%3A-Tutorial-on-setting-up-the-server-tf4734877s16610.html#a13540129
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