Re: [mapguide-users] Re: Fusion

2011-10-06 Thread Paul Spencer
You can find information about openlayers at http://openlayers.org/

Cheers

Paul

On 2011-10-06, at 12:53 PM, jocup wrote:

> for the third time (i don't now what dowing wrong)
> thanks for the information and it works perfect 
> but i have still questions are where can i have information about openlayers
> en how can i add symbols in a fusion side and coordinate with a database 
> th jo
> 
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Fusion-tp6849463p6866581.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Re: fusion viewer performance vs basic viewer

2011-09-26 Thread Paul Spencer
there wouldn't be an official version yet, you will need to checkout from svn 
to get the latest changes from Jackie.  I'm not sure when the next proposed 
release is supposed to be, but Jackie's code is substantial enough to warrant a 
new version I think :)

Cheers

Paul


On 2011-09-26, at 1:36 PM, frosty1_4me wrote:

> So does that mean that there is a new version of fusion that has the legend
> performance fixes within them?  I believe we're running the fusion 2.2
> version.
> 
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/fusion-viewer-performance-vs-basic-viewer-tp6824506p6832784.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MapToSelection on Fusion

2010-07-05 Thread Paul Spencer
did you try zoomToSelection?  the method names are case sensitive.

Cheers

Paul

On 2010-07-05, at 7:26 AM, Jose Cerrejon wrote:

> 
> I'll trying this code:
> 
>  var map = Fusion.getWidgetById('Map');
>  map.query(options);
>  map.ZoomToSelection();
> 
> But firebug show me:
> 
> map.ZoomToSelection is not a function
> 
> So I supossed that something is wrong to zoom to a query 
> 
> Any help?
> 
> 
> PD: I'm learning a lot of Fusion these days. Do you know any sites with
> examples, tutorials and snip codes?
> -- 
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/MapToSelection-on-Fusion-tp5255695p5255695.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MapGuide with Openlayers (Searching for Detailed yet Simple Development Examples)

2010-03-18 Thread Paul Spencer
Chris,

the simplest MapGuide + OpenLayers example is the one that comes with 
OpenLayers in the examples 
(http://dev.openlayers.org/releases/OpenLayers-2.8/examples/mapguide.html).

The problems start when you want to do anything more complicated than showing a 
MapDefinition as a layer in this way.  

OpenLayers is most efficient when you use minimal client-side layers, it really 
bogs down a browser to display a lot of separate layers.  The controls that 
come with OpenLayers assume that each image is a single entity, so if you want 
to display and control layers separately, you need to communicate with the 
server to get extra information about the layers that make up a map and to 
control the display of individual layers in a session (turn on and off).

OpenLayers selections are actually vector layers, to work with them you need to 
export individual vector features from layers in your MapDefinition and load 
them up on the client side.

A lot of the complexity of Fusion comes from the fundamental differences 
between OpenLayers and how MapGuide and MapServer users 'expect' things to work 
in a more GIS type application. 

Sorry, this probably hasn't been very helpful in solving your particular 
problem.  It just really isn't that easy to do what you are asking, otherwise 
I'm sure that the examples would already be out there.

Cheers

Paul

On 2010-03-18, at 12:21 PM, Chris Gountanis wrote:

> 
> I know the common answer to this is take a look at Fusions 65k lines of OOP
> inheritance rich code. If you are not used to JavaScript programming with
> higher level OOP concepts on a daily basis it can be a pain to reverse
> engineer. I will be checking out Fiddler later today as suggested by
> zspitzer in another post. I assume this is why there are ZERO simple
> break-down development examples on how to use Openlayers with MapGuide or
> ArcGIS.
> 
> 
> I think what people including myself are looking in simple in-line
> JavaScript:
> - Bring in a MapGuide Map showing separate layers as it was designed in
> Studio. Bringing in a map from MapGuide and having it show up in OpenLayers
> as a single overlay is not very useful for most MapGuide developers.
> - Allow built-in Openlayers selection methods on the layers that allow
> selections nothing fancy just show results in message box or something along
> those lines.
> - Show tool tips using MapGuide built-in tool tip settings.
> - Show some legend examples like Fusion but more of a simple JavaScript for
> beginners... nothing pretty just functional examples.
> 
> 
> To the point question: Is OpenLayers and MapGuide a priority or will it
> always be more for WMS overlay in general for max built-in functionality? I
> need to evaluate for our development projects and right now I am personally
> at a loss for MapGuide and ArcGIS with OL as the base client. I really want
> to get on board here and admit my advanced JavaScript is lacking but is
> there anything to help us get started with simple proof of concepts?
> 
> 
> -- 
> View this message in context: 
> http://n2.nabble.com/MapGuide-with-Openlayers-Searching-for-Detailed-yet-Simple-Development-Examples-tp4757480p4757480.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Measuring areas

2009-10-26 Thread Paul Spencer

Hi Rémy,

Your contribution was added to fusion 1.0 (?) (thanks!) but I had some  
problems with the area thing (not specifically with your code IIRC).   
When we started 2.0, the widget was changed substantially to use the  
OpenLayers controls for measuring and a lot of the code was removed,  
but some of the options are still there with your comments!  Area  
support is finally enabled in the latest 2.0 branch and trunk versions  
I believe.


I will close this ticket as invalid as I think we have finally  
addressed this issue.  Please reopen if you disagree.


Cheers

Paul

On 2009-10-26, at 4:09 AM, web wrote:


Hello Zac,
here is the ticket:
http://trac.osgeo.org/mapguide/ticket/1126

I'll post to mg internals too.

regards,
Rémy
___
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


Re: [mapguide-users] Fusion and Open layers Coordinate systems

2009-10-21 Thread Paul Spencer

Scott,

On 2009-10-21, at 12:50 PM, Scott hameister wrote:

Re: the first question...Am I just stuck Using the Mapguide API to  
transform

my bounds perhaps?
Also any clue if OpenLayers is looking to use the CSMAP/mentor  
System in the

future?


OpenLayers does not have native coordinate system transformation  
support (expect for spherical mercator) built in.  It uses an external  
library called proj4js which is a port of proj.4 algorithms to  
javascript.  AFAIK there is no work being done to create a javascript  
version of CSMap, which would be a precursor to being an option for  
use with OpenLayers.




The second Question Was asking How fusion Worked...Non of My Midwest  
County
Based/NAD 27 State based Maps will work for Google/Bing  
Overlays...Does
fusion Display the Google/Bing Layers in the Maps Coordinate system?  
Or does
it project the map into Spherical Mercator to Accomplish the  
overlay...The
only example Ive been successful with is the LL Sheboygan one...So  
its hard

for me to tell.


have you looked at http://trac.osgeo.org/fusion/wiki/MapGuideCommercialOverlays 
 ?


Cheers

Paul





___
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


Re: [mapguide-users] Fusion 2 - Timeline

2009-10-13 Thread Paul Spencer

Hi Brian,

we are not committing to a particular time line but we have made it a  
high priority (at least at DMSG) to fix issues and get a release out  
the door.  Unfortunately, we have to keep the lights on and paid work  
usually takes precedence so progress may be delayed by unforeseen  
circumstances - hence our non-commital attitude towards releases right  
now.


As always, if you are seeing particular problems that haven't been  
discussed before please bring them up.  It sounds like the Legend  
widget is broken for you right now but I haven't heard of or seen this  
myself recently.  Can you describe your data set (or perhaps offer to  
provide a package to one of our devs)?  Legend problems seem to be  
mostly related to us not having good test data for a variety of cases.


Cheers

Paul

On 2009-10-13, at 9:16 AM, Berdel, Brian wrote:


Hello All,
I was just wondering if there is any timeline for the new fusion  
release.  The beta had a lot of issues and I periodically test the  
Trunk, but that actually seems worse now…The Legend is broken and  
scales are off and it is only allowing me to zoom into a certain  
extent.  Thanks, just wondering because I would love to use it, as  
the improvements are great once everything is working.


Thanks,

Brian


Important notice to recipients:
Copies of documents that may be relied upon by you are limited to  
the printed copies (also known as 'hard copies') that are signed and  
sealed by the Engineer and/or Land Surveyor. Files in electronic  
formats, or other types of information furnished by the Engineer and/ 
or Land Surveyor to you such as text, data or graphics are for your  
convenience only. Any conclusions or information obtained or derived  
from such electronic files will be at the user's sole risk. When  
transferring documents in electronic formats, the Engineer and/or  
Land Surveyor makes no representation as to long-term compatibility,  
usability, or readability of the documents resulting from the use of  
software application packages, operating systems or computer  
hardware differing from those used by McMahon Associates, Inc. at  
the beginning of the project.

___
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


Re: [mapguide-users] Virtual Earth and Firefox with FUSION?

2009-10-08 Thread Paul Spencer
When I run this in firefox 3.5.2 on OS X it fails to load and I see a  
javascript error in firebug


this.scroller.getStyle('left') has no properties

If I turn on 'Break on all errors' in firebug and reload, I get a  
number of exceptions that can be safely continued from (they are in  
try/catch blocks but firefox stops on them anyway) and, strangely,  
everything eventually loads and works.


Very strange.  This behaviour is normally the opposite, firefox works  
and the other browsers don't.


I don't really know what to think about this.  Not sure if it is due  
to being in an iframe, a timing issue loading the ms maps api or  
something else


Can you try with firebug and see if you get the same thing (with break  
on all errors on)


Cheers

Paul


On 2009-10-08, at 8:13 PM, GordonL wrote:



No Kori, I never did find a solution.  I am running it at
http://www.mapguide.ca/sydney/ but I can't get it work in FireFox  
(just

Safari and Internet Explorer)

gordon


Kori Maleski wrote:


Hi Gordon,

Did you find a work around or determine what the issue was?  I am  
using

the
SVN trunk version and hit the same snag.



Cheers,


Kori Maleski



On Tue, Aug 11, 2009 at 11:47 AM, GordonL

wrote:




Hi All, I have a strange issue.  For some reason the Virtual Earth
OpenLayers
overlay only seems to work with Internet Explorer (Windows) and  
Safari

(Windows and MacBook Pro), but no Firefox (any OS).

I am not sure what the issue is, but I checked out the openlayers  
demo

(http://openlayers.org/dev/examples/spherical-mercator.html) and the
OpenLayers seemed to handle Virtual Earth and Firefox nicely..so I  
think

it
might be how FUSION is implemented the OpenLayers (I am using the  
Full

openlayers.js file too).

And:




Oh and the code to add the VE Layer in the INDEX.htm


  var mapWidget = Fusion.getWidgetById('Map');
  var map = mapWidget.oMapOL;
  mapWidget.fractionalZoom = false;
  map.setOptions({fractionalZoom: false, numZoomLevels: 30});

//Create Virtual Earth - Live Maps example
  velayer = new OpenLayers.Layer.VirtualEarth('VE', {
  'sphericalMercator': true,
  'type': VEMapStyle.Road
  });
  map.addLayer(velayer);


  var mgLayers = map.getLayersByClass('OpenLayers.Layer.MapGuide');
  if(mgLayers.length != 0)
  {
  var mgLayer = mgLayers[0];
  if(mgLayer.isBaseLayer)
  {
  map.setBaseLayer(velayer);
  mgLayer.setIsBaseLayer(false);
  mgLayer.setVisibility(true);
  }
  }




See what I mean by using Firefox at:
http://mapguide.ca/sydney/ http://mapguide.ca/sydney/

regards
gordon

--
View this message in context:
http://n2.nabble.com/Virtual-Earth-and-Firefox-with-FUSION--tp3426002p3426002.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users




--
View this message in context: 
http://n2.nabble.com/Virtual-Earth-and-Firefox-with-FUSION-tp3426002p3791581.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] JSP and PHP and fusion

2009-10-04 Thread Paul Spencer
I'm not sure, hopefully someone else will jump in with an answer  
here.  I've never installed anything except PHP.  If I recall  
correctly, PHP is installed when you include the mapguide admin tool  
since it is written in PHP, perhaps you don't need to do anything?


Cheers

Paul

On 2009-10-04, at 5:57 PM, oshan wrote:



Hey guys

Thanks for all your replies!

Spencer How would I install both PHP and JSP? If I rmbr correctly in  
the
installation process I can only choose JSP or PHP! And I choose JSP.  
Does
this mean I will need to go back and install the PHP web API as well  
for
fusion to work? or will I have to do I reinstall and this time only  
install

PHP API?

Thanks


Paul Spencer wrote:


Fusion is still unfortunately buggy in some specific areas, your
mileage will vary depending on how you use it (we use it extensively
without problems - or at least we fix the problems as we run into
them).  Fusion is designed to support alternate back ends (jsp,
php, .net) but only the PHP version exists at this time so you do  
have

to have both PHP and JSP versions of mapguide web tier installed -
there have been reports of using fusion/php and developing task panes
in .NET and perhaps JSP successfully.

Cheers

Paul

On 2009-09-24, at 3:33 AM, oshan wrote:



Hey Guys

So I'm just trying to get started with mapguide. I want to know if
there is
any Documentation specific to using the JSP API. The developers
guide seams
focus on PHP.

Also what do you guys think is better to use PHP or JSP?

The reason why I am leaning towards JSP is because it is essentially
Java
programming and I am familiar with Java (altho I have never used  
JSP)

where
as I have only slight knowledge with PHP and I also have the
perception that
since its Java with the whole OO stuff, it'll prolly be easy to
program in!?

Since I couldn't find any JSP documentation I looked at the sample
JSP ajax
viewer code and it looks a bit scary: there is a whole lot of code!
I would
like to see more of a step by step approach with JSP.

Also I looked into this fusion thing but it seams a bit buggy. I
don't know
if any of you have experienced that. Like I would specify some
widgets but
they would never show up. I heard that fusion use PHP for it server
stuff.
Does this mean I have to configure mapguide to use PHP instead of
JSP. when
I install it I set it up to use JSP!

thanks
--
View this message in context:
http://n2.nabble.com/JSP-and-PHP-and-fusion-tp3704607p3704607.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users




--
View this message in context: 
http://n2.nabble.com/JSP-and-PHP-and-fusion-tp3704607p3765568.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Fusion Error (Object Doesn't Supported)

2009-10-02 Thread Paul Spencer


On 2009-10-02, at 4:56 AM, ary_s wrote:


Jackie Ng wrote:


Are you using the compressed or non-compressed version? Do you get  
the

same result when you switch?

- Jackie

ary_s wrote:


Hii group,

I'm having with fusion 1.0/2.0 with MGOS 2.1. FusionSF keep on  
saying
object doesn't supported when i tried to view it on my browser. I  
would
like to know if anybody manage to use fusion with MGOS 2.1? What  
version

is suitable for it?

thanks,





I have switched between compressed and not, both gave me the same  
error.

thanks


fusion from svn trunk does work with MGOS 2.1 (I think it was bundled  
with the last installer), I would imagine the current 2.0 beta version  
should work as well.


We will need some more details, specifically which browser you are  
using.  The wording of the error looks like you are using Internet  
Explorer, we'll need to know which version.  Also, it would be  
extremely helpful if you could install a debugger (unless you are  
using IE 8, which comes with one) for IE and debug it in the code so  
we know where it is failing (use the uncompressed version for this).   
Also, it is very useful to know if this happens in other browsers  
(firefox is the best to check in)


Cheers

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


Re: [mapguide-users] Fusion Error: Unterminated string constant -MySQL Database on hover or select

2009-09-25 Thread Paul Spencer
It looks like there is a problem with the single quotes in the WODate  
field, the value is TIMESTAMP 'xxx' - these should have been escaped  
to \'xxx\'.  If you are willing to make a small change to your fusion  
code, you might be able to fix this by modifying fusion/common/php/ 
Utilities.php.  There is a var2json($var) function in there, try  
adding this at the beginning of that function:


function var2json($var) {
return json_encode($var); // add this line
$result = "";
if (is_object($var)) {

PHP now sports a built-in method for encoding variables as json data  
which may do a better job than my home-grown one.  I am actually  
making this change for the next version of fusion.


Alternately, if you don't need the timestamp then you can try  
eliminating it from your returned values (not sure how you do that but  
I am pretty sure its possible)


Cheers

Paul

On 2009-09-24, at 11:29 AM, Fraser Burgess wrote:


Selecting from sdf works no problem.  Everything in the map appears to
be working properly.  The SQL layers appear to display properly and  
turn

on and off as expected.

I transcribed the error message wrong - i.e. there is an opening
"@noNameSpaceSchemaLocation.  Attached is a screen grab of the error  
to

be sure.

Fraser



-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Paul
Spencer
Sent: Thursday, September 24, 2009 11:25 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Fusion Error: Unterminated string  
constant

-MySQL Database on hover or select

looks like the first @noNameSpaceSchemaLocation has no opening " but
has a closing ", hence the whole string has mismatched quotes and
fails to be parsed as a json string and is reported as a unterminated
string constant - unless it didn't paste into your email correctly?

It does not appear to be a problem with your data.  Does selecting
anything work (i.e. from shp or sdf files as opposed to SQL)?

Cheers

Paul

On 2009-09-24, at 10:47 AM, Fraser Burgess wrote:


Hi All,

I'm using the demo SQL database from redding utilitymap database
connection.  When I connect to the generated layers from this
dataset In AJAX everything functions as expected.

In Fusion however, when I hover over or try to select a feature
displayed on the map I get the following error in a pop up:

Fusion Error:
WARNING: Exception occurred in AJAX callback
Message: Unterminated string constant
Location: undefined(undefined)
Response:
{"FeatureInformation":{FeatureSet":[...@nonamespaceschemalocation":
["FeatureSet-1/0/0xsd"],"Layer";[{"@id:
["e64a6900-8b44-102c-8000-005056c0008"],"Class";[{"@id":
["Deafulat:worlder"] ... Etc,

etc,


Not sure what is up but I noticed part of this error message looks
like an AJAX session parameter.  Not sure if that provides any hints

Any ideas what this might be caused by?

Thanks,

Fraser

___
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
___
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


Re: [mapguide-users] Fusion Error: Unterminated string constant - MySQL Database on hover or select

2009-09-24 Thread Paul Spencer
looks like the first @noNameSpaceSchemaLocation has no opening " but  
has a closing ", hence the whole string has mismatched quotes and  
fails to be parsed as a json string and is reported as a unterminated  
string constant - unless it didn't paste into your email correctly?


It does not appear to be a problem with your data.  Does selecting  
anything work (i.e. from shp or sdf files as opposed to SQL)?


Cheers

Paul

On 2009-09-24, at 10:47 AM, Fraser Burgess wrote:


Hi All,

I’m using the demo SQL database from redding utilitymap database  
connection.  When I connect to the generated layers from this  
dataset In AJAX everything functions as expected.


In Fusion however, when I hover over or try to select a feature  
displayed on the map I get the following error in a pop up:


Fusion Error:
WARNING: Exception occurred in AJAX callback
Message: Unterminated string constant
Location: undefined(undefined)
Response:
{“FeatureInformation”:{FeatureSet”:[...@nonamespaceschemalocation”: 
[“FeatureSet-1/0/0xsd”],”Layer”;[{...@id: 
[“e64a6900-8b44-102c-8000-005056c0008”],”Class”;[{...@id”: 
[“Deafulat:worlder”] ……. Etc, etc,


Not sure what is up but I noticed part of this error message looks  
like an AJAX session parameter.  Not sure if that provides any hints


Any ideas what this might be caused by?

Thanks,

Fraser

___
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


Re: [mapguide-users] JSP and PHP and fusion

2009-09-24 Thread Paul Spencer
Fusion is still unfortunately buggy in some specific areas, your  
mileage will vary depending on how you use it (we use it extensively  
without problems - or at least we fix the problems as we run into  
them).  Fusion is designed to support alternate back ends (jsp,  
php, .net) but only the PHP version exists at this time so you do have  
to have both PHP and JSP versions of mapguide web tier installed -  
there have been reports of using fusion/php and developing task panes  
in .NET and perhaps JSP successfully.


Cheers

Paul

On 2009-09-24, at 3:33 AM, oshan wrote:



Hey Guys

So I'm just trying to get started with mapguide. I want to know if  
there is
any Documentation specific to using the JSP API. The developers  
guide seams

focus on PHP.

Also what do you guys think is better to use PHP or JSP?

The reason why I am leaning towards JSP is because it is essentially  
Java
programming and I am familiar with Java (altho I have never used JSP) 
where
as I have only slight knowledge with PHP and I also have the  
perception that
since its Java with the whole OO stuff, it'll prolly be easy to  
program in!?


Since I couldn't find any JSP documentation I looked at the sample  
JSP ajax
viewer code and it looks a bit scary: there is a whole lot of code!  
I would

like to see more of a step by step approach with JSP.

Also I looked into this fusion thing but it seams a bit buggy. I  
don't know
if any of you have experienced that. Like I would specify some  
widgets but
they would never show up. I heard that fusion use PHP for it server  
stuff.
Does this mean I have to configure mapguide to use PHP instead of  
JSP. when

I install it I set it up to use JSP!

thanks
--
View this message in context: 
http://n2.nabble.com/JSP-and-PHP-and-fusion-tp3704607p3704607.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Link to Fusion Demo App

2009-07-29 Thread Paul Spencer

Perfect!

On 29-Jul-09, at 9:21 AM, Zac Spitzer wrote:


how about http://enterprise.mapguide.com/landing/index.php ?

On Wed, Jul 29, 2009 at 10:36 PM, Paul Spencer  
wrote:
That was a sad little hack we put in place because we couldn't keep  
mapguide
running and needed the space for other things :(  If there is a  
running
mapguide somewhere that we can use for some demos, that would be  
really

handy ...

Paul

On 29-Jul-09, at 12:00 AM, Andy Morsell wrote:


Hi Alex,
That site actually is Fusion but implemented with Mapserver rather  
than
MapGuide.  I too have found if somewhat odd that the demo of  
Fusion from

the
MGOS site doesn't showcase a MapGuide / Fusion implementation.

Andy Morsell, P.E.
Spatial Integrators, Inc.
47° 46' N 116° 49' W
www.SpatialGIS.com


-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Alex  
Fordyce

Sent: Tuesday, July 28, 2009 4:47 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Link to Fusion Demo App


I noticed that the link from the Live Application Gallery to the
Demonstration of Fusion application
(http://demo01.dmsolutions.ca/mapguide/fusion/demo/) forwards the  
user to

a
different site.

This might confuse a user expecting to see an application using  
the Fusion

layout bundled with MapGuide.

--
View this message in context:
http://n2.nabble.com/Link-to-Fusion-Demo-App-tp3346746p3346746.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 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





--
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
___
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


Re: [mapguide-users] Link to Fusion Demo App

2009-07-29 Thread Paul Spencer
That was a sad little hack we put in place because we couldn't keep  
mapguide running and needed the space for other things :(  If there is  
a running mapguide somewhere that we can use for some demos, that  
would be really handy ...


Paul

On 29-Jul-09, at 12:00 AM, Andy Morsell wrote:


Hi Alex,
That site actually is Fusion but implemented with Mapserver rather  
than
MapGuide.  I too have found if somewhat odd that the demo of Fusion  
from the

MGOS site doesn't showcase a MapGuide / Fusion implementation.

Andy Morsell, P.E.
Spatial Integrators, Inc.
47° 46' N 116° 49' W
www.SpatialGIS.com


-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Alex  
Fordyce

Sent: Tuesday, July 28, 2009 4:47 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Link to Fusion Demo App


I noticed that the link from the Live Application Gallery to the
Demonstration of Fusion application
(http://demo01.dmsolutions.ca/mapguide/fusion/demo/) forwards the  
user to a

different site.

This might confuse a user expecting to see an application using the  
Fusion

layout bundled with MapGuide.

--
View this message in context:
http://n2.nabble.com/Link-to-Fusion-Demo-App-tp3346746p3346746.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 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


Re: [mapguide-users] setActiveTab in Fusion MGOS Beta 1

2009-07-14 Thread Paul Spencer

try, instead:

tab3.setActive(true);

Cheers

Paul

On 12-Jul-09, at 3:40 PM, GreenMapSanMiguel wrote:



I would like to programatically switch from the OverviewMap to
SelectionPanel, but can't get it to work by calling the  
showSelectionPanel

function, which for my application is:

var showSelectionPanel = function() {
 tabbox2.tabSet.setActiveTab(tab3);
}

The setActiveTab function is executing, but it is not doing everything
needed to make the switch.  Here is an example of the incomplete
setActiveTab:
http://smamap.com/mapguide/GreenMap/SanMiguelDeAllende/index.php?LAYER=food&LOC=BOVE

It switches away from the OverviewMap but doesn't display the  
contents of
the Selection panel (or highlight the tab.)  I get similar results  
switching

to any of the other tabs.  If you click on the 'select' tab, then the
correct information will display.

Is there an additional call I need to make or fields I need to set  
up in

advance?

Thank you for your help!

Andy Baltimore

p.s. Here's an example that does not try to change tabs.  The  
selection is

working but the use must click the select tab:
http://smamap.com/mapguide/GreenMap/SanMiguelDeAllende/indexNoSwitch.php?LAYER=food&LOC=BOVE

--
View this message in context: 
http://n2.nabble.com/setActiveTab-in-Fusion-MGOS-Beta-1-tp3246967p3246967.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Initial cursor with Fusion and MGOS 2.1

2009-07-09 Thread Paul Spencer
This was the way it worked previously but when I just checked the  
code, its not going to work this way any more.  I need to add an easy  
API method for activating a widget programmatically!


Now I think you need to do this:

selectWidget.uiObj.setActive(true);

which will activate the button and call the activate method of the  
widget for you.


Cheers

Paul

On 9-Jul-09, at 8:30 PM, GreenMapSanMiguel wrote:



I am converting my maps to Fusion and would like them to open in  
'select'

mode and use 'select' until the user chooses a different mode.  I've
succeeded in changing the initial cursor, but am still having some  
problems

with it.

Here's my code to activate the select cursor on initialization:

var fusionInitialized = function() {
   $('AppContainer').resize({forceResize: true});

   var mapWidget = Fusion.getMapById('Map'); // the id of the div
containing the map
   var selectWidget=Fusion.getWidgetsByType('Select')[0]; // select  
the

first widget of type Select
   selectWidget.activate(mapWidget);
}

Here are the problems:

1.  Although the select cursor appears and it functions in select  
mode, the

'pan' cursor remains highlighted on the toolbar

2.  After zooming in, the select cursor still appears but it  
functions in

pan mode (and the pan cursor is still highlighted on the toolbar.)

There must be something else I need to do to completely switch from  
'pan' to

'select' mode.  Does anyone know what I'm missing?

Thanks very much!




--
View this message in context: 
http://n2.nabble.com/Initial-cursor-with-Fusion-and-MGOS-2.1-tp3234992p3234992.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] mapguide-google map integration

2009-07-08 Thread Paul Spencer

http://tinyurl.com/nkf3lf

On 8-Jul-09, at 4:19 AM, Nisha P wrote:


Hi All

How to integrate mapguide and google map?

Anybody have done this before successfully?

Please help






Thanks in advance

Nisha
___
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


Re: [mapguide-users] SQL Server Data not appearing in Fusion

2009-07-07 Thread Paul Spencer
Seems like it could be a bug somewhere in Fusion and how it uses the  
MapGuide API, there have been memory leaks found and fixed before  
mostly related to using Feature Readers without properly closing  
them.  You can increase the memory limit for PHP in php.ini which you  
should find in an Apache folder under the WebServerExtensions folder  
somewhere.


Paul

On 7-Jul-09, at 3:26 PM, kevin_t wrote:




From the Apache error log:


"PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted  
(tried to

allocate 34674 bytes) in C:\\Program
Files\\Autodesk\\MapGuideEnterprise2010\\WebServerExtensions\\www\ 
\fusion\\common\\php\\Utilities.php

on line 42, referer: "


I opened the utilities.php and looked at line 42.  Nothing seems out  
of the

ordinary.  I wonder where this "allowed memory size" setting is.

I found a posting that describes someone having to increase PHP  
memory to

get their fusion to work.  Is this related?

http://n2.nabble.com/Unmanaged-Performance-td1818163.html#a1818163





Paul Spencer wrote:


can you check your apache error log.  I expect it is a bug in  
Fusion's

php code.

Cheers

Paul

On 7-Jul-09, at 1:51 PM, kevin_t wrote:



Hi all,

I have a problem where my map in a fusion/flexible layout doesn't
load in my
browser if I have data from SQL Server 2008.  It loads fine in the
basic
layout, so it is unlikely that it's a SQL Server issue.  I am using
MapGuide
Enterprise 2010 with SQL Server 2008 Trial version.  The browser I
tested
are Firefox and IE.

My steps are as follows:
- Import shapefile to SQL Server 2008 using SQL Server 2008 Spatial
Tools.
- Create a data connection in MG Studio 2010 to it with the OSGeo  
FDO

Provider for SQL Server Spatial.
- Create the layer and add it to a map that is referenced by a  
fusion

layout.
- View the layout in a browser.

Does anyone know if this is a bug with fusion layouts and if there
is a
workaround?
--
View this message in context:
http://n2.nabble.com/SQL-Server-Data-not-appearing-in-Fusion-tp3220760p3220760.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users




--
View this message in context: 
http://n2.nabble.com/SQL-Server-Data-not-appearing-in-Fusion-tp3220760p3221403.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] 2.1 Beta (Fusion) Problems

2009-07-07 Thread Paul Spencer
I'm not sure what the timeframe for a MapGuide 2.1 release is, I  
really hope we can fix up the fusion release to coincide or at least  
be a LOT less broken for inclusion in 2.1.  While I don't want to  
delay MGOS 2.1 for Fusion or make their schedules interdependent, the  
current sense I get is that we really need to spend some time getting  
Fusion more solid before it can be released.


We are discussing the possibility of abandoning the current attempt at  
a fusion 2.0 release and starting over again from the trunk version,  
which has some new functionality and changes which either fix bugs or  
render them obsolete.  This would also focus the efforts of any  
developers willing to participate on the current state of things and  
hopefully make better use of their time.  I am hoping to have some  
time from myself and a couple of DM folks to put into Fusion in the  
next couple of weeks in order to get a release into much better shape.


Sorry, I haven't really answered your question - I guess it all  
depends on MGOS 2.1 schedule at this point.


Cheers

Paul

On 7-Jul-09, at 2:19 PM, Andrew DeMerchant wrote:

Would that next fusion release make it into Mapguide 2.1 final, or  
are we talking 2.2 now? Just trying to plan out whether or not I'll  
be migrating to 2.1 (right now, it seems unlikely, unfortunately)...


Andrew


On 7/7/2009 3:16 PM, Paul Spencer wrote:


Thanks Brian ... I'll make sure this gets addressed as part of the  
next (fusion) release.


Paul

On 7-Jul-09, at 2:05 PM, Berdel, Brian wrote:

There is an issue filed for it (it was filed by me #261), I just  
wanted to add this to the discussion as it is a show stopper for  
me to upgrade...I thought about breaking the maps up and giving  
them the ability to select different maps, but some clients  
weren't too excited about the idea...


Brian


-Original Message-
From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Paul Spencer

Sent: Tuesday, July 07, 2009 1:44 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] 2.1 Beta (Fusion) Problems

argh - that shouldn't have changed, must be some difference in IE  
and

Firefox that we never noticed.  What we really need is a method of
generating a single image that contains all the icons - or at least
all that we know about when the map loads - we are doing this with
mapserver and the legend images are lightning fast now.  I think  
this
has been discussed previously and there may even be an issue filed  
for

it.  I'll try to remember to check on that (unless someone else does
first, hint, hint)

Cheers Paul

On 7-Jul-09, at 1:39 PM, Berdel, Brian wrote:

Seems as though IE may load all of the images for the legend on  
page

load, but firefox does not load them until a folder is expanded.
Again, this was not a problem in Fusion 1.1.

Brian

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org
] On Behalf Of Berdel, Brian
Sent: Tuesday, July 07, 2009 1:32 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] 2.1 Beta (Fusion) Problems

Thanks Dave, but I have tried that and it has the same result with
multiple maps.  Maps with < 20 or so load fine in IE.  The maps I  
am

using do have a pretty deep structure as well so there are a lot of
images to load.  But it is only in IE that the problem exists.

Brian

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org
] On Behalf Of Dave Wilson
Sent: Tuesday, July 07, 2009 1:03 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] 2.1 Beta (Fusion) Problems

Increase the memory settings in your php.ini. 256MB should cover
most maps. Maps with 500+ layers may need up to 512. Maps with more
than 750 layers may need more.

Dave

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org
] On Behalf Of Berdel, Brian
Sent: Tuesday, July 07, 2009 10:36 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] 2.1 Beta (Fusion) Problems

Also, A map with a lot of layers (50 +) takes an extremely long  
time
to load in IE 7 & 8. No problem in FireFox and Chrome, but I  
receive

the unresponsive script warning in IE.  I believe it has to do with
the legend and the amount of time IE takes generating it.

Brian

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org
] On Behalf Of Mike Adair
Sent: Monday, June 29, 2009 11:10 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] 2.1 Beta (Fusion) Problems

Also, patches are welcome if anybody has fixed any of these.
I'm expecting to have more time to devote to Fusion over the  
summer.


Mike

Paul Spencer wrote:

Thanks Andy ... we've been quite at this end but really appreciate
the
traf

Re: [mapguide-users] 2.1 Beta (Fusion) Problems

2009-07-07 Thread Paul Spencer
Thanks Brian ... I'll make sure this gets addressed as part of the  
next (fusion) release.


Paul

On 7-Jul-09, at 2:05 PM, Berdel, Brian wrote:

There is an issue filed for it (it was filed by me #261), I just  
wanted to add this to the discussion as it is a show stopper for me  
to upgrade...I thought about breaking the maps up and giving them  
the ability to select different maps, but some clients weren't too  
excited about the idea...


Brian


-Original Message-
From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Paul Spencer

Sent: Tuesday, July 07, 2009 1:44 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] 2.1 Beta (Fusion) Problems

argh - that shouldn't have changed, must be some difference in IE and
Firefox that we never noticed.  What we really need is a method of
generating a single image that contains all the icons - or at least
all that we know about when the map loads - we are doing this with
mapserver and the legend images are lightning fast now.  I think this
has been discussed previously and there may even be an issue filed for
it.  I'll try to remember to check on that (unless someone else does
first, hint, hint)

Cheers Paul

On 7-Jul-09, at 1:39 PM, Berdel, Brian wrote:


Seems as though IE may load all of the images for the legend on page
load, but firefox does not load them until a folder is expanded.
Again, this was not a problem in Fusion 1.1.

Brian

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org
] On Behalf Of Berdel, Brian
Sent: Tuesday, July 07, 2009 1:32 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] 2.1 Beta (Fusion) Problems

Thanks Dave, but I have tried that and it has the same result with
multiple maps.  Maps with < 20 or so load fine in IE.  The maps I am
using do have a pretty deep structure as well so there are a lot of
images to load.  But it is only in IE that the problem exists.

Brian

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org
] On Behalf Of Dave Wilson
Sent: Tuesday, July 07, 2009 1:03 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] 2.1 Beta (Fusion) Problems

Increase the memory settings in your php.ini. 256MB should cover
most maps. Maps with 500+ layers may need up to 512. Maps with more
than 750 layers may need more.

Dave

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org
] On Behalf Of Berdel, Brian
Sent: Tuesday, July 07, 2009 10:36 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] 2.1 Beta (Fusion) Problems

Also, A map with a lot of layers (50 +) takes an extremely long time
to load in IE 7 & 8. No problem in FireFox and Chrome, but I receive
the unresponsive script warning in IE.  I believe it has to do with
the legend and the amount of time IE takes generating it.

Brian

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org
] On Behalf Of Mike Adair
Sent: Monday, June 29, 2009 11:10 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] 2.1 Beta (Fusion) Problems

Also, patches are welcome if anybody has fixed any of these.
I'm expecting to have more time to devote to Fusion over the summer.

Mike

Paul Spencer wrote:

Thanks Andy ... we've been quite at this end but really appreciate
the
traffic on these issues.  I'm hopeful that we can take a look at  
them

soon,


Cheers

Paul

On 26-Jun-09, at 5:56 PM, Andy Morsell wrote:


I logged the three new issues in the Fusion Trac:

http://trac.osgeo.org/fusion/ticket/263
http://trac.osgeo.org/fusion/ticket/264
http://trac.osgeo.org/fusion/ticket/265


Andy

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Andy
Morsell
Sent: Friday, June 26, 2009 10:56 AM
To: 'MapGuide Users Mail List'
Subject: [mapguide-users] 2.1 Beta (Fusion) Problems

Hi all,
I installed MGOS 2.1 Beta yesterday and here are several Fusion
problems that I'm seeing:

· Firefox is still prompting for user authentication even
when SESSION is passed as a URL parameter.  It works ok in IE.   
This

has been mentioned in other threads here.
· The Secondary and Main toolbars do not appear in all
MapGuide templates.  It looks like they may be covered by other
divs.  I see this in both FF and IE.
· Tooltip hyperlinks do not appear as clickable hyperlinks
anymore.  The text of the hyperlink appears though.  Both FF and  
IE.

· Several tooltip problems that I have logged in Trac have
not been fixed.  Some of these I even included the code fixes for!
These include:

http://trac.osgeo.org/fusion/ticket/232
http://trac.osgeo.org/fusion/ticket/236
http://trac.osgeo.org/fusion/ticket/237

I will 

Re: [mapguide-users] SQL Server Data not appearing in Fusion

2009-07-07 Thread Paul Spencer
can you check your apache error log.  I expect it is a bug in Fusion's  
php code.


Cheers

Paul

On 7-Jul-09, at 1:51 PM, kevin_t wrote:



Hi all,

I have a problem where my map in a fusion/flexible layout doesn't  
load in my
browser if I have data from SQL Server 2008.  It loads fine in the  
basic
layout, so it is unlikely that it's a SQL Server issue.  I am using  
MapGuide
Enterprise 2010 with SQL Server 2008 Trial version.  The browser I  
tested

are Firefox and IE.

My steps are as follows:
- Import shapefile to SQL Server 2008 using SQL Server 2008 Spatial  
Tools.

- Create a data connection in MG Studio 2010 to it with the OSGeo FDO
Provider for SQL Server Spatial.
- Create the layer and add it to a map that is referenced by a fusion
layout.
- View the layout in a browser.

Does anyone know if this is a bug with fusion layouts and if there  
is a

workaround?
--
View this message in context: 
http://n2.nabble.com/SQL-Server-Data-not-appearing-in-Fusion-tp3220760p3220760.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] 2.1 Beta (Fusion) Problems

2009-07-07 Thread Paul Spencer
argh - that shouldn't have changed, must be some difference in IE and  
Firefox that we never noticed.  What we really need is a method of  
generating a single image that contains all the icons - or at least  
all that we know about when the map loads - we are doing this with  
mapserver and the legend images are lightning fast now.  I think this  
has been discussed previously and there may even be an issue filed for  
it.  I'll try to remember to check on that (unless someone else does  
first, hint, hint)


Cheers Paul

On 7-Jul-09, at 1:39 PM, Berdel, Brian wrote:

Seems as though IE may load all of the images for the legend on page  
load, but firefox does not load them until a folder is expanded.  
Again, this was not a problem in Fusion 1.1.


Brian

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Berdel, Brian

Sent: Tuesday, July 07, 2009 1:32 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] 2.1 Beta (Fusion) Problems

Thanks Dave, but I have tried that and it has the same result with  
multiple maps.  Maps with < 20 or so load fine in IE.  The maps I am  
using do have a pretty deep structure as well so there are a lot of  
images to load.  But it is only in IE that the problem exists.


Brian

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Dave Wilson

Sent: Tuesday, July 07, 2009 1:03 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] 2.1 Beta (Fusion) Problems

