[mapguide-users] Re: re: google mapintegration with mapguide

2010-04-05 Thread Jose Cerrejon

I've tried that, but firebug show me

this.mapObject.oLayer.OL is undefined

on line: 

this.mapObject.oLayerOL.projection = this.getMap().oMapOL.getProjection()

Maybe the problem is the definition in ApplicationDefinition.xml.


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


[mapguide-users] Re: re: google mapintegration with mapguide

2010-03-31 Thread Jose Cerrejon

I've tried the fix, but with the last SVN, doesn't works (03/31/2010). This
is the code in the line 110:

110 var options = {
111  div: this.domObj,
112  size: this.oSize,
113  minRatio: this.nMinRatio,
114  maxRatio: this.nMaxRatio,
115  mapOptions: this.oMapOptions,
116  layers: [layer]
117};
-- 
View this message in context: 
http://n2.nabble.com/re-google-mapintegration-with-mapguide-tp3049773p4829338.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Re: re: google mapintegration with mapguide

2010-03-31 Thread Kori Maleski
Insert the code fix right above the var options = { in the loadOverview
like so:


loadOverview: function(layer)
{
if (this.control) {
  this.control.destroy();
}

var size = $(this.domObj).getContentBoxSize();
this.oSize = new OpenLayers.Size(size.width, size.height);

if (!layer) {
layer = this.getMap().oMapOL.baseLayer.clone();
}
layer.isBaseLayer = true;
layer.ratio = 1.0;
if (layer.singleTile) {
  this.oMapOptions.numZoomLevels = 3;  //TODO: make this configurable?
}
this.mapObject.projection = this.getMap().oMapOL.getProjection()
this.mapObject.oLayerOL.projection = 
this.getMap().oMapOL.getProjection()
var options = {
  div: this.domObj,
  size: this.oSize,
  minRatio: this.nMinRatio,
  maxRatio: this.nMaxRatio,
  mapOptions: this.oMapOptions,
  layers: [layer]
};

this.control = new OpenLayers.Control.OverviewMap(options);
if (size.width == 0 || size.height == 0) {
  return;   //don't try to load if the container is not visible
} else {
  this.getMap().oMapOL.addControl(this.control);
  this.bDisplayed = true;
}
//console.log('OverviewMap mapLoaded');
},




Cheers,

Kori Maleski


On Tue, Mar 30, 2010 at 11:56 PM, Jose Cerrejon g...@mapas-sll.com wrote:


 I've tried the fix, but with the last SVN, doesn't works (03/31/2010). This
 is the code in the line 110:

 110 var options = {
 111  div: this.domObj,
 112  size: this.oSize,
 113  minRatio: this.nMinRatio,
 114  maxRatio: this.nMaxRatio,
 115  mapOptions: this.oMapOptions,
 116  layers: [layer]
 117};
 --
 View this message in context:
 http://n2.nabble.com/re-google-mapintegration-with-mapguide-tp3049773p4829338.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: re: google mapintegration with mapguide

2010-03-30 Thread Jose Cerrejon

I have the same issue now. Maybe is a bug in fussion.
-- 
View this message in context: 
http://n2.nabble.com/re-google-mapintegration-with-mapguide-tp3049773p4823732.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Re: re: google mapintegration with mapguide

2010-03-30 Thread Kori Maleski
To work around the Overview map projection issue do the following:
O
On line 110 of OverviewMap.js, add the following 2 lines:

this.mapObject.projection = this.getMap().oMapOL.getProjection()
this.mapObject.oLayerOL.projection =
this.getMap().oMapOL.getProjection()

This will alllow the overview to support whatever projection your main map
is in.


The overview map is only a single layer - the MapGuide layers being the
single layer.  It doesn't allow a MapGuide and Google layer at the same time
without some coding (someone correct me if I am off base).  I fiddled with
the code and got the Google layer in, but haven't got it working quite
properly.  Need more spare time.


Cheers,

Kori Maleski




On Tue, Mar 30, 2010 at 3:48 AM, Jose Cerrejon g...@mapas-sll.com wrote:


 I have the same issue now. Maybe is a bug in fussion.
 --
 View this message in context:
 http://n2.nabble.com/re-google-mapintegration-with-mapguide-tp3049773p4823732.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: re: google mapintegration with mapguide

2010-03-30 Thread Mark Pendergraft

I filed a ticket in the fusion trac for this and it was closed because the
latest trunk version could not reproduce it.  I haven't had time to test it
myself, but you might try downloading the latest version and see if that
fixes your problem.

-Mark P.
-- 
View this message in context: 
http://n2.nabble.com/re-google-mapintegration-with-mapguide-tp3049773p4825273.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: re: google mapintegration with mapguide

2010-03-30 Thread GordonL

Sweet fix Kori.  Works for MapGuide Enterprise 2010.
-- 
View this message in context: 
http://n2.nabble.com/re-google-mapintegration-with-mapguide-tp3049773p4826477.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Re: re: google mapintegration with mapguide

2010-03-30 Thread Kori Maleski
Thanks Gordon,

Mark, I am stuck on a specific version of the trunk at the moment so I can't
upgrade yet - so I am stuck with the workaround for a bit.

Cheers,

Kori Maleski


On Tue, Mar 30, 2010 at 11:57 AM, GordonL gordon.luck...@arrowgeomatics.com
 wrote:


 Sweet fix Kori.  Works for MapGuide Enterprise 2010.
 --
 View this message in context:
 http://n2.nabble.com/re-google-mapintegration-with-mapguide-tp3049773p4826477.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