Google strikes again (v3.1.2)

Next Topic
 
classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Google strikes again (v3.1.2)

andrewd
I'm not sure exactly when it started, but I'm seeing that Google shift happening again now on 3.1.2. It's fairly recent, I think - like within the last week or two. It sort of looks a little different than other times we've seen this because when you pan now the MGOS layers move but the google one stays mostly where it was. It's like they are moving at completely different scales. Anyone have a workaround/fix yet?

GEMTEC

Andrew DeMerchant

Fredericton, NB
tel: 506.453.1025 x163  /  toll-free: 1.877.243.6832
mobile: 506.470.2007 /  fax: 506.453.9470



_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

GordonL
Yep, just hit today.  Looking into it..




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

GordonL
The fix listed here where the function is removed from fusion.js:
http://osgeo-org.1560.x6.nabble.com/Google-Offset-in-MGOS-3-1-1-tp5385642p5396743.html

"Array.prototype.find = function(searchStr) {"

It just worked for me.

gordon




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

andrewd
I'm pretty sure I'd already done that - the word "find" isn't in my fusion.js anywhere, which leads me to believe that I already made that change a few months ago. If it's working for you, what's your GoogleScript format in the Fusion Extension section of the XML for the Fusion Layout? I had put a "v=3.34" at the end to make it work before, but that no longer works. Leaving the "v" param off also doesn't seem to work now. 

GEMTEC

Andrew DeMerchant

Fredericton, NB
tel: 506.453.1025 x163  /  toll-free: 1.877.243.6832
mobile: 506.470.2007 /  fax: 506.453.9470



From: mapguide-users <[hidden email]> on behalf of GordonL <[hidden email]>
Sent: Thursday, May 16, 2019 1:05 PM
To: [hidden email]
Subject: Re: [mapguide-users] Google strikes again (v3.1.2)
 
The fix listed here where the function is removed from fusion.js:
http://osgeo-org.1560.x6.nabble.com/Google-Offset-in-MGOS-3-1-1-tp5385642p5396743.html

"Array.prototype.find = function(searchStr) {"

It just worked for me.

gordon




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users

_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

kparker
Google no longer publishes version 3.34. Any version call will default back
to the weekly version. See here:
https://developers.google.com/maps/documentation/javascript/versions

I just applied the fix Gordon linked to my 3.1.1 install and it worked as
described.




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

andrewd
I'm on 3.1.2 though, which already has some sort of attempted Fusion / Google fix. 

GEMTEC

Andrew DeMerchant

Fredericton, NB
tel: 506.453.1025 x163  /  toll-free: 1.877.243.6832
mobile: 506.470.2007 /  fax: 506.453.9470



From: mapguide-users <[hidden email]> on behalf of kparker <[hidden email]>
Sent: Thursday, May 16, 2019 3:05 PM
To: [hidden email]
Subject: Re: [mapguide-users] Google strikes again (v3.1.2)
 
Google no longer publishes version 3.34. Any version call will default back
to the weekly version. See here:
https://developers.google.com/maps/documentation/javascript/versions

I just applied the fix Gordon linked to my 3.1.1 install and it worked as
described.




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users

_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

MHerel
Hi Guys,

I have not been able to replicate Andrew's issue on my 3.1.2 installation.
That doesn't seem too unusual to me as previously this seems to have hit
people at different times, so maybe Google rolls out its changes in some
staged manner.

That said, we would like to be on top of this so that we are ready when out
time comes.

I also see that the fusion.js for 3.1.2 does not have the code that is
suggested by Gordon, so that fix does not seem to be an option this time
around.

Good luck...



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

andrewd
I guess I'm stuck until it hits more people, then. Mike - are you using any sort of custom GoogleScript format in the Fusion XML (ie specifying a version), or just the API key?

GEMTEC

Andrew DeMerchant

Fredericton, NB
tel: 506.453.1025 x163  /  toll-free: 1.877.243.6832
mobile: 506.470.2007 /  fax: 506.453.9470