Increase the memory settings in your php.ini. 256MB should cover  
most maps. Maps with 500+ layers may need up to 512. Maps with more  
than 750 layers may need more.


Dave

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Berdel, Brian

Sent: Tuesday, July 07, 2009 10:36 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] 2.1 Beta (Fusion) Problems

Also, A map with a lot of layers (50 +) takes an extremely long time  
to load in IE 7 & 8. No problem in FireFox and Chrome, but I receive  
the unresponsive script warning in IE.  I believe it has to do with  
the legend and the amount of time IE takes generating it.


Brian

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Mike Adair

Sent: Monday, June 29, 2009 11:10 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] 2.1 Beta (Fusion) Problems

Also, patches are welcome if anybody has fixed any of these.
I'm expecting to have more time to devote to Fusion over the summer.

Mike

Paul Spencer wrote:
Thanks Andy ... we've been quite at this end but really appreciate  
the

traffic on these issues.  I'm hopeful that we can take a look at them
soon,


Cheers

Paul

On 26-Jun-09, at 5:56 PM, Andy Morsell wrote:


I logged the three new issues in the Fusion Trac:

http://trac.osgeo.org/fusion/ticket/263
http://trac.osgeo.org/fusion/ticket/264
http://trac.osgeo.org/fusion/ticket/265


Andy

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Andy
Morsell
Sent: Friday, June 26, 2009 10:56 AM
To: 'MapGuide Users Mail List'
Subject: [mapguide-users] 2.1 Beta (Fusion) Problems

Hi all,
I installed MGOS 2.1 Beta yesterday and here are several Fusion
problems that I'm seeing:

· Firefox is still prompting for user authentication even
when SESSION is passed as a URL parameter.  It works ok in IE.  This
has been mentioned in other threads here.
· The Secondary and Main toolbars do not appear in all
MapGuide templates.  It looks like they may be covered by other
divs.  I see this in both FF and IE.
· Tooltip hyperlinks do not appear as clickable hyperlinks
anymore.  The text of the hyperlink appears though.  Both FF and IE.
· Several tooltip problems that I have logged in Trac have
not been fixed.  Some of these I even included the code fixes for!
These include:

http://trac.osgeo.org/fusion/ticket/232
http://trac.osgeo.org/fusion/ticket/236
http://trac.osgeo.org/fusion/ticket/237

I will be voting -1 on releasing MGOS 2.1 until the above Fusion
problems are fixed and a newer release of Fusion is included.  I
realize that most of these problems are with Fusion, but as far as I
am concerned Fusion and MGOS are intertwined in terms of
functionality.  I will add the new items to the Fusion Trac in the
next day or so.  My next step is to look at my ECW's and MrSID's  
with

2.1 since others have reported problems with that.

Andy Morsell, P.E.
Spatial Integrators, Inc.
47° 46' N 116° 49' W
www.SpatialGIS.com

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

Re: [mapguide-users] 2.1 Beta (Fusion) Problems

2009-07-02 Thread Paul Spencer
This is very valid.  We have not been able to put any time into Fusion  
in the past little while, Mike will be able to work on cutting a new  
release in the near future with an emphasis on getting known issues  
fixed especially when there are tickets and patches provided.


Paul

On 29-Jun-09, at 3:26 PM, Rock Beans wrote:


If MapGuide is released with yet another failed attempt at "Fusion"
layouts, I feel this would be the end of the road for normal everyday
users for a long time. I agree make sure the viewers that are
advertised as "included" are working before the release so everyone is
100% happy.

On Fri, Jun 26, 2009 at 12:55 PM, Andy  
Morsell wrote:

Hi all,

I installed MGOS 2.1 Beta yesterday and here are several Fusion  
problems

that I’m seeing:



· Firefox is still prompting for user authentication even  
when
SESSION is passed as a URL parameter.  It works ok in IE.  This has  
been

mentioned in other threads here.

· The Secondary and Main toolbars do not appear in all  
MapGuide
templates.  It looks like they may be covered by other divs.  I see  
this in

both FF and IE.

· Tooltip hyperlinks do not appear as clickable hyperlinks  
anymore.

The text of the hyperlink appears though.  Both FF and IE.

· Several tooltip problems that I have logged in Trac have  
not been
fixed.  Some of these I even included the code fixes for!  These  
include:




http://trac.osgeo.org/fusion/ticket/232

http://trac.osgeo.org/fusion/ticket/236

http://trac.osgeo.org/fusion/ticket/237



I will be voting -1 on releasing MGOS 2.1 until the above Fusion  
problems
are fixed and a newer release of Fusion is included.  I realize  
that most of
these problems are with Fusion, but as far as I am concerned Fusion  
and MGOS
are intertwined in terms of functionality.  I will add the new  
items to the
Fusion Trac in the next day or so.  My next step is to look at my  
ECW’s and

MrSID’s with 2.1 since others have reported problems with that.



Andy Morsell, P.E.

Spatial Integrators, Inc.

47° 46' N 116° 49' W

www.SpatialGIS.com



___
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


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


Re: [mapguide-users] 2.1 Beta (Fusion) Problems

2009-06-26 Thread Paul Spencer
Thanks Andy ... we've been quite at this end but really appreciate the  
traffic on these issues.  I'm hopeful that we can take a look at them  
soon,



Cheers

Paul

On 26-Jun-09, at 5:56 PM, Andy Morsell wrote:


I logged the three new issues in the Fusion Trac:

http://trac.osgeo.org/fusion/ticket/263
http://trac.osgeo.org/fusion/ticket/264
http://trac.osgeo.org/fusion/ticket/265


Andy

From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Andy Morsell

Sent: Friday, June 26, 2009 10:56 AM
To: 'MapGuide Users Mail List'
Subject: [mapguide-users] 2.1 Beta (Fusion) Problems

