In my drupal site, I have installed the gmap module. But that is in version 2.115. Now I got a mail from google that update the google API version. I have generated the API key version 3. But no idea about implementing them to the module files.
drupal_set_html_head(' $query))) .'" type="text/javascript">');
This I changed to
drupal_set_html_head('');
Also in gmap.js
obj.map = new GMap2(elem, obj.opts); changed to obj.map = new google.maps.Map(elem, obj.opts);
But after adding this, Javascript is required to view this map. is showing.
Please help me
See this thread on d.org. There are several patches and solutions.
Related
I am using the Google App Script java API to deploy the code. I am performing the following steps:
1. Update the latest code
Content content = new Content();
content.setFiles(files);
Content updatedContent = scriptService.projects().updateContent(scriptId, content).execute();
2. Create a new version
Version version = new Version();
version.setDescription("test create version");
Version createdVersion = scriptService.projects().versions().create(scriptId, version).execute();
3. Deploy the latest version
DeploymentConfig deploymentConfig = new DeploymentConfig();
deploymentConfig.setDescription("test deployment");
deploymentConfig.setVersionNumber(createdVersion.getVersionNumber());
deploymentConfig.setManifestFileName("appsscript");
Deployment deploymentCreated = scriptService.projects().deployments().create(scriptId, deploymentConfig).execute();
When I log into script.google.com I am able to view the latest version that I created. It shows the status as deployed. In the script editor, I am able to view the latest code as well. Now, when I invoke the apps script the requests are still handled by the older version. Could somebody let me know if there is something wrong with the way I am using the API?
try to set deployment version (greater then old one).
Version version = new Version();
version.setDescription("test create version");
version.setVersionNumber(3);
Version createdVersion = scriptService.projects().versions().create(scriptId, version).execute();
delete the deployment when it's no longed needed
service.projects().deployments()
.delete(scriptId, deploymentCreated.getDeploymentId()).execute();
I need to set the night mode Google maps, which will work automatically using the sensor in the phone and manual using the switch. I need some example or documentation
Install the Xamarin.Forms.GoogleMaps Nuget Package (source code available on GitHub)
which has already implemented it on Xamarin.Forms.
You can refer to the MapStylePage sample available here which basically explains you how to create original map styles using MapStyle With Google. You can use the wizard, select the Night theme from there and get the corresponding json style, which you'll use on your Xamarin app.
int currentNightMode = getResources().getConfiguration().uiMode
& Configuration.UI_MODE_NIGHT_MAS
switch (currentNightMode) {
case Configuration.UI_MODE_NIGHT_NO:
// Night mode is not active, we're in day time
case Configuration.UI_MODE_NIGHT_YES:
// Night mode is active, we're at night!
case Configuration.UI_MODE_NIGHT_UNDEFINED:
// We don't know what mode we're in, assume notnight
}
I am writing an app for wordpress for iOS (swift).
First of all I tried to use SMIO Wordpress API Complete Solution (wordpress json plugin codecanyon.net/item/smio-wordpress-api-complete-solution/6448487)
Works well, but have some bugs. Then I found Wp REST Api (wordpress.org/support/plugin/json-rest-api), which have more developer history. So, I decided to use to use the second plugin.
Problem:
SMIO Wordpress API Complete Solution load last 10 posts in 5 sec,
Wp REST Api - 20-30 sec.
Swift code: let data = NSData(contentsOfURL: self.url!)!
Why?
I use wp super cache (https://wordpress.org/plugins/wp-super-cache/). Default settings.
I'm new Windows Phone Universal App, I need to implement bar/pie chart.
Tried many dll, Metro UI, WinRtXamlToolKit and WinRtXamlToolKit.Controls.DataVisualization
These dll are not working.
Give me good idea to do this on Windows Phone Universal App. How to do chart programmatically.
Thanks
I believe the Telerik has some Chart libraries that cost money ( can't link though as stackoverflow only permits me to post 2 links ( less than 10 rep) ). I have not used it and it is in Beta version at the moment. Google "Rad Chart windows universal apps" and you can read about it.
When I have needed charts for universal apps i have used the Google Chart Tools. You can use https://developers.google.com/chart/image/ even though Google is not developing on it anymore. It is is freakingly easy to use if you do not want to spend time drawing your own Charts. With the API you can request a chart just through a http request. You can setup almost everything and it's really easy to use thanks to the well documented API.
Here is an example of a bar chart i made using the API.
http://chart.googleapis.com/chart?chtt=Karakterfordeling&cht=bvg&chof=png&chs=300x300&chxt=x,y&chco=0076A3&chf=bg,s,65432100&hxr=0,0,50&chxl=0:|2|4|7|10|12&chxr=1,0,20&chbh=40,0,10&chd=t:2,60,70,10,90
All the arguments are passed through the http request and you can set your Chart up using the Live Chart Playground:
These are the arguments for the http request posted above. You can use the Live Chart Playground to set up parameters like below.
chtt=Karakterfordeling
cht=bvg
chof=png
chs=300x300
chxt=x,y
chco=0076A3
chf=bg,s,65432100
hxr=0,0,50
chxl=0:
2
4
7
10
12
chxr=1,0,20
chbh=40,0,10
chd=t:2,60,70,10,90
In code you set the http string as your ImageSource. You can manipulate the http string in your code and adapt the chart parameters/data if needed. I would recommend using a Converter that you bind to from you XAML. Pass your data to the converter and let it return a ImageSource with the http request. If you are new to Converters you can probably find a few posts about it here on stackoverflow.
Don't use DLLs grab the files into your project.
Add WinRTXamlToolkit.Controls.DataVisualization.csproj to your solution and reference it in the main project and add this to your page.
xmlns:charting="using:WinRTXamlToolkit.Controls.DataVisualization.Charting"
xmlns:datavis="using:WinRTXamlToolkit.Controls.DataVisualization"
Look at the samples project http://winrtxamltoolkit.codeplex.com
Unfortunately, winrtxamltoolkit is only for WinRT; VS 2013 doesn't allow adding of project references of that kind to WinPhone projects.
Hi I am Using Google Map Version 2 in my asp.net web application. now my problem is the in map area GMAPEZ is displaying and nothing else and i have no error in my XML File with valid Google Map key. What could be the problem
You declare your map type as G_MAP_TYPE on line 766 of gmapez-2.js.
var mapType = G_MAP_TYPE;
You probably want to do one of the standard map types:
https://developers.google.com/maps/documentation/javascript/v2/introduction#CommonMapTypes
I found this in a few seconds using the Chrome Developer Tools. Here's a good reference so you can do the same:
http://www.youtube.com/watch?feature=player_embedded&v=nb4gvrNrDWw