From: mapguide-users <[hidden email]> on behalf of MHerel <[hidden email]>
Sent: Thursday, May 16, 2019 4:06 PM
To: [hidden email]
Subject: Re: [mapguide-users] Google strikes again (v3.1.2)
 
Hi Guys,

I have not been able to replicate Andrew's issue on my 3.1.2 installation.
That doesn't seem too unusual to me as previously this seems to have hit
people at different times, so maybe Google rolls out its changes in some
staged manner.

That said, we would like to be on top of this so that we are ready when out
time comes.

I also see that the fusion.js for 3.1.2 does not have the code that is
suggested by Gordon, so that fix does not seem to be an option this time
around.

Good luck...



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users

_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

MHerel
Hi Andrew,

I have a couple of installations. One without a version number and the
others set to V=3.35.

I have tried setting to v 3.34 and 3.33 without any problems so far. Other
than that it the standard business level URL with "client="  etc



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

Kajar
I installed Mapguide 3.1.2 today after Google strike and now Google maps
working for me with or without  parameter v=3.35. At first it seemed not to
work, but after clearing browser cash it started to work.

Kajar



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

andrewd
Interesting - just a straight install with no fixes or workarounds to get it working? I'll see how things are after the weekend. I'm keeping my fingers crossed that it breaks for other people, but if not, I may try a reinstall or something. 

GEMTEC

Andrew DeMerchant

Fredericton, NB
tel: 506.453.1025 x163  /  toll-free: 1.877.243.6832
mobile: 506.470.2007 /  fax: 506.453.9470



From: mapguide-users <[hidden email]> on behalf of Kajar <[hidden email]>
Sent: Friday, May 17, 2019 3:50 PM
To: [hidden email]
Subject: Re: [mapguide-users] Google strikes again (v3.1.2)
 
I installed Mapguide 3.1.2 today after Google strike and now Google maps
working for me with or without  parameter v=3.35. At first it seemed not to
work, but after clearing browser cash it started to work.

Kajar



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users

_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

GordonL
Here is a work around (only for MapGuide 3.1.2)  but there is no guarantee
that it will last.

1. Remove your Google Maps Streets
2. Create a new XYZ layer
3. For Google Streets use:  
https://mt1.google.com/vt/lyrs=m&x=${x}&y=${y}&z=${z}
4. For Google Hybrid use:    
https://mt1.google.com/vt/lyrs=y&x=${x}&y=${y}&z=${z}
5. For Google Satellite use:  
https://mt1.google.com/vt/lyrs=s&x=${x}&y=${y}&z=${z}





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

andrewd
When I add that XYZ layer, I'm not seeing it show up in my list of external providers for some reason. I added a "generic xyz layer" to my map as a child map, and set the tile url. Am I missing a step?

GEMTEC

Andrew DeMerchant

Fredericton, NB
tel: 506.453.1025 x163  /  toll-free: 1.877.243.6832
mobile: 506.470.2007 /  fax: 506.453.9470



From: mapguide-users <[hidden email]> on behalf of GordonL <[hidden email]>
Sent: Wednesday, May 22, 2019 1:24 PM
To: [hidden email]
Subject: Re: [mapguide-users] Google strikes again (v3.1.2)
 
Here is a work around (only for MapGuide 3.1.2)  but there is no guarantee
that it will last.

1. Remove your Google Maps Streets
2. Create a new XYZ layer
3. For Google Streets use:  
<a href="https://mt1.google.com/vt/lyrs=m&amp;x=${x}&amp;y=${y}&amp;z=${z}">https://mt1.google.com/vt/lyrs=m&x=${x}&y=${y}&z=${z}
4. For Google Hybrid use:   
<a href="https://mt1.google.com/vt/lyrs=y&amp;x=${x}&amp;y=${y}&amp;z=${z}">https://mt1.google.com/vt/lyrs=y&x=${x}&y=${y}&z=${z}
5. For Google Satellite use: 
<a href="https://mt1.google.com/vt/lyrs=s&amp;x=${x}&amp;y=${y}&amp;z=${z}">https://mt1.google.com/vt/lyrs=s&x=${x}&y=${y}&z=${z}





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users