Hi all,
I installed MGOS 2.1 Beta yesterday and here are several Fusion  
problems that I’m seeing:


· Firefox is still prompting for user authentication even  
when SESSION is passed as a URL parameter.  It works ok in IE.  This  
has been mentioned in other threads here.
· The Secondary and Main toolbars do not appear in all  
MapGuide templates.  It looks like they may be covered by other  
divs.  I see this in both FF and IE.
· Tooltip hyperlinks do not appear as clickable hyperlinks  
anymore.  The text of the hyperlink appears though.  Both FF and IE.
· Several tooltip problems that I have logged in Trac have  
not been fixed.  Some of these I even included the code fixes for!   
These include:


http://trac.osgeo.org/fusion/ticket/232
http://trac.osgeo.org/fusion/ticket/236
http://trac.osgeo.org/fusion/ticket/237

I will be voting -1 on releasing MGOS 2.1 until the above Fusion  
problems are fixed and a newer release of Fusion is included.  I  
realize that most of these problems are with Fusion, but as far as I  
am concerned Fusion and MGOS are intertwined in terms of  
functionality.  I will add the new items to the Fusion Trac in the  
next day or so.  My next step is to look at my ECW’s and MrSID’s  
with 2.1 since others have reported problems with that.


Andy Morsell, P.E.
Spatial Integrators, Inc.
47° 46' N 116° 49' W
www.SpatialGIS.com

___
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


Re: [mapguide-users] Editing tool using MapGuide Open Source

2009-06-22 Thread Paul Spencer
As far as editing MapGuide OS vectors in a web client goes, OpenLayers  
is the state of the art unless you can use the DWF viewer's ActiveX  
plugin.  Because OpenLayers is implemented in javascript and relies on  
SVG or VML for the actual rendering and manipulation of vectors, you  
will find that handling a large number of vectors will cause  
performance problems in the client's web browser - even with recent  
improvements in the javascript engines of all major browsers,  
javascript is still an interpreted language and thus somewhat slow.   
That being said, I would highly recommend that you actually try  
OpenLayers for vector editing in your use case before deciding that it  
won't work.  Do not rely entirely on the comments of others that you  
find in a quick web search, you will definitely be evaluating them out  
of context of the actual problems that were being described.


In practice, it is usually possible to minimize or avoid performance  
problems through careful planning and fine tuning your  
implementation.  You will need to spend time becoming familiar with  
OpenLayers and understanding how it works before you can decide if it  
is possible to produce a suitable solution for your use case.  Do not  
expect a quick and easy solution to this problem, though, and do not  
expect the community to do it for you.  The folks on this list (and  
the OpenLayers list) will certainly help out but in the end it will be  
you that needs to learn how to use the available tools and that will  
take time on your part.


Cheers

Paul

On 22-Jun-09, at 3:56 AM, sathishpsk9 wrote:




Hi  Kenneth Skovhede,

  Thanks for your reply.I learnt that OpenLayers doesnot  
support
large data.Thing is that i need a web editor . can we develop such  
an editor
using MapGuide ? Even if such thing is not available in mapguide  
right now,
i am ready add my efforts in this regard but  i am in fix where to  
begin and

how to begin ?

Thanks & Regards,
Satish


--
View this message in context: 
http://n2.nabble.com/Editing-tool-using-MapGuide-Open-Source-tp3131289p3131579.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MGE2010 fusion and openlayers 2-7

2009-05-13 Thread Paul Spencer
It would be safer to replace OpenLayers.js in the Fusion directories  
with your own.


Cheers

Paul

On 13-May-09, at 9:21 PM, Ran Mahiru wrote:



Not sure if anyone has tried this yet but... am considering using  
MGE2010 for a production system but will most likely need some of  
the functions of OL that are not in the default fusion installation.


Any idea how stable the system would be if I were to use a fusion  
(i.e. a flex layout), but load the full openlayers scripts after the  
call to load fusion?


Liz



___
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


Re: [mapguide-internals] RE: [mapguide-users] Fusion and Themed Layers - usability

2009-04-06 Thread Paul Spencer
just realized my posts are bouncing because I sent them from a  
different mail account ...


In mapserver, we build the legend sprite when the map is loaded.  If  
the sprite information is available for any given layer, it is reused  
otherwise the normal process is used (which catches dynamic layers).   
It would be possible to modify this to point to a static image file if  
the appropriate offsets were also cached, but there may be some  
problems figuring out which layer is which (does the uuid of a layer  
change at run time?)


The strip needs to be generated once when the map is loaded rather  
than dynamically via a php file as the source of an image to make it  
workable (you need the offsets anyway so why not draw it once)


Cheers

Paul

On 5-Apr-09, at 9:08 PM, Tom Fukushima wrote:

I'm assuming that the map authors would like some control on how the  
legend swatches look; and that's why I think there should be a  
chance for the user to specify the image strip. Perhaps I'm wrong.



Tom

-Original Message-
From: mapguide-internals-boun...@lists.osgeo.org [mailto:mapguide-internals-boun...@lists.osgeo.org 
] On Behalf Of Jason Birch

Sent: Sunday, April 05, 2009 4:44 PM
To: MapGuide Users Mail List; mapguide-intern...@lists.osgeo.org
Subject: [mapguide-internals] RE: [mapguide-users] Fusion and Themed  
Layers - usability


Paul,

How does this work for MapServer?  Do you just define an image URL  
and icon width/height in the Map extension element, and calculate a  
CSS offset into the image strip based on the layer item's array index?


If that's the case, it wouldn't take me much work to create a PHP  
script that generates an image strip given a map definition.  This  
script could either be called dynamically (if it's specified as the  
icon image URL) or could be run once by the user, and the image  
stored and hard-coded as the icon URL.


I guess we'd need a special case for dynamic layers (buffer results,  
etc); do a direct GetLayerImage call for these?


Jason
________
From: Paul Spencer
Sent: Sunday, April 05, 2009 2:15 PM
Subject: Re: [mapguide-users] Fusion and Themed Layers - usability

I think Jason's idea of using the bottom end of the scale + 1 would
improve cacheability (?) but in the end it would be ideal if we could
do the same thing with MapGuide that we did with MapServer which is to
generate a strip of images for each layers/scale and a set of css
offsets associated with them.  The image is only generated and loaded
once, providing significant improvements to responsiveness and load
time.___
mapguide-internals mailing list
mapguide-intern...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
___
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


Re: [mapguide-users] Fusion and Themed Layers - usability

2009-04-06 Thread Paul Spencer
It does it automatically and is returned from LoadMap.php where the  
image is and which layers/scales are included plus the CSS offset.   
Dynamic layers (ones added after the map is loaded) don't have an  
entry so their legend icon works the old way.


Cheers

Paul
On 5-Apr-09, at 6:44 PM, Jason Birch wrote:


Paul,

How does this work for MapServer?  Do you just define an image URL  
and icon width/height in the Map extension element, and calculate a  
CSS offset into the image strip based on the layer item's array index?


If that's the case, it wouldn't take me much work to create a PHP  
script that generates an image strip given a map definition.  This  
script could either be called dynamically (if it's specified as the  
icon image URL) or could be run once by the user, and the image  
stored and hard-coded as the icon URL.


I guess we'd need a special case for dynamic layers (buffer results,  
etc); do a direct GetLayerImage call for these?


Jason
________
From: Paul Spencer
Sent: Sunday, April 05, 2009 2:15 PM
Subject: Re: [mapguide-users] Fusion and Themed Layers - usability

I think Jason's idea of using the bottom end of the scale + 1 would
improve cacheability (?) but in the end it would be ideal if we could
do the same thing with MapGuide that we did with MapServer which is to
generate a strip of images for each layers/scale and a set of css
offsets associated with them.  The image is only generated and loaded
once, providing significant improvements to responsiveness and load
time.___
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


Re: [mapguide-users] Fusion and Themed Layers - usability

2009-04-05 Thread Paul Spencer
I think Jason's idea of using the bottom end of the scale + 1 would  
improve cacheability (?) but in the end it would be ideal if we could  
do the same thing with MapGuide that we did with MapServer which is to  
generate a strip of images for each layers/scale and a set of css  
offsets associated with them.  The image is only generated and loaded  
once, providing significant improvements to responsiveness and load  
time.


Cheers

Paul

On 5-Apr-09, at 11:59 AM, Tom Fukushima wrote:

I know that this keeps coming up during discussions I have with  
developers, however because it does not affect the responsiveness of  
the viewer---that is, you can start using the viewer before the  
legend images are all downloaded, fixing this for performance  
reasons has taken a lower priority.


If you don't want the images to download, you could set all the  
layers ShowInLegend property to false.


Off the top of my head, my suggestion for resolving this, is to  
allow the map author to create the custom strip, store it somewhere  
accessible by the web tier (perhaps as resource data or on disk),  
and then allow it to be specified from the Map.


Tom

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Jason Birch

Sent: Friday, April 03, 2009 4:04 PM
To: mapguide-users@lists.osgeo.org
Cc: fusion-...@lists.osgeo.org; 'mapgu...@lists.osgeo.org; Internals  
Mail List'

Subject: RE: [mapguide-users] Fusion and Themed Layers - usability

Heh,

Yeah, I can see how that would be unmanageable.  I wouldn't be  
surprised if your use case strains fusion to the level that it's not  
workable for the current version or for 2.1.  I'm surprised it works  
with the AJAX viewer, but maybe the viewer has a different strategy  
for managing legend images.


Ideally, MapGuide would support a GetLegendImageStrip operation that  
Fusion could then use with CSS sprites to reduce (in your case,  
dramatically) the number of requests to the server.  I believe that  
there may be functionality for this in MapServer layer types in  
Fusion 2.0, but I don't think there is in MapGuide.  Bob Bray put in  
a ticket for this functionality a _long_ time ago, but unfortunately  
I don't think any work has been done on it:  http://trac.osgeo.org/mapguide/ticket/22


I think that there is a partial measure that could be done in Fusion  
to improve the situation somewhat.  Currently, Fusion does a  
reasonable job of caching images; it only requests a new legend  
image once per scale range context switch.  However, the initial  
request is done using the exact current scale.  If the request  
instead used a fixed value within the scale range (bottom + x?) then  
the images could be better cached by the browser.  If MapGuide sent  
cache headers (last modified, based on the layer definition?) this  
would also help.


Any Fusion or MapGuide devs have thoughts on this?

Jason

-Original Message-
From: djonio
Sent: April-03-09 12:47 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Fusion and Themed Layers - usability


Jason,

I wanted to respond before the weekend so this is just a very brief  
note. Fiddler shows about 8000 of these(I assume a series for each  
LayerDefiniton):
GET /mapguide/mapagent/mapagent.fcgi? 
OPERATION 
= 
GETLEGENDIMAGE 
&SESSION 
= 
2f6bfde6 
- 
-1000 
-805a 
-001aa01bd46c_en_7F010AFC0AFB0AFA 
&VERSION=1.0.0&SCALE=2770.0556443473797&LAYERDEFINITION=Library%3A%2F 
%2FMIA%2FFacilities 
%2FFCLTY3000_7 
.LayerDefinition&THEMECATEGORY=10&TYPE=2&CLIENTAGENT=Fusion%20Viewer  
HTTP/1.1


And they appear to be 111 byte 16wX16h png images.
This was "Showing the Legend" and then doing a Zoom. If the Legend  
is not shown I can Pan and Zoom pretty good.


I can invest a little more time in this next week. I certainly do  
like this fusion layout and appearance and am sure the users will  
to ... but it has to work. Obviously there are alternatives to  
having a pre-built legend but I really wanted to avoid those alts  
from the get-go. I will delve into it all more on Monday. Have a  
good weekend.


r,
dennis

--
View this message in context: 
http://n2.nabble.com/Fusion-and-Themed-Layers---usability-tp2580125p2582561.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 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


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

Re: [mapguide-users] Zoom To Selection

2009-03-13 Thread Paul Spencer

Michael,

the code is there in Fusion to do this but it was never exposed as a  
clickable thing in the query results, probably because we had no  
compelling need for it at the time.


I've added this as an enhancement request to the fusion trac (http://trac.osgeo.org/fusion/ticket/226 
)


Cheers

Paul

On 12-Mar-09, at 6:54 PM, Michael G. Byrne wrote:

In fusion I cannot see where you can click one item in the list  
returned by the search widget and zoom to the item – you can zoom to  
a view that shows all selected items. For example if the search  
widget returns a list of properties spread through a city  – how can  
you click one of the properties in the list returned and have  
mapguide zoom to that property? If there are 100 items selected  
spread through the city it is hard to see where item X in the list  
is located. May be I am missing something?


Michael

From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Warren Medernach

Sent: Friday, 13 March 2009 10:42 a.m.
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Zoom To Selection

Hi Michael,
MapGuide does have this functionality.  In the Basic WebLayout, if  
you create a ‘Search’, it provides the ability to zoom to a result  
of the search.  Check out the Sheboygan sample and the SheboyganAsp  
WebLayout.


In the Fusion Layouts, check out the Search Widget for the same  
functionality.

Hope this helps

Warren M

From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Michael G. Byrne

Sent: Thursday, March 12, 2009 2:44 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Zoom To Selection

The capability to zoom to a feature (such as by clicking a feature  
in a list of features found by a search) should be a basic  
capability of a GIS system – why doesn’t Mapguide and fusion have it  
out of the box?


Michael



From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org 
] On Behalf Of Nisha P

Sent: Wednesday, 11 March 2009 11:17 p.m.
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Zoom To Selection

Hi Padmini..
   In which file u wrote this code?or is it an in-built file?
On Thu, Dec 18, 2008 at 3:52 PM, padmini godavarthi > wrote:



Hi,
Iam using Mapguide Opensource 2.0 (with .net 2.0 +IIS 5.1)

I want to query the parcel_id and zoomed it on the map

may code is


  NameValueCollection serverVars = Request.ServerVariables;
  String strServerVars = "";
  foreach (String str in serverVars.AllKeys)
  {

  strServerVars += "" + str;

  }
  String platform = serverVars["SERVER_SOFTWARE"];
  String queryStr = serverVars["QUERY_STRING"];
  string queryStr1 = serverVars["Form"];
  NameValueCollection requestParams = Request.HttpMethod ==  
"POST" ?

Request.Form : Request.QueryString;
  String sessionId = Request.QueryString["SESSION"];
  //String sessionId = Request.QueryString["SESSION"]; ;

  string realPath = Request.ServerVariables["APPL_PHYSICAL_PATH"];
  String configPath = realPath + "webconfig.ini";
  MapGuideApi.MgInitializeWebTier(configPath);

  MgUserInformation userInfo = new MgUserInformation(sessionId);

  MgSiteConnection siteConnection = new MgSiteConnection();
  siteConnection.Open(userInfo);

  MgResourceService resService =
(MgResourceService 
)siteConnection.CreateService(MgServiceType.ResourceService);

  MgFeatureService featureService =
(MgFeatureService 
)siteConnection.CreateService(MgServiceType.FeatureService);


  MgMap map = new MgMap();
  map.Open(resService, "oramap");


  MgFeatureQueryOptions nameQuery = new MgFeatureQueryOptions();

// 
nameQuery 
.SetFilter(ConfigurationManager.AppSettings["FieldToFilter"] +

"=" + Globals.gURLParam);
  nameQuery.SetFilter("PARCEL_ID" + "=" + "670_111");
  MgResourceIdentifier parcelId = new
MgResourceIdentifier("Library://Orasample/resora.FeatureSource");
  MgFeatureReader featureReader =
featureService.SelectFeatures(parcelId, "GEOM_TABLE", nameQuery);

  //Highlight the query result on the map
  MgSelection selection = new MgSelection(map);
  MgLayer layer = (MgLayer)map.GetLayers().GetItem("GEOM_TABLE");


  featureReader = featureService.SelectFeatures(parcelId,
"GEOM_TABLE", nameQuery);
  selection.AddFeatures(layer, featureReader, 0);
String selectXML = selection.ToXml();
  selection.Save(resService, "oramap");
  Page.ClientScript.RegisterStartupScript(Page.GetType(), "test",
"select('" + selectXML + "');", true);
}

but i got an error at

 MgFeatureReader featureReader =  
featureService.SelectFeatures(parcelId,

"GEOM_TABLE", nameQuery);


1)can u plz tell me what do u man by faeture class name?
from where i will gt it?

Thanks and Regards,
Padmini.
--
View this message in context: 
http://www.nabble.com/Zoom-To-Selection-tp21070073p21070073.html
Sent 

Re: [mapguide-users] Fusion 2.0 domObj

2009-02-19 Thread Paul Spencer

Ok, I'll try to highlight the major things for upgrading widgets ...

Things that have changed in Widget sub-classes:

* remove inheritance from Fusion.Tool.ButtonBase and add uiClass:  
Jx.Button

* remove inheritance from Fusion.Tool.MenuBase and add uiClass: Jx.Menu
* add setUiObject method for widgets that need to add stuff to a menu  
(see ViewOptions)

* change initialize to initializeWidget
* add isExclusive: true for widgets that are 'modal' on the map
* change execute method to activate

The key change that you need to understand, Mark, is the one about  
setUiObject.  Due to an architectural change in how widgets are  
constructed, widgets typically do not have a domObj any more.  What  
they do have is a uiObj which is some representation of the widget in  
the user interface.  For reasons that escape me right now, the uiObj  
is not available when the widget is created so I added a setUiObject  
method to handle the association of a uiObj with a widget.  The  
particular uiObj that is created for any given widget is controlled by  
its uiClass member (which is null by default).


When a new widget is created, if it has a uiClass set then the  
framework creates a new instance of the uiClass and gives it to the  
widget via the setUiObject.  If no uiClass is specified then element  
from the dom with the id that causes the widget to be created is  
passed (i.e. a reference to a ).


The base Widget class provides a default implementation of setUiObject  
that does the grunt work of making buttons, menus etc work properly,  
especially if the widget is considered modal on the map.  For widgets  
that are not using a uiClass (which would be your case), you will need  
to add a setUiObject method to your widget to handle inserting your ui  
into what was previously the domObj.


I believe the code in initializeWidget that tests if domObj is valid  
is never used now and it is probably there by mistake.


You should be able to copy the setUiObject method from EditableScale  
into your widget and replace the appendChild calls to do the  
appropriate thing.


Hope this helps

Paul

On 19-Feb-09, at 11:55 AM, Mark Pendergraft wrote:

I have a widget which I’m trying to port to the 2.0 beta and in the  
past I used “this.domObj.appendChild()” to add an input box to the  
widget, but now that code breaks saying that the domObj is null.  I  
noticed in the EditableScale widget that an if (this.domObj)  
statement is used to see if the domObj is valid.  My question is:   
Do I need to wait for a certain event to happen before creating this  
widget?  Right now my code never adds the input box, but the  
EditableScale code does.


___
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


Re: [mapguide-users] Fusion 2.0 Beta Notes

2009-02-17 Thread Paul Spencer
Thanks for the feedback Mark, we'll try to take a look at these  
issues.  Which template are you using, or is it one that you have  
created?


Paul

On 16-Feb-09, at 9:17 PM, Mark Pendergraft wrote:

I’m trying to implement Google Maps into my Fusion application using  
the 2.0 Beta.  I’m having a bit of trouble.  Right now I’m trying to  
load the Sheboygan map and the google map in the same MapGroup and  
my program has continuous errors (which seem to point to the  
maptip).  I also have to disable the OverviewMap when I load the  
google map because it crashes when it loads.
Can anyone provide some instructions or a brief overview on how we  
should be incorporating MapGuide and Google Maps into the same map?


Also, I’ve noticed a few other bugs in 2.0:
The CursorPosition widget does not show up in default layout unless  
the widget is added twice to the Statusbar container.  It would  
appear that the second element in the statusbar container is  
actually overlapping the first element.  So the element is there,  
but you can’t see it because the second element in the container is  
on top of it.   This happens with all Splitterbar controls added to  
the layout.


Neither Tooltips nor the MapTip appear to work.

The Coordinates in the CursorPosition widget appear to be  
incorrect.  The X value is always negative (on the Sheboygan example  
and on my own map which is in Washington State Plane Coordinate  
System (HPGN) North Zone US Foot).  A negative X value in a  
Washington state projection would indicate a position somewhere in  
the ocean.


Another issue I’ve noticed with the CursorPosition widget is that it  
always seems to report in meters despite my map being in Feet.  The  
widget reports in my maps units (feet), but appends a ‘m’ on the end  
of the X and Y.


Thanks
-Mark P.s
___
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


Re: [mapguide-users] Fusion 2.0 Beta

2009-02-11 Thread Paul Spencer
sorry, Mike prepared the release but we haven't had time to prepare an  
announcement - hopefully tomorrow


Paul

On 11-Feb-09, at 12:55 PM, Mark Pendergraft wrote:


I see the Fusion 2.0 Beta is out, and I had a question.
The MapGuide folder is gone, which contained MapGuideViewerApi.js  
and MapGuide.js.  Are the functions for digitizing on the map  
contained somewhere else?  I remember a post in the last month which  
referred to the DigitizePolygon function and how it has been updated  
in 2.0 to clear the digitized shapes on the map after the function  
has been called, so I assume that this functionality is still there,  
but perhaps it has been implemented differently.

Thanks
-Mark
___
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


Re: [mapguide-users] fusion methodology

2009-02-04 Thread Paul Spencer
In general, yes although there are probably a lot of exceptions.   
Perhaps you can elaborate on what you are trying to do?  Its hard to  
give advice on the very brief information you have given us ...


Cheers

Paul

On 4-Feb-09, at 9:09 AM, Arnaud De Groof wrote:


Hi,

I have introduced specific modifications in several applications  
from the “phpviewersample” for a normal layout. Now, I would apply  
these applications in a flexible layout.
Could you inform me on the methodology to be applied for it (steps)?  
The php applications must be modified or not? Is it possible to  
reference them like in a normal layout?


Thank you,

Arnaud De Groof


E-MAIL DISCLAIMER

The present message may contain confidential and/or legally  
privileged information. If you are not the intended addressee and in  
case of a transmission error, please notify the sender immediately  
and destroy this E-mail. Disclosure, reproduction or distribution of  
this document and its possible attachments is strictly forbidden.


SPACEBEL denies all liability for incomplete, improper, inaccurate,  
intercepted, (partly) destroyed, lost and/or belated transmission of  
the current information given that unencrypted electronic  
transmission cannot currently be guaranteed to be secure or error  
free.
Upon request or in conformity with formal, contractual agreements,  
an originally signed hard copy will be sent to you to confirm the  
information contained in this E-mail.


SPACEBEL denies all liability where E-mail is used for private use.

SPACEBEL cannot be held responsible for possible viruses that might  
corrupt this message and/or your computer system.



___
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


Re: [mapguide-users] Fusion and Digitizing

