myCenter = brand-new google.maps.LatLng(0.5719899, 124.3117468);mapProp = center: myCenter, zoom: 15, scrollwheel: false, draggable: true, mapTypeId: google.maps.MapTypeId.HYBRID ;map = new google.maps.Map(document.getElementById("LiveTrackingMap"), mapProp);marker = brand-new google.maps.Marker( position: myCenter );

that code efficiently working, however when I press ctrl + shift + ns then goto console tab i acquired this error :

Uncaught ReferenceError: google is not definedat HTMLDocument. ((index):338)at j (jquery-2.1.4.min.js:2)at Object.fireWith (jquery-2.1.4.min.js:2)at Function.ready (jquery-2.1.4.min.js:2)at HTMLDocument.I (jquery-2.1.4.min.js:2)

i get in to ((index):338) and also appear my password is error :

myCenter = brand-new google.maps.LatLng(0.5719899, 124.3117468);.

You are watching: Uncaught referenceerror: google is not defined

So, what need to i do for fix that ??

Regards


*
mgebhard

All-Star


54641 Points

24475 Posts


Re: Uncaught ReferenceError: google is no defined

Aug 30, 2019 01:28 PM|mgebhard|LINK
Usually this kind of error is as result of forgetting to recommendation a JavaScript library or make the efforts to accessibility a library object before the library has been invited in the browser.

Indra JRNSo, what should i perform for resolve that ??

I recommend going v the Google code samples and also tutorials.


*
Fei Han - MS...

All-Star


40565 Points

6233 Posts

Microsoft


Re: Uncaught ReferenceError: google is not defined

Sep 02, 2019 03:28 AM|Fei Han - MSFT|LINK
HiIndra JRN,

Indra JRNUncaught ReferenceError: google is not defined

Please examine if you have added the referral torequired Google Maps JavaScript Library, favor below. And please use browser f12 Network device to inspect if the requiredJavaScript Libraries are loaded.

Besides, please describe the followingdocumentation to quickly start exploring and developing applications v the Maps JavaScript API.

See more: Town Fair Tire Salem New Hampshire, Town Fair Tire Store Located In Salem, Nh

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

With Regards,

Fei Han


.NET trident-gaming.net are relocating to a brand-new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get connected today.
‹ previous Thread|Next subject ›

This website is managed for Microsoft by Neudesic, LLC. | ©2021Microsoft. All civil liberties reserved.