_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

GordonL
Here is what I have with 3.1.2 (note 3.1.1 does not work - and you must
uninstall 3.1.1 before installing 3.1.2)
<http://osgeo-org.1560.x6.nabble.com/file/t195347/google_xyz.jpg>



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

andrewd
That's pretty much what I've got: 



But the only options that appear in the Fusion layout under "external providers" drop down are the VirtualEarth one, and none. 

GEMTEC

Andrew DeMerchant

Fredericton, NB
tel: 506.453.1025 x163  /  toll-free: 1.877.243.6832
mobile: 506.470.2007 /  fax: 506.453.9470



From: mapguide-users <[hidden email]> on behalf of GordonL <[hidden email]>
Sent: Wednesday, May 22, 2019 4:07 PM
To: [hidden email]
Subject: Re: [mapguide-users] Google strikes again (v3.1.2)
 
Here is what I have with 3.1.2 (note 3.1.1 does not work - and you must
uninstall 3.1.1 before installing 3.1.2)
<http://osgeo-org.1560.x6.nabble.com/file/t195347/google_xyz.jpg>



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users

_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

GordonL
look closer at your URL..i think it has weird symbols...





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

andrewd
Ya, it's url encoded for some reason - I've tried both ways, though. Tried all the different Fusion templates too...no luck. I can add any other child map and it shows up in my list - just not the xyz, for some reason. Even if I add a tile from a tile set definition (though the definition is empty - I have no local tiles), it doesn't show in the list. 

GEMTEC

Andrew DeMerchant

Fredericton, NB
tel: 506.453.1025 x163  /  toll-free: 1.877.243.6832
mobile: 506.470.2007 /  fax: 506.453.9470



From: mapguide-users <[hidden email]> on behalf of GordonL <[hidden email]>
Sent: Wednesday, May 22, 2019 4:43 PM
To: [hidden email]
Subject: Re: [mapguide-users] Google strikes again (v3.1.2)
 
look closer at your URL..i think it has weird symbols...





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users

_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

yuvalkimel
In reply to this post by andrewd
Gordon hi.
I tried you fix for the google problem/ it worked on google background but
now i have another problem I cannot select objects on the map. the error
massage in the developer tool is


<html>
<head>
<title>MgClassNotFoundException</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
The specified class was not found.

The specified class was not found.

- MgRenderingServiceHandler.ProcessOperation() line 83 file
c:\working\build_area\mapguide\2.6.1\x64\mgdev\server\src\services\rendering\RenderingServiceHandler.cpp
- MgOpQueryFeatures.Execute() line 125 file
c:\working\build_area\mapguide\2.6.1\x64\mgdev\server\src\services\rendering\OpQueryFeatures.cpp
- MgServerRenderingService.QueryFeatures() line 853 file
c:\working\build_area\mapguide\2.6.1\x64\mgdev\server\src\services\rendering\ServerRenderingService.cpp
- MgServerRenderingService.RenderForSelection() line 1573 file
c:\working\build_area\mapguide\2.6.1\x64\mgdev\server\src\services\rendering\ServerRenderingService.cpp
- MgServerDescribeSchema.GetClassDefinition() line 1066 file
c:\working\build_area\mapguide\2.6.1\x64\mgdev\server\src\services\feature\ServerDescribeSchema.cpp

</body>
</html>
i am using mg 2.6.
Any help will be apprichiated
Thanks
yuval






--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

GordonL
Like the renaming the FIND function above, here is an alternative fix:
In the C:\Program Files\OSGeo\MapGuide\Web\www\fusion\lib\fusionSF.js

First step:
Around line 132537
Rename the Array to find2



Second Step:
Also in FusionSF.js around line 132427
Rename to find2






--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: Google strikes again (v3.1.2)

Jackie Ng
In reply to this post by GordonL
I can't endorse this "solution" with anything other than "use at your own
(legal) risk".

Direct access of Google's tiles without going through their JS API is a
major TOS no-no last time I checked.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
12