2009-01-31 Thread Paul Spencer
Yes, that's correct, it should work with 2.0 but not with the  
templates.  The new templates are in mapguide svn and should work with  
a 2.0 installation too.


Mike plowed through a bunch of tickets last week but there are still a  
couple of key issues to address so the 2.0 beta will be delayed a few  
days.  I was going to blame Jason ;) but instead lets say we are  
synchronizing our watches ...


Cheers

Paul

On 30-Jan-09, at 1:33 PM, Jason Birch wrote:

An alpha of MGOS 2.1 (including Fusion 2.0 beta) is supposed to be  
ready

by end of month, but I'm going to have a couple really late nights if
I'm going to make that :)

Paul, correct me if I'm wrong, but I think that Fusion 2.0 will run
against MGOS 2.0, though some of the performance enhancements may be
2.1-specific with 2.0 fallbacks.  All templates will need to be
rewritten though because of considerable changes to the Jx library and
the Fusion underpinnings.

Jason

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Mark
Pendergraft
Sent: January-30-09 8:28 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Fusion and Digitizing

Even better news!
Any word on when the 2.0 beta will be available?
-Mark
___
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


Re: [mapguide-users] Fusion and Digitizing

2009-01-30 Thread Paul Spencer
Thanks guys ... the digitizing code has changed in the upcoming 2.0  
release to use the OpenLayers vector library rather than our home- 
grown canvas implementation so we'll make sure there is a way to clean  
up after digitizing ...


Mike, can you take a skim through this thread and make sure the new  
Vector implementation has a method for cleaning up, or implicitly  
cleans up if possible.


Cheers

Paul


On 29-Jan-09, at 6:14 PM, Mark Pendergraft wrote:


thanks!
I'll take a look at it later tonight.
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
Moreno
Sent: Thursday, January 29, 2009 3:02 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Fusion and Digitizing


Hi Mark, I have gotten to clear the digitized polygons in FUSION  
viewer

by
modifying the MapGuideViewerapi.js

var polDigitizer;
function DigitizePolygon(handler) {
   if (handler) {
 var Fusion = window.top.Fusion;
 var mapWidget = Fusion.getWidgetById(mapWidgetId);
 var digitizer = new Fusion.Tool.Canvas.Polygon(mapWidget);
 digitizer.mouseDown = MultiPointHandlers.prototype.mouseDown;
 digitizer.mouseMove = MultiPointHandlers.prototype.mouseMove;
 digitizer.dblClick = MultiPointHandlers.prototype.dblClick;
 Object.inheritFrom(digitizer, Fusion.Tool.Canvas.prototype, []);
 digitizer.handler = handler;
 digitizer.activateCanvas();

 polDigitizer = digitizer;

 //add a listener to update the position of the features
 var mapWidget = Fusion.getWidgetById(mapWidgetId);
 mapWidget.registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
extendEvtResponse );
   }
}

function extendEvtResponse(){
 var digitizer = polDigitizer;
 digitizer.updatePx();
 digitizer.clearContext();
 digitizer.draw(digitizer.context);
}

function clearPol(){
  polDigitizer.clearContext();
  var Fusion = window.top.Fusion;
  var mapWidget = Fusion.getWidgetById(mapWidgetId);
  mapWidget.deregisterForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
extendEvtResponse);
  polDigitizer.deactivateCanvas();

}

In your main page you must call to clearPol() function in order to  
clear

the
digitized polygon. For the other shapes I guess that the logic is the
same.
The above code only clears the last polygon digitized. It's  
necessary to
manage an array of digitizers for controlling all digitized  
polygons. I

haven't had time for trying it.

I have tested with mapguide 2.0.1 with FUSION 1.0.6 in IE7 and FF2
maybe you can improve it.

Regards,


GordonL wrote:


Hi Mark,
I know what you mean about the sticky digitizing... I was told to  
look

at

the
resetCanvas function in the Measure.js file to get rid of that

leftover

digitize graphics...but I haven't tried it yet...

gordon


Mark Pendergraft wrote:


I was in no way implying the wheel should be reinvented, in fact the
code I posted was an example of how to use the MapGuideViewerAPI.js
supplied DigitizePolygon(handler) function that you referred to.

I did say that I would like to see some method to clear the  
digitized

shapes after the function's handler has been called.  In MGOS 1.2

after

a polygon was digitized, it was destroyed.  In MGOS 2 with Fusion

1.1,

the polygon stays on the map until the user closes their browser.

-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of GordonL
Sent: Thursday, January 29, 2009 1:20 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Fusion and Digitizing


You know, you really do not need to reinvent the wheel, if you have
already
built a lot of code with the Basic Web Layouts.  Did you know that
Fusion
supports some retro digitizing methods?
For example, I put the following in an INVOKESCRIPT in the Flexible

Web

Layout:

top.parent.DigitizePoint(top.OnPointDigitized);

I also have the OnPointDigitized in a JS file attached to the main
frame/window.  So I reuse my code for both FUSION and Basic Web
Layouts...

Just check out the functions in the MapGuideViewerApi.js in the
/www/fusion/MapGuide/ folder...
They include:
Refresh()
SetSelectionXML(selectionXml)
ZoomToView(x, y, scale, refresh)
DigitizePoint(handler)
DigitizeLine(handler)
DigitizeLineString(handler)
DigitizeRectangle(handler)
DigitizePolygon(handler)

They work just like the classic MapGuide Viewer API...pretty sweet.

gordon




Mark Pendergraft wrote:


Absolutely.
My biggest beef with digitizing in Fusion is that when you digitize

an

object (point/polygon/etc.) it stays on the map.  The existing

functions

don't have a clear method to remove the digitized object, and my
programming skills aren't good enough that I want to mess with it.

It's very simple,
Add a reference to MapGuideViewerApi.js and call DigitizePolygon()

The DigitizePolygon function requires that you pass it a handler

Something similar to the following:

DigitizePolygon(Cre

Re: [mapguide-users] invokeurl

2009-01-30 Thread Paul Spencer

Thanks Gordon

Paul

On 29-Jan-09, at 4:08 PM, GordonL wrote:



Done!
http://trac.osgeo.org/mapguide/ticket/832

regards
gordon


Andy Morsell wrote:


Gordon,
Please be sure to submit this as a bug to the Fusion project Trac.

Andy Morsell, P.E.
Spatial Integrators, Inc.
www.SpatialGIS.com


-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of GordonL
Sent: Thursday, January 29, 2009 12:26 PM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] invokeurl


Hi Andrew,
ok I figured it out.  It is the InvokeURL.js file.
This file is found in the following folder:
\www\fusion\widgets

Here is the issue:
At line 40 it shows:
Fusion.Widget.InvokeURL.prototype = {
   sFeatures :
'menubar=no,location=no,resizable=yes,status=no,scrollbars=yes',

Which is fine.  I changed resizable=yes and added  
scrollbars=yes...so far

so
good...

But, at line 120, it reads:

   window.open(url, this.sTarget, this.sWinFeatures);

Ok, so the issue is that there is NO sWinFeatures...

I changed it to read:
   window.open(url, this.sTarget, this.sFeatures);

And voilà!  I am in business...whew. I thought I was losing my touch.

gordon



Andrew DeMerchant wrote:


It wasn't part of the widget - i've been away from Fusion for too  
long
now, and really can't recall. I would imagine it was in the .js  
file for

that widget...sorry I'm no more help than that!

On 1/29/2009 11:44 AM, GordonL wrote:

Hi Andrew,
I am having trouble finding the entry in Nabble.  Do you have an
example?
I
am sure I did this a couple of years ago, but I can't find it.   
Can it

be
part of the Widget XML in Studio too?

thanks
gordon


Andrew DeMerchant wrote:

I did...I also turned on the scrollbars - but I can't recall how  
at the

momentdo a search on Nabble, and you should find the answer.

Andrew


GordonL wrote:

Did you figure this out with Flexible Web Layouts?  This fix  
works

great
for
Simple Web Layouts but how do we turn on Scrolling/Toolbars in  
the

InvokeURL
for Fusion?

Is it part of the InvokeURL.js file in the /fusion/wigets/  
folder?


thanks
gordon



Andrew DeMerchant wrote:



Is there a way to modify the InvokeURL command to have it open a
window
with scrollbars and toolbars? Right now, if you tell it to  
open in a

new
window, that window never has scrollbars or toolbars. I need  
to turn
those on somehow. I've looked through the AJAX viewer php  
files, but

can't find the spot that I'd change.

Andrew
--
*Andrew DeMerchant*
*Computer Technologist*
ph.1-877-2GEMTEC x.163
fax 506-453-9470

/GEMTEC Limited
/191 Doak Road
Fredericton, NB, Canada
E3C 2E6


___
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








--
*Andrew DeMerchant*
*Computer Technologist*
ph.1-877-2GEMTEC x.163
fax 506-453-9470

/GEMTEC Limited 
/191 Doak Road
Fredericton, NB, Canada
E3C 2E6


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




--
View this message in context:
http://n2.nabble.com/invokeurl-tp1816596p2241087.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users




--
View this message in context: 
http://n2.nabble.com/invokeurl-tp1816596p2241282.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Two maps in the same layout

2009-01-30 Thread Paul Spencer
This is trickier than it should be :(  Ideally it should pass an  
argument which is the map that triggered the event or set the context  
(this) to be the map, but neither happens.


Fortunately there are many ways around this ...

Map.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded.bind(null,  
'Map'));
Map1.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded.bind(null,  
'Map1'));


... which is essentially equivalent to ..

Map.registerForEvent(Fusion.Event.MAP_LOADED, function()  
{ mapLoaded('Map'); });
Map1.registerForEvent(Fusion.Event.MAP_LOADED, function()  
{ mapLoaded('Map'); });


where mapLoaded now takes a parameter

function mapLoaded(s) {
  switch(s) {
case 'Map':
  //Map was loaded
  break;
case 'Map1':
  //Map1 was loaded
  break;
  }
}

You can also do something really simple:

Map.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded);
Map1.registerForEvent(Fusion.Event.MAP_LOADED, map1Loaded);

...

function mapLoaded() {}

function map1Loaded() {}

Cheers

Paul


On 29-Jan-09, at 10:06 AM, Rodolfo Moreno wrote:



Thanks Jackie and Paul for the quickly answer.
I was testing the two ways.

Paul with respect to the FUSION viewer, I could place two maps in  
the same
layout, however I could not handle suitably the event MAP_LOADED.  
this is my

code:

var Map;
var Map1;
var fusionInitialized = function() {
   $('AppContainer').resize({forceResize: true});

   Map = Fusion.getWidgetById('Map');
   Map1 = Fusion.getWidgetById('Map1');

   Map.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded);
   Map1.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded);

}

function mapLoaded()
{
 // Inside of this function I would like to detect which of the  
maps(Map or

Map1) has called
// to this function.

}

I would like that mapLoaded function to detect which of the maps(Map  
or

Map1) called it.
The other alternative (whether the other is not possible) would be I  
can

send parameters to the mapLoaded function, like this:

{
  ...
   Map.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded,  
parameter1);

}

function mapLoaded(parameter1)
{

}

Thanks in advance,



Paul Spencer wrote:


yes you can do it using the fusion viewer but you need to edit the
ApplicationDefinition.xml file manually (you can't do it using  
Studio).


You need to have a MapGroup for each map you want to display and a
WidgetSet for each map you want to display.  Then you need two divs  
in

your page, one for each WidgetSet (referenced by the MapWidget in the
WidgetSet).  Widgets within each widget set will only work on the
associated map.

Cheers

Paul


On 22-Jan-09, at 3:21 PM, Rodolfo Moreno wrote:


Ivan good sugestion about the iframes, it's better than frameset.
However I
would like to do it using FUSION viewer. Is it possible?


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





-
Rodolfo Moreno
CivilEng

--
View this message in context: 
http://n2.nabble.com/Two-maps-in-the-same-layout-tp2189508p2239370.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Two maps in the same layout

2009-01-23 Thread Paul Spencer
yes you can do it using the fusion viewer but you need to edit the  
ApplicationDefinition.xml file manually (you can't do it using Studio).


You need to have a MapGroup for each map you want to display and a  
WidgetSet for each map you want to display.  Then you need two divs in  
your page, one for each WidgetSet (referenced by the MapWidget in the  
WidgetSet).  Widgets within each widget set will only work on the  
associated map.


Cheers

Paul


On 22-Jan-09, at 3:21 PM, Rodolfo Moreno wrote:

Ivan good sugestion about the iframes, it's better than frameset.  
However I

would like to do it using FUSION viewer. Is it possible?


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


Re: [mapguide-users] Adding OpenLayers.Layer to Fusion Map

2009-01-08 Thread Paul Spencer
In the current version, it is not directly possible to add other layer  
types but it can be done with some hacking.  I'm not even going to  
attempt to describe how to do it because I haven't actually done it ...


In the upcoming 2.0 version of Fusion, it is now possible to add any  
OpenLayers layer type via the ApplicationDefinition file.  We are  
aiming for a beta version compatible with the upcoming MapGuide  
release (2.1 I think) before the end of January that will incorporate  
many performance enhancements funded by Autodesk and a few new  
features such as the ability to add any OpenLayers layer type.  More  
to come on this as we get organized for a release.


Cheers

Paul

On 8-Jan-09, at 6:55 AM, Dragan Podvezanec wrote:



Unfortunately, I'm struggling with the same problem. I tried to  
create custom
widget which would contain Openlayers map, and then tried to replace  
default

map with this Map, but I'm unsuccesseful so far.

I hope there is solutions to add layers from Openlayers, because  
this would

provide whole bunch of 3rd party layers. Maybe some kind of Openlayers
provider for MGOS? =^D

--
View this message in context: 
http://n2.nabble.com/Adding-OpenLayers.Layer-to-Fusion-Map-tp2124563p2127486.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] DigitizePolygon

2009-01-07 Thread Paul Spencer

Unfortunately not.

Paul

On 5-Jan-09, at 1:49 PM, Mark Pendergraft wrote:


Is there any documentation regarding how a widget should be structured
or what functions need to be overloaded, etc?  The only thing I've  
found
is the Fusion Learning Materials which just states how to implement  
the

widget's XML in the AppDef file.

Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Paul
Spencer
Sent: Monday, January 05, 2009 7:43 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] DigitizePolygon

I think you have bypassed something critical in the process, but I'm
not sure.  When the digitize functions are used, something needs to
tell the digitized features that the extent has changed so they can
redraw themselves.  It should happen automatically by something
registering for an event on the map, so something about how you've
implemented it is probably bypassing this part.  Unfortunately I
haven't used this at all so I can't really help much with debugging.
Perhaps Chris or Mike could comment?

Paul

On 4-Jan-09, at 6:35 PM, Mark Pendergraft wrote:


I have some questions about this function provided in the
MapGuideViewerApi.js file.  I was wondering if anyone else is using
this function and if they have any issues with panning and or
zooming while the user is digitizing.  I'm calling the function from
a widget and panning/zooming and refreshing the map all cause it to
break.  I'm curious if this is an issue with my widget not telling
Fusion that it's active, or (the less likely of the two) if these
actions were overlooked when the function was designed.
Thanks for the help
-Mark Pendergraft
___
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
___
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


Re: [mapguide-users] DigitizePolygon

2009-01-05 Thread Paul Spencer
I think you have bypassed something critical in the process, but I'm  
not sure.  When the digitize functions are used, something needs to  
tell the digitized features that the extent has changed so they can  
redraw themselves.  It should happen automatically by something  
registering for an event on the map, so something about how you've  
implemented it is probably bypassing this part.  Unfortunately I  
haven't used this at all so I can't really help much with debugging.   
Perhaps Chris or Mike could comment?


Paul

On 4-Jan-09, at 6:35 PM, Mark Pendergraft wrote:

I have some questions about this function provided in the  
MapGuideViewerApi.js file.  I was wondering if anyone else is using  
this function and if they have any issues with panning and or  
zooming while the user is digitizing.  I'm calling the function from  
a widget and panning/zooming and refreshing the map all cause it to  
break.  I'm curious if this is an issue with my widget not telling  
Fusion that it's active, or (the less likely of the two) if these  
actions were overlooked when the function was designed.

Thanks for the help
-Mark Pendergraft
___
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


Re: [mapguide-users] Jx Layout and Fusion

2008-12-04 Thread Paul Spencer

Cool, you found it before I could even look at it!

On 4-Dec-08, at 3:02 PM, Mark Pendergraft wrote:


I found the problem.

In my index.html I had 2 references.  One to fusion.js and one to  
jx.js.
When I removed the jx.js reference, everything worked just fine.   
Thanks

a bunch for your help regardless.

-Mark Pendergraft

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, December 04, 2008 8:08 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Jx Layout and Fusion

Thanks Paul,
Here is my index.html, applicaitondefintion.xml and css.
The ApplicationDefinition.xml and CSS were copied from the
fusion/templates/aqua/ directory from the MGOS 2.02 installation with
only a few very slight modifications.

I essentially want a layout that is all map, but I'd like the
legend/SelectionPanel/TaskPane to be tabs (very similar to the  
LimeGold

layout) but in a movable and resizable dialog.

I did look through the examples on jxlib.org, but the jxlib seems to  
be
a later iteration of the code.  I am able to create a tabbox in a  
dialog

using the jxlib, just not using the fusion libraries.

Thanks for your help.
-Mark Pendergraft


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Spencer
Sent: Thursday, December 04, 2008 5:33 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Jx Layout and Fusion

Hi Mark,

this is probably something to do with Jx.  Jx.Layout is used to make
things fill their containers, it sounds like you are missing  
something.

Perhaps if you post your code+html+css we could advise you ...

Cheers

Paul


On 3-Dec-08, at 1:46 PM, Mark Pendergraft wrote:


I have a question about the Jx libraries in relation to Fusion.  I'm
trying to build my own layout for fusion similar to the aqua layout
supplied with MGOS.  I would like the Legend, SelectionPanel, and  
Task



Pane to show up as tabs in a dialog.  The code works and they are
displayed as such, but the tabbox doesn't take up the entire dialog,
so there are scroll bars up/down and left/right and there is blank
space on the bottom and right of the dialog that the tabbox sits in.
There is also blank space on the bottom of the dialog that I have
created for the overview map, even though I used the same exact code
as the provided template.  Is this a Jx issue, or are the sizes of  
the



controls handled in another part of the code?
I looked in the css for the template, and I didn't see anything.
Also, If I create separate dialog boxes for all three elements
(taskpane, selectionpanel, and legend) than each element fills it's
dialog completely like it's supposed to.
Thanks for the help!
-Mark Pendergraft
___
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
___
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


Re: [mapguide-users] Using Fusion functions from a seperate iframe

2008-12-04 Thread Paul Spencer
Each frame is a separate document, which means it has its own 'window'  
global variable.  One of the members of window is parent which refers  
to the parent window of the current window.  Normally this is a self- 
reference but if you are using frames then it refers to the parent  
frame or frameset.  In your case, code running in map iframe can use  
window.parent to refer to the parent page.  There is another property,  
top which refers to the ultimate parent directly in the case of nested  
frames.  Window also has a frames member which can be used to  
reference the individual frames within the window.  So ... from the  
code iframe, you should be able to do something like this:


window.top.frames.map.someFunction();

which in this case is the same as:

window.parent.frames.map.someFunction();

Note that the same origin policy applies to frames, restricting access  
to frames that are loaded from different domains.


Cheers

Paul

On 4-Dec-08, at 8:50 AM, Jason Woodman wrote:



I'm trying to access the fusion commands for a map from a javascript  
function
in a separate iframe.  Does anyone know how to do this and can  
supply some
pointers or sample code on how to get a reference to the fusion  
commands in

one iframe from another iframe.

Here is my page setup
---
| parent page   |
| --- |
| | map iframe | code iframe | |
| --- |
---

My javascript function is in the code iframe, and I need to be able  
to have
it access the map functions in the map iframe so I can do things  
like select

objects, zoom to a selection, and the like.

Thanks,
Jason Woodman
EMH&T, Inc.
--
View this message in context: 
http://www.nabble.com/Using-Fusion-functions-from-a-seperate-iframe-tp20833758p20833758.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Jx Layout and Fusion

2008-12-04 Thread Paul Spencer

Hi Mark,

this is probably something to do with Jx.  Jx.Layout is used to make  
things fill their containers, it sounds like you are missing  
something.  Perhaps if you post your code+html+css we could advise  
you ...


Cheers

Paul


On 3-Dec-08, at 1:46 PM, Mark Pendergraft wrote:

I have a question about the Jx libraries in relation to Fusion.  I'm  
trying to build my own layout for fusion similar to the aqua layout  
supplied with MGOS.  I would like the Legend, SelectionPanel, and  
Task Pane to show up as tabs in a dialog.  The code works and they  
are displayed as such, but the tabbox doesn't take up the entire  
dialog, so there are scroll bars up/down and left/right and there is  
blank space on the bottom and right of the dialog that the tabbox  
sits in.  There is also blank space on the bottom of the dialog that  
I have created for the overview map, even though I used the same  
exact code as the provided template.  Is this a Jx issue, or are the  
sizes of the controls handled in another part of the code?

I looked in the css for the template, and I didn’t see anything.
Also, If I create separate dialog boxes for all three elements  
(taskpane, selectionpanel, and legend) than each element fills it's  
dialog completely like it's supposed to.

Thanks for the help!
-Mark Pendergraft
___
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


Re: [mapguide-users] Request.QueryString Fusion 1.1

2008-11-12 Thread Paul Spencer
Hi Brian, sorry I was out of the mailing list loop for a few days and  
am just getting caught up - didn't mean to ignore you.


If you are using Fusion 1.1 then there should have been no substantial  
changes that would affect this and so it should still be supported.   
If its not working then there is likely a bug.  Can you describe a bit  
more what you are (not) seeing - it seems like you are using the  
TaskPane?


Paul

On 7-Nov-08, at 9:13 AM, Berdel, Brian wrote:

Thanks Jason, I will try that out.  I was using server side code and  
this worked in all previous releases.  Now the entire array is empty  
so I was wondering if one of the fusion developers could chime in  
and let me know if it is still supported, if it is a bug, or if  
there is another way to attain these server side… I really like the  
new version it fixed a lot of other issues but my apps are all based  
on server side code retrieving these parameters.


Brian

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of Jason Birch

Sent: Thursday, November 06, 2008 4:50 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Request.QueryString Fusion 1.1

See if Fusion.queryParams contains what you want.

On my map it is showing with properties for each of the parameters,  
as well as methods to iterate them, etc…  This is just from what I  
can see in FireBug; not sure if there are any docs on it.


Jason

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf OfBerdel, Brian

Sent: Thursday, November 06, 2008 12:32
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Request.QueryString Fusion 1.1

Is this still supported? My parameter array returns none from  
request.querystring.


Thanks,

Brian

--

