Google Map

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Google Map

pcardinal
Hi,

It is impossible to use Google Maps with MGOS 3.1 since two or three days?
Any idea?



Error Details:Exception occurred in AJAX callback.
Message: L’objet ne gère pas la propriété ou la méthode « test »
Location: undefined (undefined)
Inner Stack: TypeError: L’objet ne gère pas la propriété ou la méthode «
test »
   at Array.prototype.find
(http://localhost/mapguide/fusion/lib/fusionSF-compressed.js:3109:92)
   at Wc.prototype.addListener
(http://maps.google.com/maps/api/js?sensor=false&key=xxxx.......



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

Jackie Ng
Reply | Threaded
Open this post in threaded view
|

Re: Google Map

Kajar
I'm using Maguide 3.1 version and today seems Google maps stopped working,
error related to maps api.
Previously I  have changed one row in layout xml like Gordon suggested:
<GoogleScript>http://maps.google.com/maps/api/js?v=3.3&amp;sensor=true&amp;client=</GoogleScript>
But this is not helping.

Does it means that we cant use Google map layers anymore with Mapguide?

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 Map

Hans Milling
Google announced that:
1. From June 11 you cannot use google maps any more unless a credit card is
attached to your google account.
2. You cannot use google maps without a valid API key generated by your
google account for the specific site.

Google maps is now way more expensive than before. I recommend you check how
many "loads" yoru sites have before you give them your credit card
information.

You can see the new price model here:
https://venturebeat.com/2018/05/02/google-maps-platform-arrives-with-pay-as-you-go-billing-free-support-and-cloud-requirement-starting-june-11/

I suspect this is why your google maps stopped working.

Best regards
  Hans Milling...



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

RenoSun
In reply to this post by pcardinal
Yeah, you will have to subscribe, and set up your/your company credit card
information with Google by using Google Console in order to use any Google
Map related APIs like what Hans Milling posted.







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

Jackie Ng
In reply to this post by Hans Milling
Is there any practical reason to support Google Maps in Fusion now in light
of this announcement?

- 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
Reply | Threaded
Open this post in threaded view
|

Re: Google Map

RenoSun
Hi Jackie,

Here are my practical reasons for keeping Google Maps in Fusion:

1. Google Maps usually provide more comprehensive, better
street/POI/imagery/Street View/3D Mesh in most area including rural,
non-popular cities compared to other map APIs.

2. Many local/global government will submit their latest aerial/satellite
imagery to Google Maps team since they has a platform for the users desire
to submit their high resolution/accuracy imagery. The reason for most
government/non-government organizations submitting their latest imagery is
to benefit their citizens/visitors/tourism etc. I tried to contact Bing Map,
but they don’t even have a built platform for me to submit the new aerial
imagery to them…yet
https://support.google.com/mapcontentpartners/answer/144284

3. For the mapguide users who are willing to pay/potentially will pay for
the Google Maps API

4. Google Maps Street View

5. It seems just a trend to me for the web map/non-map APIs to ask their
user to sign up an account with payment info for using their services. Then,
they may only charge the users who are using over certain amount requests,
or for certain purposes/types of organization etc.
• Cesium.js https://cesium.com/pricing/ 
• Thunderforest https://www.thunderforest.com/pricing/ 
• Mapbox https://www.mapbox.com/pricing/ 

I am hoping that we may keep Google Maps API in Fusion. Also, I am even
hoping mapguide Fusion may allow users to use their paid/free web XYZ tiled
imagery from other map APIs/web tiled services such as Mapbox
(https://www.mapbox.com/), Thunderforest (https://www.thunderforest.com/),
Digital Globe (http://www.digitalglobe.com/platforms/mapsapi), mapguide-rest
xyz tiles from different servers, ESRI ArcGIS tiled map service, and Here
Map Tiled API etc.
  <http://osgeo-org.1560.x6.nabble.com/file/t368332/Capture.png>




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

Kajar
In reply to this post by Jackie Ng
It would be nice to have the Google Maps support.
It actually the fastest map background to have.
So for those users who willing to pay, why not to have maps support.

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 Map

kparker
In reply to this post by Hans Milling
After generating an API key from Google linked to an authorized billing
account, how would I authorize MapGuide to use said API key? The old AIMS
Studio accepted a ClientID generated by Google but it appears that Google
Cloud Platform does not give these out anymore. Is there a way to apply the
API key using Maestro? Or will it require it be done programatically? Thanks



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

RenoSun
Step 1: Using Maestro
Step 2: Double click on your Fusion/Flexible layout (using Google Maps base
map)
Step 3: Click Edit as XML button
Step 4: Scroll to the button of the XML, and find XML tag called
"<GoogleScript>"
Step 5: It should be looks like following XML...

...
<Extension>
<GoogleScript>http://maps.google.com/maps/api/js?key=YOUR_GOOGLE_MAP_API_KEY&amp;v=3.exp&amp;use_slippy=true</GoogleScript>  
<OpenStreetMapScript>http://www.openstreetmap.org/openlayers/OpenStreetMap.js</OpenStreetMapScript>
<StamenScript>http://maps.stamen.com/js/tile.stamen.js?v1.3.0</StamenScript>
<BingMapKey>YOUR_BING_MAP_API_KEY</BingMapKey>
</Extension>
...



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

kparker
Thank you very much, that worked.



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

CBeuk
In reply to this post by RenoSun
Hi Everyone,

I made similar changes to my Fusion Maps some time ago and it worked like a
charm.
However starting about 3 weeks ago the "a.test is not a function" error
message resurfaced.
I made the change over to Google Maps Javascript API "Pay for Maps", got my
API Key regenerated and it is working in all my other Websites.
It is just Mapguide that I can't get going again.

I Upgraded my Mapguide to 3.1.1.9378 and Maestro to 6.0.0.270 just to make
sure it is not a version specific problem but still nothing.
My XML entry as per RenoSun's suggestion:
<GoogleScript>http://maps.google.com/maps/api/js?v=3.35&amp;use_slippy=true&amp;key=XXX</GoogleScript>

Have any of experienced the same recently?

PS: I would really love continued support for Google API access in Fusion. I
just find it faster and has a wider variety of accurate tools.

Thanks in advance.



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

Kajar
Yes "a.test is not a function" occures for me using 3.1.1 build of
fusion(with google maps api patch).
I got google maps working only with latest test build fusion, but only
through php and not  index.html

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 Map

RenoSun
In reply to this post by CBeuk
Hi CBeuk,

Google Maps API has changed the way that they want the user to use their
service with different URL parameters.

https://developers.google.com/maps/documentation/javascript/versions

I am using the Autodesk Infrastructure Map Server 2017, and mine is still
working...
http://maps.google.com/maps/api/js?key=YOURKEY&amp;v=weekly&amp;use_slippy=true

Please see "MapGuide 3.1.1 Release Notes" --> "Fusion with Google Maps fix"
see this will fix your problem :)
https://trac.osgeo.org/mapguide/wiki/Release/3.1.1/Notes



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

Kajar
Actually I got it working today, I cant understand why it was not working for
me previously.
I tried it with 3.1.1(with google patch) and script tag in my xml is
defined:
Script>https://maps.googleapis.com/maps/api/js?key=mykey</GoogleScript>

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 Map

CBeuk
Now I just feel stupid. I had seen the suggested patch and assumed it was included in the 3.1.1 build.
I applied the Google Fix patch and yes, it works 100%.
Thanks for the PEBKAC error identification.

CBeuk

-----Original Message-----
From: mapguide-users <[hidden email]> On Behalf Of Kajar
Sent: 12 September 2018 06:13 PM
To: [hidden email]
Subject: Re: [mapguide-users] Google Map

Actually I got it working today, I cant understand why it was not working for me previously.
I tried it with 3.1.1(with google patch) and script tag in my xml is
defined:
Script>https://maps.googleapis.com/maps/api/js?key=mykey</GoogleScript>

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