Flutter web: google map - google-maps

I want to display bunch of locations on google map on flutter web.
I've done the same for android using the plug-in: google_maps_flutter
For the web Found the plug-in:
google_maps_flutter_web
But the example in the plug-in description is not useful.
My code for the android is not even compiling for the google_maps_flutter_web when I include
import 'package:google_maps_flutter_web/google_maps_flutter_web.dart';
Without normal include it is giving run time error
import 'package:google_maps_flutter_web/google_maps_flutter.dart';
Can someone please point to some code example to display list of locations on google map on flutter web?

I was getting run time error for my google_maps_flutter
The following UnimplementedError was thrown building GoogleMap(dirty,
dependencies: [Directionality], state: _GoogleMapState#5b0ef):
buildView() has not been implemented.
I found out the reason. The root cause of the error was version of my imported plug-in google_maps_flutter was older than the google_maps_flutter_web plug-in.
When I set the version of both these plug-ins to the latest version the code started working.

Related

Use Forge Viewer SceneBuilder Extension to report an error "addMesh()" is not a function

I saw a case of using SceneBuilder Extension on Forge COMMUNITY BLOG here.
But when I tried to implement this case, I ran into a trouble.
I loaded SimpleCustomGeometry Extension into my program. When I run the program, the following error occurred:
Unhandled Rejection (TypeError): _this2.modelBuilder.addMesh is not a function.
Can anyone help me? thank you very much!
Here are some of my operating environments:
The version of SceneBuilder Extension is LMV v7.3.0
The computer system used is Windows 10
The source code of the SimpleCustomGeometryExt doesn't seem to contain any _this2. Have you modified the extension code in any way? I have just tried loading the extension in a simple Forge app myself, and there are no issues.
Also, feel free to check out this blog post to get more details and code snippets related to the SceneBuilder extension: https://forge.autodesk.com/blog/custom-models-forge-viewer.

No implementation found for method camera#animate on channel Flutter

No implementation found for method camera#animate on channel plugins.flutter.io/google_maps_1 and
plugins.flutter.io/google_maps_0 in flutter
I'm reviewing a project in flutter integrating google maps with firebase, when loading the map everything works fine, although a little slow but when closing the activity I get the errors mentioned above. Besides that the device gets very hot, is this normal?
"No implementation found for method" errors from plugins used are usually caused by either outdated plugin versions or the downloaded plugin not building properly. Running flutter clean then flutter pub get should help generate build files again. If that doesn't work, you can try updating the plugin's version.

Cordova File Download and open it using cordova

Please forgive my ignorance, Any advice/directional assistance would be greatly appreciated.
I have a small app that reads data from an API with json requests.
One of the actions the app needs to do is to download a given PDF and open it either in the app, or in the OS default viewer.
I have followed several guides, but I think I am not including all needed files or something. The guides don't speak of including files of any type, but I still get errors.
In this link for example I followed the steps, but I am getting an error when I add these two lines in to the script at the bottom of the page:
var fileTransfer = new FileTransfer();
console.log(FileTransfer);
When running that I get the error Uncaught ReferenceError: FileTransfer is not defined at employee_documents.html:102
I am sure that either i am not including the files correctly in netbeans or I am missing something simple...
Any advise would be greatly appreciated.
To answer the question specifically. In order to solve the error, you need to run the cordova app using the CLI. In that way, the plugins installed from your cordova will be used otherwise if you're only running it via refresh or something similar it will produce an error like this.
In other words, type this command in your CLI:
cordova run browser
You can change this to your preferred platform (android, ios)

Getting exception "Unknown Error" after bundling the application(exe)

We are using the evaluation version of JXBrowser for some charting application. We wanted to showcase a demo to our client just to check the overall performance of charts with JXBrowser. But we encountered some unexpected issue while we were trying to build an "EXE".
The issue:
We created a build and the passed the URL from the classpath(webView.getBrowser().loadURL(getClass().getResource("/chartiq/stx-advanced.html").toExternalForm());); the build successfully generated and if we run the build we are getting exception "Unknown Error" but its working fine in the IDE(Eclipse).
Afterwards, we tried to host the html pages at some server and we were able to get the html rendered in the application.
Question:
1. Is the aforementioned issue related to evaluation version?
2. If above question is not the case, is there any fix for that? As we have crawled the web and find nothing related to this.
For the reference I attached the screen shot showing the full exception stacktrace.
Any help will be appreciated.
Thanks,
Nikhil
The reason of this issue is that JxBrowser doesn't support loading resources from JAR files. Chromium engine used in JxBrowser cannot load the /chartiq/stx-advanced.html file located inside JAR archive. You need to extract the file and load the extracted file.
FYI: we have already started working on the functionality that allows loading HTML files and other resources from JAR archives. An updated build with this functionality will be available in December.

Google Drive iOS Configuration - Stuck

I am following the iOS QuickStart for the Google Drive iOS SDK and I am stuck at step 3-d. "Select the "GTL" project's "GTLTouchStaticLib" target"
When I select the GTLCore project and view the targets, the GTLTouchStaticLib target is not listed, as shown, so I cannot proceed. Please advise...
I did some research regarding GTL library and found out that both GTMOAuth2Authentication.h and GTLService.h file you have to change '#define GTM_USE_SESSION_FETCHER 1' to '#define GTM_USE_SESSION_FETCHER 0'
Here's where I found my answer: GTMSessionFetcher.h file not found upgrading app to latest google-api-objectivec-client
Note:
This may not be a google-drive-sdk issue, It can be an issue with xcode library handling, cocoapods or library management of the project wasn't configured properly.