Hello all,
I was previously able to get parameters such as mapname”MAPNAME” and  
sessionID “SESSION” through request.querystring…


Now I get nothing…Any thoughts?

Thanks,

Brian


___
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


Re: [mapguide-users] Google Earth Imagery and MapGuide

2008-10-30 Thread Paul Spencer
Fusion might be able to use the newer openlayers but the reason we  
bundle a specific version with Fusion is that sometimes we have  
specific modifications to OpenLayers that are not yet in a release  
version.  The next version of Fusion to be bundled with MapGuide 2.1  
will have OpenLayers 2.7 plus some minor changes that weren't included  
in OpenLayers 2.7 but will be in 2.8


Cheers

Paul

On 29-Oct-08, at 11:57 PM, [EMAIL PROTECTED] wrote:


Thanks for the quick reply.
2.7 was released 2 days ago, so you don't need the patches. Next,  
where should I put the unzipped files? I don't suppose Fusion can  
use them?


Ed Jobe


- Original Message 
From: Zac Spitzer <[EMAIL PROTECTED]>
To: MapGuide Users Mail List 
Sent: Wednesday, October 29, 2008 8:20:01 PM
Subject: Re: [mapguide-users] Google Earth Imagery and MapGuide

you need to get the latest copy of openlayers from www.openlayers.org

fusion uses an older version...

z

On Thu, Oct 30, 2008 at 2:15 PM, <[EMAIL PROTECTED]> wrote:
Zac,
The patch mentioned here has snippets for Mapguide.js, however, the  
version of this file on my pc doesn't have any of these lines before  
or after the snippets. The only one I have is under the Fusion  
folder. Is there supposed to be another one?


Ed Jobe


- Original Message 
From: Zac Spitzer <[EMAIL PROTECTED]>
To: MapGuide Users Mail List 
Sent: Monday, October 27, 2008 7:40:41 PM
Subject: Re: [mapguide-users] Google Earth Imagery and MapGuide

it's the other way round, openlayers is the client, you need to create
a mapguide layer and incorporate it

you will also need to check out the legals for using google maps with
your application

there are some examples on the mapguide wiki for using mapguide with  
openlayers


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

z

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




--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
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


Re: [mapguide-users] google maps as base layer

2008-10-24 Thread Paul Spencer
I don't know what is in the 2009 update but I do know that the 2.0.2  
update did NOT include Fusion 1.1 and it doesn't take a lot to guess  
that the 2009 update is probably based on 2.0.2.


That being said, we are close to getting 1.1 out the door and we have  
found a quick little hack that will make it work out of the box with  
existing templates (previously it required a change to the  
templates).  As soon as we get this done, Fusion 1.1 can be used as a  
drop-in replacement for existing MapGuide installations up to 2.0.2  
(not sure about MGE).


It seems likely, however, that MapGuide 2.1 will be based on the  
Fusion SVN trunk version which will become Fusion 2.0 shortly.  This  
version will contain all the improvements in 1.1 plus a raft of  
performance improvements funded by Autodesk.  Given how release cycles  
go, it will likely be a couple of months before MapGuide 2.1 is final  
though.


Cheers

Paul

On 24-Oct-08, at 5:30 AM, Maksim Sestic wrote:

Nope, I'm tied to MGE 2009 :-) But Autodesk finally released an  
Update to it
which I'm currently installing. I hope it contains 1.1 RC1 patches  
too. Is

it (I mean - Fusion part) OK now?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zac  
Spitzer

Sent: Friday, October 24, 2008 11:14
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] google maps as base layer

have you tested 1.1 RC1 out yet?

On Fri, Oct 24, 2008 at 8:03 PM, Maksim Sestic <[EMAIL PROTECTED]>  
wrote:
Oh, I thought it was based on some custom JS mapping  
implementation...

based on number of reported bugs :-) Since OpenLayers is rock solid -
why Fusion is not, then?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zac
Spitzer
Sent: Friday, October 24, 2008 10:56
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] google maps as base layer

fusion wraps around openlayers and uses some other libraries as well

z

On Fri, Oct 24, 2008 at 7:46 PM, Maksim Sestic <[EMAIL PROTECTED]>  
wrote:

Does it? I thought that Fusion uses it's own JS mapping
implementation (based on other OS JS components outthere).

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Skovhede, GEOGRAF A/S
Sent: Friday, October 24, 2008 09:50
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] google maps as base layer

Just to clarify:
Maestro does not use OpenLayers, but Fusion does.

Regards, Kenneth Skovhede, GEOGRAF A/S


[EMAIL PROTECTED] skrev:

Yes, that's one of the "bits" I found, but still, not the exact  
steps

to get it into mg. Keneth mentioned Maestro uses OL, but not how. I
just haven't had the time lately to figure out those steps. When I
do,

I'll post them.




For now, I just thought it interesting to note the differences
between the services. There may be others on the programming side,
but for me, the content is a big item. The other reason, I'm trying
to do this in mg and not their api, is the lack of navigation  
using their

controls.

e.g. zoom previous and zoom window. I also, will want to save the
user's last view between sessions. This seems to be easer in mg/ol.


Ed Jobe

- Original Message 
From: Zac Spitzer <[EMAIL PROTECTED]>
To: MapGuide Users Mail List 
Sent: Thursday, October 23, 2008 9:05:49 AM
Subject: Re: [mapguide-users] google maps as base layer

you can only integrate them using openlayers, any other approach  
will

probably violate the terms of service (at least with google), unless
your overlaying mapgudie stuff with their api


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


__ Information from ESET NOD32 Antivirus, version of virus
signature database 3550 (20081023) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__ Information from ESET NOD32 Antivirus, version of virus
signature database 3550 (20081023) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

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






--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

__ Information from ESET NOD32 Antivirus, version of virus
signature database 3550 (20081023) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__ Information from ESET NOD32 Antivirus, version of virus
signature database 3550 (20081023) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


___

Re: [mapguide-users] .NET Fusion

2008-09-30 Thread Paul Spencer
Jackie is right, fusion was built by PHP developers :)  We have some  
java experience too, but all our consulting work uses PHP and that's  
where we feel most comfortable.


If anyone wants to tackle porting the backend to a new language (.net  
or java), we would be more than happy to assist and answer questions.


Cheers

Paul

On 30-Sep-08, at 8:11 AM, Jackie C. Ng wrote:



There hasn't really been any effort to port the fusion widget  
backends to

asp.net because when installing MapGuide, even if you choose the .net
configuration, PHP will still be installed as it is required by the  
site

administrator component.

So choosing PHP as the language of choice is a safe decision (or  
maybe the

Fusion developers were better with PHP, I dunno, I'm just guessing the
reasons here)

- Jackie


brianlee wrote:


How is the integration .Net with fusion going?

have you port the fusion\MapGuide\php into fusion\MapGuide\DotNet  
by C# or

Vb.net?

what's your configuration of your mgos app?

please kindly provide some infomation about get fusion running  
on .net

platform.

thanks


Berdel, Brian wrote:


You are correct about the widgets and .NET, I actually started
converting them a while back, but I haven't been able to dedicate  
enough

time to it...

And yes I am using the task pane, and the feature reader works  
fine for
accessing a layer by layer name and session variable, but if I try  
to
open a map via the name it always tells me it cannot find...One  
other
question I would have about fusion is how to access the mapframe  
from

the task pane...
parent.parent.mapframe does not exist.  I saw the documentation  
about
building a fusion template, but I a haven't really been able to  
get a

handle on the structure as it relates to the regular AJAX viewer.

Thanks,

Brian  Berdel
McMahon Associates, Inc.
p: 215.283.9444
www.mcmtrans.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason  
Birch

Sent: Thursday, April 17, 2008 2:20 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] .NET Fusion

As far as I know, Fusion works with a .Net install, but you can't  
write

widgets in .Net unless you re-write the entire widget stack in this
language.  This is something that I'd be interested in seeing, but  
only

from an academic perspective. :)

Brian, how are you integrating .Net into Fusion?  With a task pane
application?  I wonder if there is a JavaScript function that  
returns

the map ID?

Jason

-Original Message-
From: Berdel, Brian
Subject: RE: [mapguide-users] .NET Fusion

Mike it actually does because I am able to use the featurereader...I
just cannot open a map.  Anyone know how to get the ID?
___
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








-
http://themapguyde.blogspot.com

http://www.linkedin.com/in/jackieng
--
View this message in context: 
http://www.nabble.com/.NET-Fusion-tp16722611p19740813.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: [fusion-users] Fusion on Firefox 3 and new MapGuide Release

2008-09-27 Thread Paul Spencer

Hi,

we'll check this for both 1.1 and trunk and fix it.  Firefox 3 has  
some known issues related to z-index, where the canvas-based tools  
actually draw under the map so it looks like nothing is happening.


Cheers

Paul

On 24-Sep-08, at 2:53 PM, Rock Beans wrote:


It would appear that the latest release does not include a working
Fusion viewer. The map displays but the select poly and radius are
still broken. Was this overlooked or will this be fixed soon? Thank
you in advance.
___
fusion-users mailing list
[EMAIL PROTECTED]
http://lists.osgeo.org/mailman/listinfo/fusion-users



__

   Paul Spencer
   Chief Technology Officer
   DM Solutions Group Inc
   http://www.dmsolutions.ca/

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


Re: [mapguide-users] mapguide and fusion - a status report

2008-09-25 Thread Paul Spencer
I thought it was OpenLayers.i18n - looking at the code, it is in fact  
both OpenLayers.Lang.translate OR OpenLayers.i18n, they point to the  
same function.


As Jason said, you can drop in fusion 1.1 and use the existing  
MapGuide templates with the above change.


Cheers

Paul

On 25-Sep-08, at 8:43 PM, Jason Birch wrote:


Hi r0ss,

My suggestion would be to wait for the Fusion 1.1 release, and then  
just replace the existing fusion directory.  Once that is in place,  
you'll have to patch the existing templates if you're using them:


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

This requires a bit of skill with the patch command (uh, and you  
have to install it from Cygwin or GnuWin32 first).  If you have a  
decent text editor, you can alternately do a global search and  
replace in all of the index.html pages under fusion/templates,  
replacing:


OpenLayers.String.translate(

with

OpenLayers.Lang.translate(

You'll also likely want to look into the new Fusion single file  
build process, as it really improves initial load time.  I've  
written about this before:


http://tinyurl.com/fusionsf

The build system in trunk might be even better (combines CSS files  
as well), but I haven't had a chance to see if it works with the 1.1  
branch yet.


Jason



From: [EMAIL PROTECTED] on behalf of r0ss
Subject: RE: [mapguide-users] mapguide and fusion - a status report



This is a great note to provide clarification for those of us who  
missed

some of the other threads.

Quick question - does a document exist that outlines the changes  
that one
would need to make to upgrade MGOS 2.0.2 to version 1.1 of fusion -  
you

mention some minor changes need to be made?

I assume I would spent an hour or so on Nabble trying to figure all  
of this
out and a summary document would be greatly appreciated until all of  
this

gets sorted out.


___
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


[mapguide-users] mapguide and fusion - a status report

2008-09-25 Thread Paul Spencer

Hi all,

there seems to be some confusion and frustration around Fusion and its  
relationship to the MapGuide Open Source project that I would like to  
try and clarify.


There are currently three versions of Fusion:

 * version 1.0
 * version 1.1
 * the development version

Version 1.0 is the version that the MapGuide project is currently  
using.  It is the *stable* version.  It has many acknowledged problems  
and is not as polished as the AJAX Viewer in some respects, making it  
a less desirable platform for MapGuide Open Source application  
development.


Some of these problems have been addressed by upgrading to a new  
version of the OpenLayers library that Fusion is dependent on.   
Updating Fusion to use the newer version of OpenLayers caused some  
necessary changes that were beyond the scope of what could be  
considered a bug fix release.  Therefore these changes could not be  
incorporated into Fusion 1.0, and so we elected to release an official  
1.1 version with these fixes in order that some MapGuide Open Source  
developers would be able to get past at least some of the issues in 1.0.


Version 1.1 is currently being released and includes many bug fixes  
related to updating to the new version of OpenLayers, as well as a few  
other bug fixes.  We hope to address a few more bug fixes before we  
finalize the release, but many issues are being deferred to a future  
release too.


One of the unfortunate side effects of updating to a new OpenLayers in  
Version 1.1 is that the existing MapGuide Open Source templates  
(Slate, Aqua, etc) do not work because the templates used an  
unsupported OpenLayers API method that changed when OpenLayers was  
released (this was entirely our fault when the templates where created).


MapGuide Open Source has included Fusion 1.0 since version 2.0.0.   
Minor bug fixes to Fusion were included in the 2.0.1 release I think.   
When the 2.0.2 build was prepared, it was decided by the MapGuide Open  
Source Project Steering Committee that updating to Fusion 1.1 did not  
meet the criteria of a bug fix release (partly because it included new  
features and changes beyond bug fixes, and partly because it still  
isn't a final release).


The development version of Fusion is where the developers are actively  
working on Fusion, specifically on improving performance and  
stability.  This includes updating the version of OpenLayers to the  
latest version and updating to the latest version of the Jx user  
interface library.  The update to OpenLayers didn't change anything  
this time around, but the update to Jx has caused a significant  
internal change in Fusion and in how templates are built.  Because the  
MapGuide Open Source templates are heavily dependent on Jx and were  
completely customized, they will have to be rebuilt for the new  
version of Jx in order to work at all (both the javascript and the CSS/ 
image skins).


When the Project Steering Committee decides to release MapGuide Open  
Source 2.1.0, a new version of Fusion will (I hope) be included.   
Given the timeframes of what is going on in both projects, I am  
hopeful that we can complete the current round of development activity  
in Fusion and release a new version (likely 2.0) in time to be  
included in MapGuide Open Source 2.1.0.


This has left MapGuide Open Source users wanting to work with Fusion  
in a tricky position.  Version 1.0 is not really useable and Version  
1.1 doesn't work without changes (albeit minor ones) to the MapGuide  
Open Source templates.  The development version is entirely unuseable  
until the current round of development activity stabilizes.


I don't really have a solution for MapGuide Open Source users wanting  
to work with Fusion beyond what has already been discussed on the  
various mailing lists.


I would like to acknowledge and thank those folks who have taken the  
time and effort to use Fusion and report issues to us.  I know that we  
haven't been able to satisfy everyone and are generally slow in  
responding, this is something that I hope to improve on in the future.


Paul

______

   Paul Spencer
   Chief Technology Officer
   DM Solutions Group Inc
   http://www.dmsolutions.ca/

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


Re: [mapguide-users] Fusion on Firefox 3 and new MapGuide Release

2008-09-24 Thread Paul Spencer
The current SVN trunk version (likely to be 2.0 instead of 1.2 now) is  
not useable with MapGuide templates (slate, aqua, etc) yet but it is  
starting to stabilize and will now run with the Fusion sample  
template.  It will be a few more weeks before its really ready for  
testing to any great extent.


It was unfortunate that 1.1 didn't make it into 2.0.2, but including  
it did break our release rules for point releases being for bug fixes  
only.


Cheers

Paul

On 24-Sep-08, at 3:03 PM, Andrew DeMerchant wrote:

Sadly, I have yet to see a fully working version of Fusion - the  
best I'd gotten was v1.1 from the SVN. The current SVN version (1.2)  
is totally broken thoughThe version of Fusion that comes with  
MGOS 2.0.2 is 1.0.6, I believe - see Jason's reply to me from  
yesterday (subject: MapGuide Open Source 2.0.2 released).


On 9/24/2008 3:53 PM, Rock Beans wrote:


It would appear that the latest release does not include a working
Fusion viewer. The map displays but the select poly and radius are
still broken. Was this overlooked or will this be fixed soon? Thank
you in advance.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users





--

Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470
GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6

___
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


Re: [mapguide-users] Fusion Templates for FF3

2008-09-19 Thread Paul Spencer
I can't speak for Autodesk, but in general there is always a delay  
between an Open Source project and commercial products based on that  
project.  A commercial product typically goes through a lengthy  
release cycle that involves rigorous testing, documentation,  
marketing, and packaging.  In my experience, a commercial product will  
be based on a stable version of an Open Source project followed by  
6-12 months of release cycle.  For this reason, the commercial product  
will be at least 6-12 months behind the Open Source project (Apple's  
Safari web browser is significantly behind it's Open Source WebKit  
project for instance).


Commercial companies, at least ones that are publicly traded, are  
legally prevented from talking about future versions of their  
software.  So while you might hear that a company has a road map for a  
particular product, it will always be presented in such a way as to  
not promise any particular feature for any particular release.


The best place to get information about what is coming in MapGuide  
Open Source is on the mapguide-dev list, as this is where new features  
are discussed among developers and in some cases voted on by the  
project steering committee.  MapGuide Open Source has a reasonably  
rigorous RFC (request for comment) process where major changes are  
documented for all to see.


So, for instance, the adoption of CSMap (its no longer commercial) is  
discussed here:


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

You will note that it is proposed to be included in the 2.1 release.   
It is difficult, however, with an Open Source project to commit to a  
specific release date because the project is often in a state of flux  
and a release requires some stability in the code base.  But in  
general, the MapGuide Open Source steering committee tries for a  
couple of releases per year.


I hope this helps clarify where things are at.

On 19-Sep-08, at 12:26 PM, Rock Beans wrote:


Paul,

Thank you for the direct information on these topics. Sometimes the
public feels like there is a delay between MapGuide and the Autodesk
products which causes frustration. Is there a place to get news on
these type of latest and greatest informational topics? For example,
when will the commercial coordinate system be released within MapGuide
OS? I think this would help the lack of information provided to us by
Autodesk. Thanks again!

Best Regards,
The Rock

On Fri, Sep 19, 2008 at 7:50 AM, Paul Spencer <[EMAIL PROTECTED]>  
wrote:
Just to clarify - the MapGuide templates belong to the MapGuide  
project, not

to Fusion.

We are currently doing a major overhaul in Fusion to improve  
performance
(funded primarily by Autodesk, thanks!) among other things -  
updating the
templates to work with the new code is not yet part of that work,  
but it
will get done in due course.  For now, please avoid using the trunk  
version

of Fusion (use the 1.0 or 1.1 branches only).

Cheers

Paul

On 18-Sep-08, at 5:07 PM, Rock Beans wrote:


Where do I get the latest Fusion templates for MapGuide? I checked
fusion svn and the mapguide svn. MapGuide has nothing about fusion  
so

who creates the initial templates like "Slate"?
___
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


___
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


Re: [mapguide-users] new Jx.PanelManager

2008-09-19 Thread Paul Spencer

I don't think so.

On 19-Sep-08, at 12:27 PM, Rock Beans wrote:


Is this one of the reasons why MapGuide 2.0.2 was pulled fromt he
download server?

On Fri, Sep 19, 2008 at 7:47 AM, Paul Spencer <[EMAIL PROTECTED]>  
wrote:

Hi Rock,

Jason is correct.  The trunk version of Fusion is not stable at  
present and
won't work with the mapguide templates at all until they are  
overhauled for

the new Jx API and skin structure.

I am hoping that the mapguide templates will be updated in due  
course,
especially as Autodesk was kind enough to provide funding for many  
of the

changes in the trunk version of Fusion.

Once things are moderately stable, I'll be emailing the lists to  
enlist
testers, but before that you will need pretty thick skin (pun  
intended) to

start playing with the trunk version :)

Cheers

Paul

On 18-Sep-08, at 5:12 PM, Rock Beans wrote:

The ultimate goal is to make MapGuide 2009 Enterprise work with  
Fusion
and Firefox 3. The end result of this is pretty much banging my  
head,

burning out... again and switching back to the basic viewer until
Fusion works it's issues out. Thanks for the links and very prompt
response!


On Thu, Sep 18, 2008 at 4:08 PM, Jason Birch  
<[EMAIL PROTECTED]>

wrote:


If you are following Fusion trunk, you'll have to do a lot of  
work to
get your MapGuide templates working; Paul has committed a new  
version of

Jx that is considerably different, and as part of this modified the
widget architecture.  See messages below...

Widget Architecture:
http://trac.osgeo.org/fusion/ticket/117

Jx API Changes:
http://lists.osgeo.org/pipermail/fusion-dev/2008-September/000136.html

Other 2.0/trunk changes:
http://lists.osgeo.org/pipermail/fusion-dev/2008-September/000132.html

If you're following the 1.1 branch of Fusion I think you should  
be OK,

but will need to apply some changes here:
http://trac.osgeo.org/mapguide/ticket/676

I'd suggesting asking questions about Jx on the Fusion mailing  
lists.


http://trac.osgeo.org/fusion/wiki/MailingLists

Jason

-Original Message-
From: Rock Beans
Subject: [mapguide-users] new Jx.PanelManager

Has new Jx.PanelManager been removed from the new SVN of Fusion. My
older MapGuide templates are not working.
___
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


___
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


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


Re: [mapguide-users] Fusion Templates for FF3

2008-09-19 Thread Paul Spencer
Just to clarify - the MapGuide templates belong to the MapGuide  
project, not to Fusion.


We are currently doing a major overhaul in Fusion to improve  
performance (funded primarily by Autodesk, thanks!) among other things  
- updating the templates to work with the new code is not yet part of  
that work, but it will get done in due course.  For now, please avoid  
using the trunk version of Fusion (use the 1.0 or 1.1 branches only).


Cheers

Paul

On 18-Sep-08, at 5:07 PM, Rock Beans wrote:


Where do I get the latest Fusion templates for MapGuide? I checked
fusion svn and the mapguide svn. MapGuide has nothing about fusion so
who creates the initial templates like "Slate"?
___
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


Re: [mapguide-users] new Jx.PanelManager

2008-09-19 Thread Paul Spencer

Hi Rock,

Jason is correct.  The trunk version of Fusion is not stable at  
present and won't work with the mapguide templates at all until they  
are overhauled for the new Jx API and skin structure.


I am hoping that the mapguide templates will be updated in due course,  
especially as Autodesk was kind enough to provide funding for many of  
the changes in the trunk version of Fusion.


Once things are moderately stable, I'll be emailing the lists to  
enlist testers, but before that you will need pretty thick skin (pun  
intended) to start playing with the trunk version :)


Cheers

Paul

On 18-Sep-08, at 5:12 PM, Rock Beans wrote:


The ultimate goal is to make MapGuide 2009 Enterprise work with Fusion
and Firefox 3. The end result of this is pretty much banging my head,
burning out... again and switching back to the basic viewer until
Fusion works it's issues out. Thanks for the links and very prompt
response!


On Thu, Sep 18, 2008 at 4:08 PM, Jason Birch  
<[EMAIL PROTECTED]> wrote:

If you are following Fusion trunk, you'll have to do a lot of work to
get your MapGuide templates working; Paul has committed a new  
version of

Jx that is considerably different, and as part of this modified the
widget architecture.  See messages below...

Widget Architecture:
http://trac.osgeo.org/fusion/ticket/117

Jx API Changes:
http://lists.osgeo.org/pipermail/fusion-dev/2008-September/ 
000136.html


Other 2.0/trunk changes:
http://lists.osgeo.org/pipermail/fusion-dev/2008-September/ 
000132.html


If you're following the 1.1 branch of Fusion I think you should be  
OK,

but will need to apply some changes here:
http://trac.osgeo.org/mapguide/ticket/676

I'd suggesting asking questions about Jx on the Fusion mailing lists.

http://trac.osgeo.org/fusion/wiki/MailingLists

Jason

-Original Message-
From: Rock Beans
Subject: [mapguide-users] new Jx.PanelManager

Has new Jx.PanelManager been removed from the new SVN of Fusion. My
older MapGuide templates are not working.
___
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


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


Re: [mapguide-users] Smooth panning on MouseMove (as in Google Maps) an option?

2008-09-09 Thread Paul Spencer
Yes, this has been a feature from the initial release.  You need to  
create a map definition that has fixed base map scales using studio  
(at the bottom of the Map editing panel I think) then the AJAX viewer  
will use a tiled mode similar to the google approach.


Cheers

Paul

On 9-Sep-08, at 7:03 PM, inspiron2 wrote:



Hi,

I just love this MapGuide Enterprise product. Hats off to the  
developers,

and the community volunteers.

I was wondering if there is an option to enable smooth panning as in  
Google
Maps: when you pan around in MapGuide map, it doesn't refresh (i.e.  
draw)
the new area coming into the view untill you let go of the mouse  
button.
Since Ajax is at play here, is it an option/possibility to  
continously draw
the new map area upon mouse move event? May be, it's already an  
option that

