EXTJS 4.2 Google Maps API Issues - google-maps-api-3

I am using V3 API for Google maps and every time I run my application in Chrome (application works in Firefox and IE9/10)
I get an error in the console - Cannot read property 'ROADMAP' of undefined.
On inspection of google.maps object in debugger I noticed that MapTypeId is not defined in the object google.maps. Also my fellow developers can run the same application in Chrome on their machines.
I was wondering if anybody had the same problem or can recommend a solution.

Related

Clearing Site Data Breaks Mapping - IndexedDB isn't handling a closed connection

Repro Steps:
Load a Map
In Chrome dev tools, visit the Application tab and click "Clear site data"
Return to your map and scroll or pan
Exception thrown and map becomes unresponsive to input
Failed to execute 'transaction' on 'IDBDatabase'...
Looks like the team isn't catching errors in IndexedDB. As a consumer of the library, we can't reliably catch this error either because JavaScript global error handlers don't get error information for scripts loaded from another domain.
Please use Maps API for JavaScript 3.1 instead of 3.0. The new version 3.1 doesn't have this flaw.
See please on Migration to 3.1 and Examples

sapui5 application is not open inside portal iView in IE11 default browser mode 5

I created an application using sapui5.I am using sapui5 library 1.40 in server NW7.4 sp6. This application working fine in chrome.
If I open this application in new Tab of IE11. It's working fine but when I am trying to call inside Portal iView. sapui5 library is not loaded, due to this my application is giving error "sap is undefined".
Please find attached document of screenshots for the reference. I have attached console log of the browser as well.
Thanks in advance
The Portal isn't able to run SAPUI5 iView that don't run with the standards mode. SAP provides a lot of documentation through SAP note and SDN blogs about that but the one that could help you the most might be the following:
https://blogs.sap.com/2014/09/03/ie-and-portal-standardsquirks-mode-evolution-or-love-hate-relationships/
To sum it up, your SAPUI5 iView must run with NavMode 10 ("Standard headerless framework page"), this should enable edge document mode, be careful that the entreprise mode for IE11 is not activated otherwise edge mode won't be usable.
Hope this will help you.

How can I resolve a Google Maps API key Issue?

I have been having trouble with the Google Maps API for one week now and I'm unable to resolve it :(
I have a site that has been using the Google Maps v3 for several weeks now without any issues. But suddenly, it starts complaining that: Google has deactivated the use of the Google Maps API for this application, because the offered key is not a valid Google-API-Key or the use of Google Maps v3 is not allowed for this site.
I double checked everything, including: trying a new key; checking domain restrictions and activation in the API-console - Everything is alright.
I'm using simple authentication. Every help would be highly appreciated :)
The Version Handling Has Changed. This Code Is No Longer Valid (see the code below in the update):
One thing you can do immediately to bypass such problems: explicitly set the version of the API you are using to 3.6:
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?v=3.6&sensor=false">
</script>
Keys were introduced in 3.7, so you do not get any warnings if you set your version to: 3.6.
Important Update That Makes the JavaScript Code Above Invalid:
Setting the version to 3.6 will no longer function as a work-around for this, because you are no longer able to request version 3.6. You should not use the code above, but should use the following code to load the Google Maps JavaScript 3.8 library:
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?v=3.8&sensor=false">
</script>
Google recently announced a version update; here is the content of the Google announcement email:
We recently released a new minor version of the Google Maps API. This
means that the versions are now:
3.9: Development/Nightly
3.8: Feature Stable
3.7: Frozen
3.6 has been removed: if you request it you will receive 3.7.
In this latest release of 3.9, we've added:
* Country restriction for Autocomplete (AutocompleteOptions?.componentRestrictions)
* Regions and Cities type filters
You will also get all the features of 3.8 (now Feature Stable),
including:
WeatherLayer and CloudLayer
Click-to-go/Click-to-zoom in Street View
orderBy, limit and offset for FusionTablesLayer
utc_offset and opening_hours in PlaceResult
google.maps.geometry.poly.containsLocation() and isLocationOnEdge()
DemographicsLayer (Maps for Business only)

How can we get google map api key for flex application?

How can we get google map api key for flex application?
I am using flex web application which display google maps, it is working fine in local host
but when i deploy in server,application gives error.
**
Initialization failed: please check the API key, swf location, version
and network availability.
**
How can i resolve this problem, plez suggest me.
Thanks in advance
First, understand that the Flash Maps API is deprecated, and could be turned off in less than 2 years. So if you're doing development on a project that is going to stick around, you should use the JavaScript Maps API.
If this is an existing application and you moved domain or for some reason the key isn't working, here are the directions to request a key:
https://developers.google.com/maps/documentation/flash/intro#API_Key

Embedding a Flex Google Map in a WordPress Page

I'm embedding a Flex app in a WordPress page using Matt Carpenter's great plugin. It's a map created using Google Maps' Flash API.
I'm getting an initialization failure. Is that because the API key is in the Flex app and
Google can't "see" it?
This is the error that I'm getting:
Initialization failed: please check
the API key, swf location, version and
network availability.
Or do I have something else going on? Any suggestions?
Generally, the API key can only be used on 1 domain. Try creating a new key that's specifically to be used for online files. Use the other key you already have for offline testing.
Lewis

Resources