Google Maps / Geocoding

466 views
Skip to first unread message

issin...@gmail.com

unread,
Dec 28, 2016, 5:15:32 AM12/28/16
to Fujitsu RunMyProcess Developer Community
Did someone experience new Google Maps / Geocoding API v3 ?

I encounter some issue in JS librairies implementation.
Old implementation in JavaScript tab works fine and my Google maps appears (but with a lot of warning messages in my console):

JS librairies:
https://www.google.com/jsapi
https://maps.google.com/maps?file=api&v=2&sensor=false&key=YOUR_API_KEY

Warnings:
Google Maps API warning: NoApiKeys...
Control is no longer supported in the Google Maps...
Map.addControl is no longer supported in the Google Maps...


Now, if I want my console to be clean, I should use new Google APIs like:
https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY

But a minimalist program shows nothing on web interface and console !!
Typically I use an HTML widget with:
<div id="mymap"></div>

and try to show an empty map on this div, with no result !!

Any advice shoubd be appreciated ?$

Thanks

Pankaj Kumar

unread,
Dec 28, 2016, 6:01:14 AM12/28/16
to Fujitsu RunMyProcess Developer Community
Hi,

From warning it seems you have not registered your API key to google either as "Standard API users" or "Premium Plan users".  Once you get the key and use the correct scope you should be able to show the map on web page.

Please share the code you are using for the map and error details in order to suggest you more on this.

Please find below Google Map API link for reference:-

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/e240b0ca-696f-43a2-97df-d333752aee2d%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Thierry ISSINDOU

unread,
Dec 28, 2016, 2:23:45 PM12/28/16
to suppor...@runmyprocess.com
Hi,

thanks for your help.
Here are more details about my issue:

My API key is well declared on API Manager console :
Inline images 1


My project JavaScript tab:
Inline images 3


My HTML widget:
<div id="map"></div>
 
My JS script:
setTimeout(function() { 
initMap();
 
        function initMap() {
            var map = new google.maps.Map(document.getElementById('map'), {
                center: {lat: 48.913454, lng: 2.304777},
                scrollwheel: false,
                zoom: 8
            });
  }
}, 2000);

So, with this simple program, I have no message (then no error) on my console !!
Any idea ?

Thks
Thierry

You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/l0GeQv1qm94/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum+unsubscribe@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

Pankaj Kumar

unread,
Jan 1, 2017, 11:40:28 AM1/1/17
to Fujitsu RunMyProcess Developer Community

Hi,

Please set the width and height of the div tag in html widget
<div align="left" id="pan_map" style="width:500px; height: 300px; margin-top: 10px;" ></div>

Also instead of set-timeout, you can also use the "ready event"

Sample code:-

 function initMap() {
        var uluru = {lat: -25.363, lng: 131.044};
        var map = new google.maps.Map(document.getElementById('pan_map'), {
          zoom: 4,
          center: uluru
        });
        var marker = new google.maps.Marker({
          position: uluru,
          map: map
        });
      }


$(document).ready(function() {
            initMap();
            });



Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support




On Fri, Dec 30, 2016 at 3:38 PM, Thierry ISSINDOU <issin...@gmail.com> wrote:
Hi,

FYI as I don't know if your receive my previous message.

Thanks
Thierry ISSINDOU

issin...@gmail.com

unread,
Jan 4, 2017, 6:39:58 PM1/4/17
to Fujitsu RunMyProcess Developer Community, issin...@gmail.com

_____________________________________________________________________

OK after many & many tests, it works finally.

My different issues (chart dimensions not respected, grey google maps, no loading...) are all coming from the use of different pan tabs and my JS script load charts / maps in advance in all tabs (2-3 tabs with 2 sub-levels :)). To fix these issues, I use the post load script option attached to the target component.

Thanks for your help

Reply all
Reply to author
Forward
0 new messages