I don't know how to enable...

If it is not possible, can someone please share with me the reasons?  
Is it

to save the server from processing load nightmare?

thanks much.
--
View this message in context: 
http://www.nabble.com/Smooth-panning-on-MouseMove-%28as-in-Google-Maps%29-an-option--tp19403070p19403070.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Fusion bug - themed layers (legend)

2008-08-26 Thread Paul Spencer
Zac, we'll get on committing your fixes asap - I'm in a bit of a  
crunch right now with Mike on holiday and a few other things coming  
due.  Most of the things you've reported seem straight forward but I  
would like to have someone take a few minutes on each issue and just  
make sure that there isn't something larger going wrong.


Thanks again for taking the time to report these issues!

Cheers

Paul

On 25-Aug-08, at 10:36 AM, Zac Spitzer wrote:


(We are talking about 1.10 RC which was uploaded over the weekend)

I put some patches for the required mapguide templates fixes in trac  
as well.


The preview in studio feels better and the default template goes snap
with shebogan

I am still getting querymapfeature errors with tiles

z

On Tue, Aug 26, 2008 at 12:30 AM, Andrew DeMerchant
<[EMAIL PROTECTED]> wrote:

Indeed - I've got tonsplus, I've already fixed it on my system!

Andrew

Zac Spitzer wrote:

patience is a virtue :)

On Tue, Aug 26, 2008 at 12:13 AM, Andrew DeMerchant
<[EMAIL PROTECTED]> wrote:


Ah - so it isI'll update that to show the fix - then hopefully  
someone

will commit it.

Andrew

Zac Spitzer wrote:

it's in trac http://trac.osgeo.org/fusion/ticket/112

On Mon, Aug 25, 2008 at 11:40 PM, Andrew DeMerchant
<[EMAIL PROTECTED]> wrote:


Can someone with the authority to update the SVN (which I  
apparently don't

have) please change line 1207 in MapGuide.js from this:

url += "?OPERATION=GETLEGENDIMAGE&SESSION=" +  
layer.oMap.getSessionID();


to this:

url += "OPERATION=GETLEGENDIMAGE&SESSION=" +  
layer.oMap.getSessionID();


Note the lack of the question mark.by the time the code runs to  
this
point, "url" already has a ? at the end of it...so this line makes  
a double
question mark, which ends up killing the legend icons for themed  
layers.


thanks

Andrew


--
Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470

GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6

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






--
Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470

GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6

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






--
Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470

GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6

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






--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
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


Re: [mapguide-users] Fusion Load Time (was: Fusion + Oracle datasource problem)

2008-08-22 Thread Paul Spencer

Excellent guide!

I will be adding (soon) an enhancement to the single file build that  
will also compress the CSS files (YUI compressor does CSS too!) and a  
method of combining all the icon images into a single image strip and  
producing a CSS file that allows referencing those images in buttons  
from the strip, reducing the number of image assets that have to be  
loaded to a minimum as well.


I'll include documentation in your wiki page when its done ;)

Cheers

Paul

On 21-Aug-08, at 2:53 PM, Jason Birch wrote:

If you are using the SVN version, you may also want to use the Ant  
build system to compile your Fusion install into a single compressed  
binary.  For production sites, it’s recommended to write your  
ApplicationDefinition out to a file and include this in the build as  
well.


This is easier than it sounds (if you’re running from SVN) and makes  
a real difference in load time.


If you don’t already have one, download a current JDK (SE) package  
from Sun.


http://java.sun.com/javase/downloads/index.jsp

Most versions appear to work; I’m currently using JDK5.  Ensure that  
this is the first Java on the path and, maybe, set JAVA_HOME.  You  
can do this temporarily as part of your build routine too (I am, so  
I don’t mess up my Oracle drivers).


Next download the Ant binaries:

http://ant.apache.org/bindownload.cgi

and place in a top-level folder like C:\Ant\

Finally, obtain the YUI compressor

http://developer.yahoo.com/yui/compressor/

From the author’s website

http://www.julienlecomte.net/yuicompressor/

and unzip it in a top-level folder like C:\YUI\

Now, go to your SVN repository and modify the YUIcompressor property  
to point to the location of your jar:


http://trac.osgeo.org/fusion/browser/trunk/build.xml#l92

With this in place, you’re ready to build.  In my case I mapped a  
drive to my Fusion checkout, and opened a command window on my PC  
pointing to that directory.  Following the instructions on the  
Fusion wiki


http://trac.osgeo.org/fusion/wiki/ANTBuildSystem

I typed:

ant singlefile

This seemed to go well, so I deleted the build directory and typed

Ant singlefile –DappDef=x:/myapp/applicationdefinition.xml

This also worked well.

Because I am running my test site directly against SVN, I copied the  
FusionSF-compressed.js (or something like that) file from the build  
directory back into the main fusion/lib directory, and pointed my  
template to it.  Load time decreased significantly.


I’ve been meaning to add this to the Fusion wiki; just haven’t had  
time to write it up and test it yet.  Now I’m half done J


Jason

From: Andrew DeMerchant
Subject: Re: [mapguide-users] Fusion + Oracle datasource problem

What sort of webserver are you running? I'm using IIS5, and just  
enabled compression using FlatCompression (www.flatcompression.org)  
and it has dramatically sped up my initial load times for Fusion


___
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


Re: [mapguide-users] Fusion + Oracle datasource problem

2008-08-21 Thread Paul Spencer
The problem in this particular case is that Fusion unnecessarily  
enumerates the full schema of all the layers during initialization,  
which for the Oracle provider in particular is very slow.  The ajax  
viewer takes a different approach and defers schema enumeration until  
it is necessary for some other reason.  We will be attempting to  
implement the same approach in Fusion so that the startup time (to get  
the app loaded and the first map drawn) is as short as possible.


Cheers

Paul


On 21-Aug-08, at 10:18 AM, Rock Beans wrote:


To be honest how does the data source type affect one viewer over the
other. I would think you would have the same issues in both. Most of
the API calls are identical. I know there is a JavaScript compression
fix that should be released soon with Fusion that should speed up
initial loads. I am seeing Fusion being faster in every other area
though personally.

The Rock


On Thu, Aug 21, 2008 at 1:59 AM, gingerbbm <[EMAIL PROTECTED]>  
wrote:


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


___
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


Re: [mapguide-users] Fusion + Oracle datasource problem

2008-08-21 Thread Paul Spencer
We also discuss things on the fusion mailing list (see http://trac.osgeo.org/fusion) 
.


Please note that there is typically a long lag between new open source  
development and the appearance of the code in related commercial  
products as the commercial products typically go through much longer  
release cycles that start based on released/stable open source  
available at that time and involve lots of testing.  When commercial  
software is actually released, the open source software has often  
evolved by a version or two from the version that is in the commercial  
version.  This is not Autodesk-specific, just a fact of life for  
commercial software based on open source.  It is sometimes possible to  
substitute the cutting edge open source stuff into a commercial  
software package, but this can be tricky because APIs change - so  
while it is possible to grab a new fusion version and drop it into an  
existing MapGuide (open source or commercial) version, you are going  
to run into some upgrade issues (as is the case right now with having  
to update the MapGuide templates when using the latest fusion).  In my  
experience, I think it is actually quite amazing that fusion and  
mapguide are so version-interchangeable, probably due to excellent  
engineering on the the mapguide side of things and a relatively loose  
coupling of the fusion/mapguide APIs.


In any case, I digress - thanks for your offer to be involved, you  
have already helped by being a voice in the community and we will  
continue to abuse you in the future by making you test new stuff and  
tell us how to improve the software and community experience :)


Cheers

Paul


On 21-Aug-08, at 2:59 AM, gingerbbm wrote:



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


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


Re: [mapguide-users] fusion and javascript

2008-08-20 Thread Paul Spencer
I'm not using the viewer api thing but I can confirm that having a  
comma after the last thing in an object declaration or array is not  
valid for IE (but firefox silently ignores it).


Not sure about the var Fusion thing, but that seems reasonable since  
the task pane runs inside an iframe which is a separate document and  
doesn't automatically have references to its containing page variable  
namespace.


It has just occurred to me that this might work better if you don't  
include the MapGuideViewerAPI.js in your task page but rather include  
it in your main index page and then reference its functions through  
window.top ???  Then you wouldn't need to include the javascript files  
in your task page - i.e. use window.top.DigitizePoint()


Cheers

Paul

On 20-Aug-08, at 12:27 PM, Mark Pendergraft wrote:


I have answered some of my own questions here.

Lines 253 and 321 in MapGuideViewerApi.js were continually breaking  
my code.  They were curly braces followed by a comma as part of the  
LineHandlers and RectangleHandlers classes  "},".  Both of those  
lines are the closing braces for the last functions in the class,  
and once I removed the commas following the two curly braces  
mentioned, everything compiled.
Also, I had to add a reference to fusion "var Fusion =  
window.top.Fusion" to the file.


I also have to reference a bunch of stuff to use the functions.  In  
order to use the DigitizePoint() function I had to reference:

Fusion.js
Map.js
Prototype.js
CanvasTool.js

And of course MapGuideViewerApi.js


Is anyone else having these problems calling MapGuideViewerApi  
functions in their application, or am I just doing something wrong?


-Mark P.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of Mark Pendergraft

Sent: Monday, August 18, 2008 3:59 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] fusion and javascript

Hello All,
I’m having a lot of trouble with Fusion and javascript.  I am  
somewhat of a newb to fusion, so please bare with me.
I have a aspx page in the task pane which I have been adding some  
buttons with some javascript too, in order to test things out.
At this point, it appears that any call to a function defined in  
MapGuide.js (../fusion/mapguide/mapguide.js) won’t break my code.   
For example  
“parent 
.document.getElementById('Map').widget.aMaps[0].drawMap();” would  
refresh the map.

However, any calls to MapGuideViewerApi.js will not work.
I have tried including it into my page, and I have also tried  
calling it in different fashion.

For example:
var Fusion = window.top.Fusion;
var map = Fusion.getWidgetById('Map');
map.Refresh();

Why won’t the MapGuideViewerApi.js functions work?  If they can’t  
be used, how do i zoom and digitize points?
Also, I mentioned that the mapguide.js functions work, yet  
setSelection does not.

I get the following error

Fusion Error:
WARNING: Exception occurred in AJAX callback.
[object Error]
Location: {1} ({2})
xx)

At this point, the functions I need to work in order for my code to  
function are:

setSelection
digitizePoint
digitizeRectangle

None of which work  
Any help or a push in the right direction would be greatly  
appreciated.


Setup:
MGOS 2.0.1
Fusion 1.0.6
Autodesk MapGuide Studio 2009
Using IIS, VB, and VS 2005 Pro
___
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


Re: [mapguide-users] OpenLayers.i18n

2008-08-20 Thread Paul Spencer
Yes, its a solid work-around.  We can't update the templates until  
there is a fusion release, so I think we will be proposing to cut a  
new release very soon now, thus allowing us to get everything into sync.


Cheers

Paul

On 20-Aug-08, at 11:25 AM, Rock Beans wrote:


Any clue when the mapguide template issue with open layers is going to
be fixed and published to the SVN so everything works on IE7 and
Firefox 3 without JavaScript errors?

Fix was to change all open layer references to OpenLayers.i18n, is
this a solid work around?

The Rock
___
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


Re: [mapguide-users] Fusion + Oracle datasource problem

2008-08-20 Thread Paul Spencer
We are going to be looking specifically at this issue of startup time  
in the next few weeks, it would be very useful to be able to have you  
test and provide feedback on how much improvement we are able to make.


The current method of initialization enumerates the full schema of all  
the layers, which in the case of Oracle is quite slow.  We feel that  
this full schema initialization can be deferred and done  
asynchronously with the initialization so that the application and  
initial state can come up much more quickly.


This development will likely happen in a separate SVN branch (which we  
will call a sandbox) so if you are able to set up the SVN version of  
Fusion to work with your mapguide, it will be pretty simple to grab  
the new code and try it out.  We will integrate the changes back into  
the trunk version once we are satisfied with the improvements and  
stability of the code.


There will likely be an interim release of fusion very soon to  
consolidate the OpenLayers 2.6 changes that everyone seems to want,  
followed by a release in the fall that will contain a number of  
performance enhancements (including the above) that may be a bit more  
disruptive.


Cheers

Paul


On 20-Aug-08, at 9:13 AM, Zac Spitzer wrote:


this will make a huge diference

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

does fusion make it's requests in a sync or aync fashion? if they  
aren't sync,

there maybe one or more full describe schemas being performed

z

On Wed, Aug 20, 2008 at 10:09 PM, gingerbbm  
<[EMAIL PROTECTED]> wrote:


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





--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
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


Re: [mapguide-users] Re: Fusion using SVN as stated in Directions (JavaScript Error Fusion is Undefined)

2008-08-14 Thread Paul Spencer
The templates live in the mapguide svn so we can't really change them  
until we up the revision of fusion in mapguide.  We are working on a  
1.1 release of fusion for the end of summer/early fall that will  
hopefully get incorporated into mapguide and provide a bunch of  
performance enhancements, bug fixes and some new capabilities.  No  
time to give details, too busy coding ... :)


Cheers

Paul

On 14-Aug-08, at 11:05 AM, Zac Spitzer wrote:


you can always file a patch in trac

On Fri, Aug 15, 2008 at 1:03 AM, Rock Beans <[EMAIL PROTECTED]>  
wrote:

Here it is
http://lists.osgeo.org/pipermail/mapguide-users/2008-July/ 
013652.html will
this be commited to Fusion SVN soon as well as the other fixes?  
Seems simple

enough. Give me access and I will do it :-)

The Rock

On Thu, Aug 14, 2008 at 9:14 AM, Rock Beans <[EMAIL PROTECTED]>  
wrote:


I followed the instructions on
http://lists.osgeo.org/pipermail/mapguide-users/2008-July/013637.html 
 and I
am not getting the viewer to come up anymore. Was there some major  
changes
that would cause this or what id the fix? I assume I am missing  
some setting
somewhere. Are there updated mapguide templates maybe since the  
default SVN
copy only contains standard and you have to copy over the old. The  
checked
out fusion directory is in the same location as before and the old  
files are

in fusion_old just in case everything should be working right?

The reason why I am even doing this is the Save Map function causes
Javascript "Access Denied" errors. Is there any information on  
either of

these topics please?


Erro info: Error: OpenLayers.String.translate is not a function
Source File:
http://localhost/mapguide/fusion/templates/mapguide/slate/ 
index.html...

Line: 34

Does this mean I need to add open layers or something or disable for
MapGuide?

The Rock



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






--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
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


Re: [mapguide-users] Fusion map insists onrefreshing map on selection, and clear selection...

2008-07-31 Thread Paul Spencer
One thing that has changed in the templates is that  
OpenLayers.String.translate has changed to OpenLayers.i18n - the  
translate function is used in some of the templates, that is likely a  
good place to start.


Cheers

Paul

On 31-Jul-08, at 10:15 AM, Andrew DeMerchant wrote:

Ya, I see that it's fixed! It did break a few templates though, it  
seems - but I may just need to rebuild my Fusion Map in Maestro/ 
Studio.It definitely does seems better. If I can get my  
templates working again now, I may be able to use fusion for my  
clients! Thanks!


Berdel, Brian wrote:


And the latest trunk does fix that issue!  Just be careful  if you  
use setSelection with the latest version…you have to update some of  
the code for it to work.   It is documented here


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

Brian

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of Andrew DeMerchant

Sent: Thursday, July 31, 2008 9:44 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Fusion map insists onrefreshing map  
on selection,and clear selection...


Thanks Jason - I guess that's not so hard! I'll give it a  
shot...thanks again!


Andrew


Jason Birch wrote:
Hi Andrew,

While I believe that it would be possible to set up nightly builds  
for Fusion, it would be more work for you to deal with these than  
with SVN. It might look daunting, but SVN is really easy to work  
with:


- install TortoiseSVN (http://tortoisesvn.net/downloads)
- rename your existing fusion directory to fusion_old
- create a new empty fusion directory
- right-click on the new fusion directory and
  - choose SVN Checkout
  - enter http://svn.osgeo.org/fusion/trunk/ into the URL field
  - click on OK (or something like that)
- copy all of the contents of
  - fusion_old/templates/mapguideto
  - fusion/templates/mapguide

That should just work, and now any time you want to update to the  
latest build, you can right-click on the fusion directory and say  
"SVN Update".  You don't ever need to re-copy the templates, and  
for the cost of these few extra steps staying on top of trunk is  
now a single-click effort.  If you need to go back to the original  
fusion for some reason, you can just rename the directories back  
with no ill effects.


If you do go down this path, I think someone mentioned on the  
Fusion list that you might need to add application/json to the MIME  
types if you're running Windows Server 2003 with IIS.


Jason

From: Andrew DeMerchant
Subject: Re: [mapguide-users] Fusion map insists onrefreshing map  
on selection, and clear selection...
That and the SVN are simply too much extra work for those of us  
just interested in testing stuff. The SVN for Fusion has so many  
files and folders, it's not possible for someone to just 'know'  
where to put stuff on their system to make it work. A zip file  
would be nice, like on the GetIt page.Why can't the build  
scripts be automated to build stuff every night/week and then put  
it somewhere? That seems like a pretty simple thing to do, provided  
we have access to a server somewhere.





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


--

Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470
GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6


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



--

Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470
GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6

___
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


Re: [mapguide-users] Fusion tiled and dynamic layers same map

2008-06-26 Thread Paul Spencer
It should probably work but I suspect that Fusion will only pick your  
tiled layer OR your dynamic layers to display.  I think that we need  
to look at the mixed tiles/dynamic stuff more carefully and make sure  
it does the right thing.  Hopefully this will happen for the 1.1 release


Cheers

Paul

On 16-Jun-08, at 6:51 AM, Remigijus Brazys wrote:


Any Answers?

Best regards,
Remigijus Brazys
GIS analyst, InfoEra
__
Phone.: +370 5 2788456
Fax.: +370 5 2784723
Mobile.: +370 656 10089
S.Zukausko str. 17
LT-08234, Vilnius, Lithuania
E-mail: [EMAIL PROTECTED]
www.infoera.lt; www.gps.lt

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of Leandro R

Sent: Wednesday, June 04, 2008 11:50 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Fusion tiled and dynamic layers same map

Hello list...
I'm running MGOS 2.0.1 with bundled Apache. Windows Server 2003 R2.
There is a map that works fine with PHPViewer but doesn't with Fusion.
The Map has three BaseGroupLayer (TileCache) and many dynamic  
layers. One baseLayer come from WMS and the others (cached and  
dynamic) from ArcSDE 9.1.
I've tested a map only with dynamic layers and worked fine; and the  
sheboygan tiled sample that has worked fine too.

Does Fusion acept both tiled and dynamic layers in the same map?
Is there any way to solved this?
Thanks
Leandro
___
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


Re: SV: [mapguide-users] Get Garbled in SelectionPanel (fusion)

2008-06-25 Thread Paul Spencer
Great, thanks!  I saw you also filed a ticket, we'll make sure this  
gets into Fusion asap.


Cheers

Paul

On 25-Jun-08, at 4:27 AM, Måns Beckman wrote:


Hi,

Found a way to fix it!

I have tried both with my own datasets and the datasets with  
Japanese characters in them and my fix seems to work for both.


I'm not sure if I should post the fix here or on the fusion mail  
list, so if the right person just could have a look at it, I hope  
that the right person reads this email, and patch the code.


Ok, so in \WebServerExtensions\www\fusion\MapGuide\php\Utilities.php

Change row 863 from
$value = htmlentities($value);
To
$value = htmlentities($value,ENT_COMPAT,'UTF-8');

That would do the trick.

Best regards
Måns

-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] För Måns Beckman

Skickat: den 24 juni 2008 15:13
Till: MapGuide Users Mail List
Ämne: SV: [mapguide-users] Get Garbled in SelectionPanel (fusion)

Hi,

I have had a quick look at this because I have the same problem with  
Swedish chars "ÅÄÖåäö". I didn't get the utf8_encode to work for me  
either, but I did see some interesting things in the JSON code.


Here is the output I get when I select one feature in the map.

{"layers":["Vägar-Text"],"extents":{"minx":93434.54668,"miny": 
6217429.1614999,"maxx":102313.2338
,"maxy":6224177.934},"Vägar-Text":{"propertynames": 
["FeatId","GATUNAMN","VAGNR","ZOOMLEVEL"],"propertyvalues"
:["FeatId","GATUNAMN","vägnummer","ZOOMLEVEL"],"propertytypes": 
[7,9,9,9],"metadatanames":["dimension"
,"bbox","center","area","length"],"numelements":1,"values": 
[["1518","Christinelundsvägen

(111)","111","level0"]],"metadata":[["","","","",""]]}}



What I think is really interesting is that:
The layers property is encoded correct - "layers":["Vägar-Text"],"
The property values are encoded correct - "propertyvalues": 
["FeatId","GATUNAMN","vägnummer","ZOOMLEVEL"]
But the values are encoded wrong - "values": 
[["1518","Christinelundsvägen (111)","111","level0"]]  
should be "values":[["1518","Christinelundsvägen  
(111)","111","level0"]]




The same data displays OK in the Ajax-viewer so it's not the values  
that are wrong. I'm kind of guessing that the error is in the place  
where we get the values from, and should be corrected there, and not  
in Selection.php.


Best regards
Måns

-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] För Paul Spencer

Skickat: den 24 juni 2008 12:58
Till: MapGuide Users Mail List
Ämne: Re: [mapguide-users] Get Garbled in SelectionPanel (fusion)

Darn - ok, I just went and looked at what utf8_encode actually does
(!) and its not what we want in this case, it encodes iso 8895-1
characters as utf8 which is probably the generally useful case for
most people but doesn't apply to double byte character sets.

I really don't understand character encoding at all, but I am willing
to incorporate changes into fusion to make this work as long as it is
generic enough to work in the common cases that I deal with too.
Unfortunately I don't have the time to put into becoming educated
about this right now ...

Can you spend some time looking into these functions (and the user
comments that follow):

http://www.php.net/manual/en/function.utf8-encode.php
http://ca3.php.net/manual/en/book.iconv.php

and let us know what you find out?

Cheers

Paul

On 24-Jun-08, at 1:41 AM, D.Ootaka wrote:



Thanks, Paul

I tried to wrap the output in utf8_encode, but not good...

1. wrap $result

Selection.php / Line 144
echo utf8_encode(var2json($result));

http://www.nabble.com/file/p18084122/utf8_encode_result.png
utf8_encode_result.png

2. wrap property value

Selection.php / Line 132
for($k=0; $k$layerName->values[$j]); $k++){
  $result->$layerName->values[$iIndice][$k] =
utf8_encode($properties->$layerName->values[$j][$k]);
}

http://www.nabble.com/file/p18084122/utf8_encode_value.png
utf8_encode_value.png

Regards.

Ootaka


Paul Spencer-5 wrote:


Um, I would expect that this is because the data coming from the
fusion backend is not being properly encoded.  This came up recently
on the list and the proposed solution was to wrap output of text in
the utf8_encode function.

For the selection panel, this would probably be coming from  
mapguide/

php/Selection.php - if y

Re: [mapguide-users] Get Garbled in SelectionPanel (fusion)

2008-06-24 Thread Paul Spencer
Darn - ok, I just went and looked at what utf8_encode actually does  
(!) and its not what we want in this case, it encodes iso 8895-1  
characters as utf8 which is probably the generally useful case for  
most people but doesn't apply to double byte character sets.


I really don't understand character encoding at all, but I am willing  
to incorporate changes into fusion to make this work as long as it is  
generic enough to work in the common cases that I deal with too.   
Unfortunately I don't have the time to put into becoming educated  
about this right now ...


Can you spend some time looking into these functions (and the user  
comments that follow):


http://www.php.net/manual/en/function.utf8-encode.php
http://ca3.php.net/manual/en/book.iconv.php

and let us know what you find out?

Cheers

Paul

On 24-Jun-08, at 1:41 AM, D.Ootaka wrote:



Thanks, Paul

I tried to wrap the output in utf8_encode, but not good...

1. wrap $result

Selection.php / Line 144
echo utf8_encode(var2json($result));

http://www.nabble.com/file/p18084122/utf8_encode_result.png
utf8_encode_result.png

2. wrap property value

Selection.php / Line 132
for($k=0; $k$layerName->values[$j]); $k++){
   $result->$layerName->values[$iIndice][$k] =
utf8_encode($properties->$layerName->values[$j][$k]);
}

http://www.nabble.com/file/p18084122/utf8_encode_value.png
utf8_encode_value.png

Regards.

Ootaka


Paul Spencer-5 wrote:


Um, I would expect that this is because the data coming from the
fusion backend is not being properly encoded.  This came up recently
on the list and the proposed solution was to wrap output of text in
the utf8_encode function.

For the selection panel, this would probably be coming from mapguide/
php/Selection.php - if you modify this file to wrap the output in
utf8_encode and it works, please let us know.

Cheers

Paul



--
View this message in context: 
http://www.nabble.com/Get-Garbled-in-SelectionPanel-%28fusion%29-tp18064719p18084122.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Get Garbled in SelectionPanel (fusion)

2008-06-23 Thread Paul Spencer
Um, I would expect that this is because the data coming from the  
fusion backend is not being properly encoded.  This came up recently  
on the list and the proposed solution was to wrap output of text in  
the utf8_encode function.


For the selection panel, this would probably be coming from mapguide/ 
php/Selection.php - if you modify this file to wrap the output in  
utf8_encode and it works, please let us know.


Cheers

Paul

On 23-Jun-08, at 4:26 AM, D.Ootaka wrote:



Hi

I want to display 2byte code character label in SelectionPanel, but  
I get

garbled in the fusion viewer.
In ajax viewer, no ploblem.

Can I display 2byte code character label in SelectionPanel?

*attached file is sample mgp file

http://www.nabble.com/file/p18064719/sample.png

http://www.nabble.com/file/p18064719/GarbledSample.mgp  
GarbledSample.mgp

--
View this message in context: 
http://www.nabble.com/Get-Garbled-in-SelectionPanel-%28fusion%29-tp18064719p18064719.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Fusion + Oracle datasource problem

2008-06-17 Thread Paul Spencer

Hi Klaus,

this is something that others have reported to me as well, it seems  
that Fusion does some dumb things on initialization that it doesn't  
really need to do, including retrieving the schema of layers in the  
MapDefinition.  Fixing this will require some rearchitecting of how  
Fusion starts up and what info is actually needed to be returned to  
the client.  There are actually two blocking points, one is getting  
too much info from the database (which appears to be very slow) and  
the other happens when a MapDefinition contains a lot of layers and/or  
thematic layers with lots of classes, Fusion generates a large  
response that has to be evaluated in the client and this causes a long  
delay too.


Both are probably unnecessary or can be minimized, but it will take  
some time.  I hope that this will be part of the next Fusion release.


Cheers

Paul

On 17-Jun-08, at 7:15 AM, Klaus Lehtonen wrote:



Hi

The problem is that the Fusion Viewer loads very slowly compared to  
AJAX and
DWF viewers when using Oracle database as a feature source. The AJAX  
and DWF
viewers load to browser in about two seconds, but the Fusion Viewer  
takes
tens of seconds and with some maps times out after a minute. The  
load time
seems to be related to the amount of  layers that use database as  
source. If
we use only sdf data sources the Fusion Viewer loads very quickly.  
After the
Fusion viewer has loaded zooming and panning work quickly, so the  
problem is

only in the initial loading.

I used Firebug to investigate the issue and it shows the LoadMap.php  
takes a
lot of time. Other files load pretty quickly. The MapGuide logs show  
ten
second pauses when GetClassDefinition has been called, but this only  
happens
with part of the calls. Some of the calls cause no problems. During  
loading
mgserver2009.exe is the only application using  CPU time and it does  
not

seem to matter if we use Oracle tables directly or through views.

I wonder if anyone else has had problems using Oracle and Fusion  
viewer?


Klaus Lehtonen
--
View this message in context: 
http://www.nabble.com/Fusion-%2B-Oracle-datasource-problem-tp17884373p17884373.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] fusion bug with InvokeURL?

2008-06-11 Thread Paul Spencer

Hi Andrew,

this problem stems from the fact that we don't pass the selection xml  
around from client to server all the time - I decided that the  
selection can be saved on the server just fine and restored at a later  
time.


I did find a reasonably simple way to work around this before but I  
can't find the code.  But it did involve a server-side change in the  
code that is being called by InvokeURL, essentially you need to check  
if the value of Select literally equals $CurrentSelection and instead  
of doing something like:


$selection = new MgSelection($map, $selectionXml);

you would do

$selection = new MgSelection($map);
$selection->Open($resourceService, $mapName);

(sorry, this in php)

Please let us know if you attempt this and if it works - then I can  
put it in the wiki


Cheers

Paul

On 11-Jun-08, at 1:34 PM, Andrew DeMerchant wrote:

I've been trying to migrate (or look into migrating) my projects to  
Fusion. They all use an InvokeURL script to pass selected data to  
another URL. The problem I'm having with this in fusion seems to be  
totally Fusion's fault. It seems that Fusion's InvokeURL widget is  
defective. My very first parameter is supposed to be  
$CurrentSelection - which is supposed to give me an xml selection  
string. In fusion, all that it does is return a  
string"$CurrentSelection". Quite uselessMy first parameter  
in my InvokeURL widget is: Key = Selected, Value =  
$CurrentSelectthis should give me something like "myurl.asp? 
Select=xmlblah". Instead, I get "myurl.asp?Select= 
$CurrentSelection". Is there a known workaround for this?


Andrew

--

Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470
GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6

___
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


Re: [mapguide-users] Fusion map insists on refreshing map on selection, and clear selection...

2008-06-09 Thread Paul Spencer
Kenneth is absolutely right, this is important for a couple of reasons  
- when dealing with tiled maps, especially, you want to be able to  
draw an untiled overlay with just the selection.  I'll discuss with  
Mike and see if we have started anything for this.


Cheers

Paul


On 9-Jun-08, at 4:05 PM, Kenneth Skovhede, GEOGRAF A/S wrote:


Actually, in MapGuide OS 1.2.0 the selection is a part of the image.
So any selection/de-selection will require the map to be redrawn  
completely.
In MGOS 2.0.0 there was an optimization that enables an application  
to retrieve the selection as a transparent PNG.
While the transition effects in OL 2.6 will visually minimize the  
flickering, I would say that supporting the selection as a separate  
image would be of great use in fusion.
This is especially true when the underlying layer contains complex  
rasters.


I have emulated the seperate layer for MGOS 1.2.0 by keeping a dummy  
copy of the map where I turn on all the layers, select, and turn all  
layers off.
The dummy map has transparent background, and thus renders as just  
the selection.

Regards, Kenneth Skovhede, GEOGRAF A/S


Berdel, Brian skrev:


Here is a recent post on this.



v1.1 of Fusion will incorporate v2.6 of OpenLayers which should  
eliminate this problem and also gives us smooth transition effects  
for zoom and panning.  This has already been added to the trunk  
version of fusion.


Mike


-Original Message-
From: foolfish <[EMAIL PROTECTED]>
Sent: Wednesday, June 4, 2008 11:53pm
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] map flicker when refresh!!!


when i use traditional method(not use fusion),when i show or hide  
a layer,it

won't flickering。

but,in fusion,i use Legend Panel (Layer Manager) to show or hide  
a layer,but

the map is flickering obviously,it‘s not well~

does anybody know how to solve the problem? wait for your  
help,thanks~



--
View this message in context: 
http://www.nabble.com/map-flicker-when-refresh%21%21%21-tp17661479p17661479.html

Brian
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of Andrew DeMerchant

Sent: Monday, June 09, 2008 3:29 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] Fusion map insists on refreshing map on  
selection,and clear selection...


Just wondering if there's a way to stop fusion maps from redrawing  
the map everytime a user selects / deselects something? This  
doesn't happen using the AJAX browser...does this happen for anyone  
else?


Andrew


Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470
GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6


___
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


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


Re: [mapguide-users] Layer Control | fusion

2008-06-09 Thread Paul Spencer
Actually, that's not quite true - an API to control layer and group  
visibility via the Map object does exist on the client side but I'm  
not sure how easy it is to use - right now, the legend widget uses it.


Paul

On 9-Jun-08, at 12:55 PM, Mike Adair wrote:

Currently this is only possible by altering the Map object on the  
server side.


Mike

Berdel, Brian wrote:


Is it possible to turn layers on and off client side? Or do you  
have to use server side code?



Thanks,


Brian





___
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


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


Re: [mapguide-users] how to set selected feature at client in fusion???

2008-06-09 Thread Paul Spencer

Hi,

Fusion works with selections somewhat differently, you should be able  
to just save() the selection on the server side and Fusion will pick  
it up (at least that is how the query stuff works).


I believe Mike did add something for selection xml but I don't know  
what it was - perhaps he will comment :)


Cheers

Paul

On 8-Jun-08, at 10:17 PM, foolfish wrote:



my problem is in tradition method (not use fusion), i can select  
feature at

server, and display the selected feature at client。

but in fusion,the follow line is failed:
parent.parent.SetSelectionXML(selectionXML);
parent.parent.mapFrame.Refresh();

my question is how to setSelection at client in fusion?:confused:

-
[at server]:i define a function to select Feature,and return a  
selectionXML
public void CreateSelectionXML(String queryLayer, String  
queryString,String

map_name)
   {
   MgResourceService resService =
(MgResourceService 
)siteConnection.CreateService(MgServiceType.ResourceService);

   MgFeatureService featureService =
(MgFeatureService 
)siteConnection.CreateService(MgServiceType.FeatureService);

 MgMap map = new MgMap();
   map.Open(resService, map_name);
   MgLayer layer = (MgLayer)map.GetLayers().GetItem(queryLayer);
 MgResourceIdentifier resId = new
MgResourceIdentifier(layer.GetFeatureSourceId());
   MgFeatureQueryOptions queryOption = new  
MgFeatureQueryOptions();

   queryOption.SetFilter(queryString);
   MgFeatureReader featureReader =  
featureService.SelectFeatures(resId,

queryLayer, queryOption);
 MgSelection selection = new MgSelection(map);
   selection.AddFeatures(layer, featureReader, 0);
   OutputSelectionInHTML(selection, featureService, queryLayer);
   selectionXML = selection.ToXml();
   }

-
[at client]:
<%
   string sessionID = Request.Form.Get("SESSION");;
String queryString = "ID='"+ Request.Form.Get("ID"); +"'";
String queryLayer =  Request.Form.Get("LAYER_NAME");
String map_name = Request.Form.Get("MAP_NAME");

InitializeWebTier(Request);
onnectToServer(sessionID);
CreateSelectionXML(queryLayer,queryString,map_name );
String selectionXML = utility.SelectionXML;
%>
...

   function onPageLoad() {
   var selectionXML = '<% = selectionXML  %>';
   parent.parent.SetSelectionXML(selectionXML);
   }
parent.parent.SetSelectionXML(selectionXML);
parent.parent.mapFrame.Refresh();


...

...

-


--
View this message in context: 
http://www.nabble.com/how-to-set-selected-feature-at-client-in-fusiontp17725343p17725343.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] how to refresh legend panel when create a dynamic layer ??

2008-06-06 Thread Paul Spencer
No, that was the point of filing the enhancement ticket so that it can  
be added in the future


Cheers

Paul

On 6-Jun-08, at 10:56 AM, foolfish wrote:



thank you!

Is it possible to add dynamic layer to the Legend at client? when i  
create a

dynamic layer at server ,  to return the dynamic layer information to
client,then add layer to Legend use javascript.

It's only my thought,but i don't know how to do so.

Is it possible?
------

Paul Spencer-5 wrote:


Right now, that is really the only way to refresh the legend - it
currently gets its information from the map widget about which layers
make up the map.  And the only way to tell the map to add a layer  
that

was dynamically added from the server is to call reloadMap.

I agree that this is a performance problem.  Currently, the Map  
widget

retrieves a lot of potentially unnecessary information about the
layers and it would be nice to refactor this to be a bit smarter.  We
would still need to call reloadMap I think but we could slim down  
what

happens on the server side (in LoadMap.php) to just return the layer
list rather than enumerate all the scale ranges and styles of each
layer.  Then the Legend can be a bit smarter about requesting the
scale range and style information for just layers that have changed.

I've filed http://trac.osgeo.org/fusion/ticket/75 to track this
change, but it won't be something we tackle for a while - patches
graciously accepted if someone else wants to tackle it.

Cheers

Paul

On 6-Jun-08, at 4:44 AM, foolfish wrote:



i can use document.getElementById("Map").widget.aMaps[0].reloadMap()
to
refresh both Legend and Map.but the problem is it's too slow~

i want to know how to refresh Legend alone.

Perhaps it's a bug of fusion, i guess~

Can anyone answer to me?:thinking:
--
View this message in context:
http://www.nabble.com/how-to-refresh-legend-panel-when--create-a-dynamic-layertp17661588p17687425.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users




--
View this message in context: 
http://www.nabble.com/how-to-refresh-legend-panel-when--create-a-dynamic-layertp17661588p17694147.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] how to refresh legend panel when create a dynamic layer ??

2008-06-06 Thread Paul Spencer
Right now, that is really the only way to refresh the legend - it  
currently gets its information from the map widget about which layers  
make up the map.  And the only way to tell the map to add a layer that  
was dynamically added from the server is to call reloadMap.


I agree that this is a performance problem.  Currently, the Map widget  
retrieves a lot of potentially unnecessary information about the  
layers and it would be nice to refactor this to be a bit smarter.  We  
would still need to call reloadMap I think but we could slim down what  
happens on the server side (in LoadMap.php) to just return the layer  
list rather than enumerate all the scale ranges and styles of each  
layer.  Then the Legend can be a bit smarter about requesting the  
scale range and style information for just layers that have changed.


I've filed http://trac.osgeo.org/fusion/ticket/75 to track this  
change, but it won't be something we tackle for a while - patches  
graciously accepted if someone else wants to tackle it.


Cheers

Paul

On 6-Jun-08, at 4:44 AM, foolfish wrote:



i can use document.getElementById("Map").widget.aMaps[0].reloadMap()  
to

refresh both Legend and Map.but the problem is it's too slow~

i want to know how to refresh Legend alone.

Perhaps it's a bug of fusion, i guess~

Can anyone answer to me?:thinking:
--
View this message in context: 
http://www.nabble.com/how-to-refresh-legend-panel-when--create-a-dynamic-layertp17661588p17687425.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 mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] fusion problem....

2008-06-03 Thread Paul Spencer
Are you using 2.0 or 2.0.1?  Are you using the fusion that comes with  
the installer or are you using another version (i.e. svn trunk)


Cheers

Paul

On 3-Jun-08, at 3:53 PM, Andrew DeMerchant wrote:

I was silly yesterday and uninstalled my MGOS v1.02 installation. I  
was running 2.0 along sideof course, uninstalling 1.0.2  
completely broke 2.0. I've now (after a day) managed to get 2.0 back  
up and running, for the most part - but I still can't get fusion  
working. I keep getting an error:


"Fusion Error:
WARNING: Exception occurred in AJAX callback.
TypeError: this.mapWidget.setMetersPerUnit is not a function
Location: undefined (223)
xx)"

Anyone?


--

Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470
GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6

___
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


Re: [mapguide-users] Use a template, Fusion, can't chance the map

2008-05-22 Thread Paul Spencer

Romain,

are you using Studio to launch your fusion application?  If yes, then  
it uses an ApplicationDefinition stored in the mapguide repository and  
changing the file on disk will have no effect so you will need to  
change the map using Studio.


To use the ApplicationDefinition file on disk, you can go directly to  
the template in your web browser with no extra parameters:


http://localhost:8008/mapguide/fusion/templates/mapguide/aqua/

Cheers

Paul

On 22-May-08, at 9:39 AM, Romain Quellec wrote:


Hello,

I use a template in WebServerExtensions\www\fusion\templates\mapguide 
\aqua


I change the ApplicationDefinition.xml line 15,   
Library://QSMS/Cartes/Cadriag.MapDefinition

but I have the Sheboygan map.
Solutions?

Thanks

___
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


Re: [mapguide-users] Fusion: how do I zoom to selection?

2008-05-14 Thread Paul Spencer
Selection handling is a bit odd - you need to ask the Map widget for  
the selection and provide a callback function as the selection is  
loaded asynchronously on demand.  There is a ZoomToSelection widget  
that you can look at as an example.


That part of the API is poorly documented and thought out.  I'd like  
some suggestions on how the selection stuff should work.


Cheers

Paul

On 14-May-08, at 8:36 AM, Kimmo Kotajärvi wrote:

How do I call zoom to selection from another javascript? In the old  
viewer I could just do mapAction(10) but that has been obviously  
taken out.

___
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


Re: [mapguide-users] Fusion security?

2008-05-13 Thread Paul Spencer
Right now, fusion uses the Anonymous user by default but will update  
the server to use specific credentials if they are provided - I can't  
specifically remember how to specify them but I do know that you can  
pass in a session id that was previously created so you can have  
something that logs a user in, creates a session and then launches the  
fusion app with the session id.  I also did something for Jason that  
allowed a user to connect anonymously initially but then log in.


Hum, seems like this is something we need to put some thought into :)   
Comments, discussion welcome


Paul

On 13-May-08, at 3:26 PM, Andrew DeMerchant wrote:

I'm not getting a login prompt when I go to view my Fusion layouts.  
Is there some reason for that? Is there something that I need to do  
in order to get it to force a login?


Andrew
--

Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470
GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6

___
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


Re: [mapguide-users] Fusion - one AppDef many maps best approach?

2008-05-13 Thread Paul Spencer
Kenneth, this is close, but I think it is unnecessary overhead to  
write it back to the server when you already have the exact info you  
need on the client side.


Andy, I'd like to understand how you associate users to maps - is this  
done on the server somehow?  How are the maps organized, are they  
somehow named or stored in a path that varies only by user name?


Paul

On 13-May-08, at 4:37 PM, Kenneth Skovhede, GEOGRAF A/S wrote:

Maybe I misunderstood the problem, but wouldn't it be possible to do  
it like this:


1. Ask user to log on
2. Determine correct map resourceID
3. Download ApplicationDefinition Xml from server
4. Update Xml, set resourceID to the one found in step 2.
5. Write the Xml back into the session repository
6. Start regular fusion, but point to session ApplicationDefinitio  
instead


Regards, Kenneth Skovhede, GEOGRAF A/S



Mike Adair skrev:
Around line 532 of lib/ApplicationDefinition.js there is an over- 
ride of the mapid by a query param.  You should be able to do  
something similar there, or else just above that in the  
Fusion.Lib.ApplicationDefinition.Map where it extracts the  
resourceId from the MapGroup.


Patches like this would be welcome.  Just create a ticket first and  
attach the patch to it.


Mike

Andy Morsell wrote:
Thanks for the MapMenu widget possibility.  That may work out okay  
pointing
to a library folder, and I'll have to figure out how to hide the  
widget

itself from the end-user.

Yes, having a URL parameter that points to a mapResource would be  
perfect.
I will look at modifying Fusion.  Any quick clues as to which  
Fusion files I

should start looking at?

Thanks again.


Andy
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike  
Adair

Sent: Tuesday, May 13, 2008 11:56 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Fusion - one AppDef many maps best  
approach?


Andy,

Fusion doesn't support that use-case right now although you might  
be able to
look at the MapMenu widget to see if that might fit your needs, or  
you may
be able to customize it to suit. The MapMenu supports loading a  
list of Map
definitions from a MapGuide folder resource, i.e point it at a  
MapGuide
Library://some/folder and it will enumerate all the MapDefinition  
items and

list them in the menu.

The other approach would be to modify Fusion to accept a  
'mapResource' URL parameter that would override the ResourceId  
pointer in a MapGroup, in
this case the  element in AppDef would represent a  
template.


Mike

Andy Morsell wrote:


Hi,
I'm trying to use Fusion on a new project and still wrapping my  
head around everything.  I have a an application with potentially  
hundreds of map definitions in the MGOS repository.  I would like  
ONE Fusion ApplicationDefinition for the entire application.


From what I understand  the map definition must be defined in the  
ApplicationDefinition.xml file in the MapSet tag, MapGroup  
container, Map tag.  Further, the MapGroup ID is then referenced  
by the MapWidget.


To avoid having a huge and difficult to maintain  
ApplicationDefinition file with all of my maps, what would be the  
best approach for my needs?  The map will be determined by the  
application at run-time after the user logs in, and I need to  
then load the Fusion layout with that map (a MGOS map resource).   
I see that the loadMap() method in the Fusion command API will do  
what I need, but the map definition must exist in the AppDef first.


Any suggestions are greatly appreciated.  Thank you.

Andy Morsell, P.E.
Spatial Integrators, Inc.
_http://www.SpatialGIS.com_

--
--

___
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


___
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

___
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


Re: [mapguide-users] Fusion - feature hyperlink target?

2008-05-13 Thread Paul Spencer
No, that's right - when you use Studio it is using an AppDef stored  
inside the MapGuide repository, not the one on the file system.  When  
you launch it from Studio, it appends something to the URL to get it  
to use the AppDef from the repository.


Cheers

Paul

On 13-May-08, at 10:56 AM, Jason Birch wrote:


Andy,

I don't believe that MapGuide Studio uses the filesystem-level  
AppDef at

all.  A flexible web layout is basically just an ApplicationDefinition
that has been added to the MapGuide repository, so you should be  
able to

use the MapAgent API to upload your tweaked version.

I could be absolutely wrong on this of course; I'm not using Studio  
2009

yet.

Jason

-Original Message-
From: Andy Morsell
Subject: RE: [mapguide-users] Fusion - feature hyperlink target?

To start, I copied and renamed the Slate template and edited it's
ApplicationDefinition.xml file.  In there, I changed the maptip
target from the default of "NewWindow" to my target frame name.
___
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


Re: [mapguide-users] Fusion issues - MGOS Trac or Fusion Trac??

2008-05-07 Thread Paul Spencer

Andy,

we try to track (pun intended) both so from my point of view it  
doesn't matter.


Cheers

Paul

On 7-May-08, at 8:17 PM, Andy Morsell wrote:
When issues specific to MGOS with Fusion are encountered, where is  
the correct place to log the defect?  I just logged one in the  
Fusion trac, but since the problem occurs with MGOS, should I log it  
with MGOS instead?


Thanks.

Andy Morsell, P.E.
Spatial Integrators, Inc.
http://www.SpatialGIS.com

___
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


Re: [mapguide-users] new flexible layout in mapguide studio 2009

2008-05-05 Thread Paul Spencer

Eric,

MapGuide Open Source (2.0+) supports flexible web layouts.

Cheers

Paul

On 5-May-08, at 11:41 AM, <[EMAIL PROTECTED]> wrote:


Hi All,

I installed mapguide studio 2009 and mapguide opensource 2.0 in  
windows
platform. Studio 2009 have a number of new web layout I can choose,  
but it

shows extensions of the layout called "application definition" (e.g.
Library://Lots/AJAX.ApplicationDefinition) when I save the new  
layout. It
doesn't work when I try to deploy it on web server. I don't know  
why? Is it
I use mapguide opensource, so I cannot use this flexible layout?  
Anyone

know why?

Cheers,
Eric

___
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


Re: [mapguide-users] Fusion API, how to add new vector layer (OpenLayers)

2008-03-27 Thread Paul Spencer
I would like to expose the OpenLayers API directly in Fusion but that  
isn't done yet.  You can get to the OpenLayers Map object by doing  
something like:


//'Map' is the HTML container for the map, set in MapWidget tag of  
ApplicationDefinition

var fusionMapWidget = Fusion.getWidgetById('Map');
var olMap = fusionMapWidget.olMap;

Then you can do whatever you want with olMap.  Note that the  
OpenLayers included with MapGuide Fusion may not be a full build of  
OpenLayers so stuff like Vector might be missing - you may be able to  
replace Fusion's OpenLayers.js with one that you build yourself.


Cheers

Paul

On 27-Mar-08, at 5:14 AM, Kenneth, GEOGRAF A/S wrote:
If you use OpenLayers from scratch, you will need a version with  
MapGuide support.

I'm not sure if the 2.5 release has that, but the SVN trunk has.

To add a vector layer you can do:
var map = new OpenLayers.Map(...);
var mgLayer = new OpenLayers.Layer.MapGuide(...);
var vectorLayer = new OpenLayers.Layer.Vector(...);
map.addLayer(mglayer);
map.addLayer(vectorLayer);

You will need to check up on the OpenLayers API for data to put in  
the ... places.


The same should work in Fusion, you just have to find the name of  
the map variable.


Regards, Kenneth, GEOGRAF A/S


Бородаев Павел Владимирович skrev:


Hi All.
Is it possible to add new vector layer or other layers to web map  
using OpenLayers API?
What modifications of source code I should do and where? This will  
be very useful for me: if it is impossible I will use OpenLayers  
from scratch.

TIA.
___
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


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


Re: [mapguide-users] Selection problem in Fusion on MGOS2.0

2008-03-26 Thread Paul Spencer
This is a known issue and has been at least partially corrected in a  
newer version of fusion which is not yet available.  I am not aware of  
a work around with the current code except to fix the data not to have  
NULLs (not an acceptable solution, obviously).


Cheers

Paul

On 26-Mar-08, at 2:07 AM, Katsuaki Soizumi wrote:

Hi all,

I have problem with selection in fusion.
There are some cases that selection in build-in doesn't work for  
selecting features.
It seems the features that have value for property as null cannot be  
selected.


I looked up JavaScript of fusion and found below that an exception  
occurred.


-
Value for PROPERTY_NAME property is null.
Exception occurred in method MgProxyFeatureReader.GetProperty at  
line 448 in file d:\buildforgeprojects 
\mapguide_open_source_v2.0\build_23.8\mgdev

\common\mapguidecommon\Services/ProxyFeatureReader.cpp
...
-

I think something wrong on selecting processes when value for  
property is null.

How would you figure it out?

Thanks in advance.
___
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


[mapguide-users] Fusion is now at OSGeo

2008-03-20 Thread Paul Spencer
Just a quick note to let you know that Fusion (recently bundled with  
MapGuide OS 2.0) now has an official home courtesy of OSGeo at:


http://trac.osgeo.org/fusion

This comes with public SVN access, trac and tickets, and a set of  
mailing lists.


Many thanks to OSGeo for our new home.  We are still moving in, so  
there are lots of boxes to unpack and curtains to hang up.  Bear with  
us while we get settled in :)


Fusion will continue to be bundled with new versions of MapGuide OS  
and you can still discuss MapGuide-Fusion related issues on the  
MapGuide lists and file Fusion-related tickets in MapGuide's trac  
system, but we will also be building a community of developers and  
users around Fusion on the new site.


If you are interested in watching or participating in Fusion  
development, or the community of users that is growing there, please  
come and join us.


Cheers

Paul

__

   Paul Spencer
   Chief Technology Officer
   DM Solutions Group Inc
   http://www.dmsolutions.ca/

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


Re: [mapguide-users] It´s possible use google m aps as base map in a MG application

2008-03-19 Thread Paul Spencer

Jackie is correct, you have to be very careful of how you use Google.

OpenLayers incorporates Google (and Yahoo and Microsoft) mapping  
services by using their APIs and thus does not violate their terms of  
use technically, but you still need to make sure that your application  
doesn't violate their terms of use.


There is quite a bit of documentation on using Google in OpenLayers in  
the OpenLayers wiki and in the mailing list archives, I suggest that  
you start there (http://www.openlayers.org).


It is technically possible to do the same in Fusion since we are  
embedding OpenLayers as the mapping component, but it would not be  
practical to do so at this time.  There is no API to make this happen  
automatically yet, and the code to make it work from an application  
developer's point of view would be convoluted.


Your best bet at this point in time is to start with OpenLayers  
directly.


Cheers

Paul

On 19-Mar-08, at 7:19 AM, Zac Spitzer wrote:

you can use the trunk version of openlayers to use both mapguide and
google earth,
it has support for both map types. I think fusion can do the same

On Wed, Mar 19, 2008 at 10:11 PM, Jackie Ng <[EMAIL PROTECTED] 
> wrote:


I do believe this would violate google's terms of service.

If you want to incorporate google imagery, you would have to do it  
the other
way round, with Google Maps/Earth as the "frontend" and MapGuide as  
the

"backend".

- Jackie



bigtower wrote:


Hi,
I need to use Tiled Maps from Google Maps as a base cartography in  
my MG

application.
The MG application is developed with MG 2008 Enterprise.
If is necessary can use Fusion, I need to know if is possible use  
Google

maps as other layer in my MG application.

Thanks



--
View this message in context: 
http://www.nabble.com/It%C2%B4s-possible-use-google-maps-as-base-map-in-a-MG-application-tp16141337s16610p16142994.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





--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
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


Re: Re[mapguide-users] gistering new fusion templates

2008-03-06 Thread Paul Spencer

Hi Jackie,

I just tried this and it worked.  I copied the slate template folder  
and called it slate2, then copied the slate.xml file and renamed it  
slate2.xml and a second copy of slate appeared in studio.


Cheers

Paul

On 6-Mar-08, at 2:55 AM, Jackie Ng wrote:



Hi All,

I remember from the early betas of MGOS 2.0.0 that all I needed to  
do was

copy/rename one of the existing template folders, copy/rename the
corresponding xml file, change the path references in that xml file,  
and it

would then get picked up as a new template when invoking
EnumerateApplicationTemplates via the mapagent interface.

That doesn't seem to work in the final release. So how do you  
"register" a

new fusion template?

- Jackie
--
View this message in context: 
http://www.nabble.com/Registering-new-fusion-templates-tp15868197s16610p15868197.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


--
Paul Spencer
CTO, DM Solutions Group Inc
http://www.dmsolutions.ca/




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


Re: [mapguide-users] Firefox 3.0b3 and MapGuide - BUG

2008-03-06 Thread Paul Spencer

Maciek,

I'm not sure about the ajax viewer but I know that we haven't tested  
Fusion against Firefox 3 yet, and since its not released officially it  
is not high on my list of things to do.  However, that being said, I  
am personally really excited about Firefox 3 and can't wait for it to  
come out, it looks fantastic and is way, way better on memory usage :)


Cheers

Paul

On 6-Mar-08, at 6:45 AM, Maciej Skorczewski wrote:


Hi!

I test new  Firefox 3.0b3 (beta 3) width my MG aplication ...and see  
that all aplication do not work correct...i can't see any maps  
inside viewer...



did you have this same error?

try to see this demo site
http://mapguide.osgeo.org/livegallery.html


test version of new fusion work correct
http://demo01.dmsolutions.ca/mapguide/fusion/templates/mapguide/slate/



i thing that is big bug.

maciek


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


--
Paul Spencer
CTO, DM Solutions Group Inc
http://www.dmsolutions.ca/




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


Re: [mapguide-users] Fusion Framework & UMN MapServer

2008-03-05 Thread Paul Spencer

Hi Tim,

it can be but there is currently no official open source version of  
fusion that works with mapserver.  We are currently in the process of  
moving fusion to osgeo servers at which time a community can grow  
around both mapguide and mapserver back-ends.


That being said, you can edit config.json in fusion to set the  
appropriate values for your mapserver install and set up a map in the  
application definition using MapServer as the type and give a MapFile  
path in the extension ... something like:


  

  
MapServer
true

/ms4w/apps/gmap/htdocs/gmap75.map

  

  

and then change the MapWidget tag to point to the id of the map group  
(gmap in the above example) and it should all just work.  Note that  
mapserver support requires that you have php_mapscript and a valid  
session.save_path set up in php.ini


Also, the name of the php_mapscript module is hardcoded in fusion/ 
MapServer/php/Common.php so if you want something other than:


$szPHPMapScriptModule = 'php_mapscript.'.PHP_SHLIB_SUFFIX;

you will need to manually change it there for now.

Cheers

Paul


On 29-Feb-08, at 10:07 AM, Nolte, Tim wrote:


Anybody have experience using the Fusion framework with the UMN
MapServer. We currently have a UMN MapServer running and I'd really  
like

to move to the Fusion framework, as I've heard it could be used with
MapServer. I'd like as much information as possible to speed up my
migration time. Thanks.

- Tim


Timothy J Nolte - [EMAIL PROTECTED]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:616-706-2438
Fax:616-554-6484
Web: www.ipcswirelessinc.com
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


--
Paul Spencer
CTO, DM Solutions Group Inc
http://www.dmsolutions.ca/




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


Re: [mapguide-users] fusion question - selection information

2008-03-05 Thread Paul Spencer
sounds like a bug in fusion related to the particular fdo provider or  
your data.  We have experienced some problems with NULL values, some  
of the code wasn't safe when querying null values.  I believe this has  
been fixed recently and should be included in the next update.


We are currently in the process of moving Fusion from our own svn/trac  
to an osgeo-hosted svn/trac at which time it will be easier for us to  
release updates to fusion and for folks to get the latest patches etc.


Cheers

Paul

On 3-Mar-08, at 5:44 PM, Jasen Maminski wrote:

I have a question about fusion and viewing the associated data using  
the select tool to view information about a data point or poligon  
area.


When using a shape file to plot points the data appears in the  
selection panel when I click on the data point on a map it shows up  
fine, and displays the information about that plotted point.   
However when plotting points onto a map from an SQL source, it  
doesn't work at all. The points plot just fine and appear on the  
map, and I can even click on them, but no information appears in the  
selection panel.  Yet it works fine when I view the map in the  
regular AJAX viewer sample that comes with mapguide.


Could anybody shed some light on this for me?

Thanks,
--
Jasen Maminski

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


--
Paul Spencer
CTO, DM Solutions Group Inc
http://www.dmsolutions.ca/




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


Re: [mapguide-users] Does Fusion access the tilecache?

2008-03-05 Thread Paul Spencer
We just use the mapagent operation to get tiles, so it should be using  
the tile cache (I would think)


Paul

On 28-Feb-08, at 6:48 AM, Zac Spitzer wrote:


I have just been playing round with fusion and tiled maps using RC4.
Using the 'classic static' ajax view a folder
is created under tileCache which holds the tiles and the access.log is
full of GetTile messages

Using Fusion i see none of this, session id folders in the tileCache
level stuff whilst both are using
the same base tiled map

z

--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


--
Paul Spencer
CTO, DM Solutions Group Inc
http://www.dmsolutions.ca/




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


Re: [mapguide-users] MG 2.0 RC4 selection ALMOST working

2008-02-21 Thread Paul Spencer
Ok, I found Jason's problem but it was in code that is not in the  
general release so I don't know where the other problem is coming from  
even though it has the same exception.  In Jason's case, there was a  
layer being programmatically created that had an incorrect property  
mapping (it referred to a field in the feature source that didn't  
exist).


Is it possible to get an mpg of your map/layer/data or a subset enough  
to reproduce the problem?  You can send directly to me.


Cheers

Paul

On 21-Feb-08, at 7:43 PM, Ryan Northcott wrote:


ahhh ajax. the secret deadly ninja of web apps.

On Thu, Feb 21, 2008 at 7:34 PM, Paul Spencer <[EMAIL PROTECTED]>  
wrote:

The exception is corrupting the json formatted response so when
Query.php returns there is a (likely suppressed) javascript error that
prevents Fusion from processing the selection and hence other widgets
from responding to it to load the selection.

Mike, we should be able to reproduce this with some of Jason's data.

Cheers

Paul

On 21-Feb-08, at 3:14 PM, Jonathan Manafi wrote:

> This is the response from a query:
>
> Object not foundERROR: The specified object was not found.
> The specified object was not found.
> Exception occurred in method GetItem at line 117 in file d:
> \buildforgeprojects\mapguide_open_source_v2
> .0\build_22.4\mgdev\common\foundation\Data/NamedCollection.cpp
> - GetItem line 117 file d:\buildforgeprojects
> \mapguide_open_source_v2.0\build_22.4\mgdev\common\foundation
> \Data/NamedCollection.cpp
> general exceptiongeneral exception{"hasSelection":true,"extents":
> {"minx":-1841749.109647,"miny":10697190
> .314625,"maxx":-1611134.1984211,"maxy":10745845.651758},"layers":
> ["obstructions","platforms","wellbores"
> ,"pipelines","blocks"],"obstructions":{"featureCount": 
1},"platforms":

> {"featureCount":3},"wellbores":
> {"featureCount":15},"pipelines":{"featureCount":6},"blocks":
> {"featureCount":4}}
>
>
> Mike Adair wrote:
>> What response are you getting from Query.php for your maps?
>>
>> Mike
>>
>> Jonathan Manafi wrote:
>>> We realized about the Selection widgets, and we went ahead and
>>> included those in the ApplicationDefinition.xml files that we
>>> used. We also noted that the selection does indeed work with the
>>> Sheboygan maps, and as soon as you select parcels, the map
>>> refreshes to indicate your selection, as well as the SelectionInfo
>>> widget shows your selected objects. However, we used the included
>>> Aqua ApplicationDefinition.xml template and only changed
>>> the .MapDefinition files to reflect our maps instead of Sheboygan
>>> and added our custom scripts/urls as widgets to test, and we are
>>> having the selection issues. I even removed everything external to
>>> the initial Aqua template except for one of our maps to load, and
>>> the same thing occurs.
>>>
>>> Also of note:
>>> I used the FireBug extension to see the GET and POST commands, and
>>> when running the Sheboygan sample, the selection command issues a
>>> POST of .../fusion/MapGuide/php/Query.php followed by POST .../
>>> fusion/MapGuide/php/Selection.php, whereas our maps only issue
>>> POST of .../fusion/MapGuide/php/Query.php.  I don't know if that
>>> has anything to do with the SelectionInfo showing selected objects
>>> for Sheboygan and not for us, or if all of these issues are just
>>> interrelated.
>>>
>>> Jonathan
>>>
>>> Mike Adair wrote:
>>>> Note that if you are testing with the fusion/samples/mapguide/
>>>> standard example, the SelectionPanel and SelectionInfo widgets
>>>> aren't enabled in the ApplicationDefinition.xml file as shipped.
>>>> You have to uncomment those widgets in the file.  We should
>>>> probably change that so those widgets are included by default.
>>>> In RC4 with the Sheboygan map, the selection should be appearing
>>>> highlighted as soon as it is selected.
>>>>
>>>> Mike
>>>>
>>>>
>>>>
>>>> Jason Birch wrote:
>>>>> Oh, looking at your contribution to that thread, it looks like
>>>>> that problem is Fusion-specific, which is different than ary's
>>>>> problem (which is PostGIS-specific).
>>>>> I'm seeing this Fusion selection problem myself on Windows2k3,
>>>>> IIS

Re: [mapguide-users] MG 2.0 RC4 selection ALMOST working

2008-02-21 Thread Paul Spencer
statusbar still shows No features selected. But  
when I run our script, the output is correct and formatted  
accordingly. Yet, If I make a selection programmatically like  
stated in the linked post, the selection is highlighted, and the  
statusbar reads {0} features selected on {1} layers, yet shows  
that two layers are selected in the selection panel, wells and  
blocks. And, no matter which block I select--even if the block  
has nothing inside--the selection panel always shows the same  
two wells selected. Also, if I make a selection with the tool, I  
cannot use the 'Clear Selection' tool, but it is available when  
objects are selected programmatically.


I don't know what is causing this behavior, but these are my  
observations so far. If I come across anything new, I will  
update here. At least the selections are working enough to use  
and test our scripts, and for that, I am glad.
  



___
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

___
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


--
Paul Spencer
CTO, DM Solutions Group Inc
http://www.dmsolutions.ca/




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


Re: [mapguide-users] Polygon labels - fusion problems

2008-02-18 Thread Paul Spencer

Traian,

my understanding was that I should be using GetMapImage for drawing  
the map and GetVisibleMapExtent/GetDynamicMapOverlay for the  
selection.  And in fact, I think Trevor modified GetDynamicMapOverlay  
to allow rendering just the selection.


From what you said below, it now appears that I should be using  
GetVisibleMapExtent/GetDynamicMapOverlay for rendering map draws.


Note that this is problematic for OpenLayers because it currently uses  
a synchronous AJAX call to GetVisibleMapExtent which is not desirable  
and will require a rework of the MapGuide support in OpenLayers to  
allow this to be done asynchronously.


Is there any reason why the two operations would be implemented  
differently?  Is one more correct than the other?


Cheers

Paul

On 15-Feb-08, at 6:20 PM, Jason Birch wrote:


Traian, Paul,

I observed considerable performance degradation between the old  
version

of Fusion (pre-MGOS) that used GetDynamicMapOverlay instead of GetMap.
This was with my Cemetery map data that has the nasty buffered roads
layer.  Sheboygan seemed to be fairly quick regardless.

I'm wondering if this difference (clipping off) could be the  
culprit?  I
don't see the same performance decrease in the AJAX viewer for this  
map.


I discussed this with Paul earlier, and think I was supposed to  
submit a
bug report, but wasn't able to quickly put together a reproducible  
error

report and it slipped my mind (doh!).

Jason


-Original Message-
From: Traian Stanev
Subject: RE: [mapguide-users] Polygon labels - fusion problems


I think it could be that Fusion uses a RenderMap API which uses  
viewport

clipping turned off (resulting in labels always being at the true
centroid of polygons) while the MG ajax viewer uses
RenderDynamicOverlay, which has viewport clipping turned on, resulting
in polygons being labeled at the centroid of the clipped region.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


--
Paul Spencer
CTO, DM Solutions Group Inc
http://www.dmsolutions.ca/




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


Re: [mapguide-users] Polygon labels - fusion problems

2008-02-15 Thread Paul Spencer

Hi Klemen,

can you make a couple of screenshots that illustrate the problem?   
Fusion uses the same MapAgent calls as the ajax viewer to get the map  
image, so I can't think of any reason why they would behave  
differently in this respect and would like to see the problem in action


Cheers

Paul

On 13-Feb-08, at 5:44 AM, Klemen Sorcnik wrote:


Hi all,

I have problem with labeling in fusion .
Labels positions are in the center of the polygon, and
are not dynamical move after i pan or resize map, so they
are not shown  althought polygon is still visible on the screen.
But if i show the same map in ajax viwer it works just fine.

Anyone know solution?

Klemen

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


--
Paul Spencer
CTO, DM Solutions Group Inc
http://www.dmsolutions.ca/




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


  1   2   >