Conversion of Google Map webpart into Bing Map webpart - c#

here is the Google version
I did almost 2 days research to find something like this for Bing Maps, but no luck, Now I am looking to change this Google Map project into Bing Map project, I have no Clue.
Can someone Explain the code of this project and the changes I need to make it Pick up Bing Maps.
I know I need to Change GoogleMap.js to BingMap.js, I can get this script from Bing SDK, but i can't figure out what else changes i will have to make.
Here is the Bing Map Project, but its getting Image of Map and not actually using Maps API

Find what I wanted, and here is the Link,
enter link description here
and thanks People for your Negative Comments !
One thing I would like to mention that, I went through Apress Book "Sharepoint 2010 as development platform" which shows you how to deploy a bing map as webpart but they missed the most Important bit, In there Code (got from there website) they are not registering the script using "ClientScriptManager" which is breaking javascript and when you use that webpart it doesn't let you use the ribbon Controls, So if anyone had issues (as i seen many posts people having same problem) Just add the following before your java script (for sharepoint 2010 webparts)
System.Web.UI.ClientScriptManager csm = Page.ClientScript;
StringBuilder builder = new StringBuilder();
string SCRIPT_NAME = "MapScript" + this.ID;
{// your java script}
csm.RegisterClientScriptBlock(this.GetType(), SCRIPT_NAME, builder.ToString(), false);
If I said anything wrong please correct me, Cheers (and if my answer helped you rate it :))

Related

Finding likely locations in Xamarin using google maps API

I am working on a Xamarin iOS project trying to display a list of the most likely locations based on the user's GPS coordinates using either the Place Picker or GMSPlacePickerViewController from the google maps API, as shown in this Swift tutorial.
However I can't seem to find any decent tutorials using C#. I don't want to display the map to users I simply want to retrieve the list of most likely locations based on the coordinates.
Any guidance would be greatly appreciated as I'm at a bit of a loss about how to use the google maps API to achieve this.
Okay answering this for anyone coming after me and trying to do something similar.After lots of searching I have realised it is possible to use the nearbySearch method from the Google Places API Web Service to retrieve a list of addresses near particular coordinates within a specific radius (in metres). You can optionally specify the type of addresses you are searching for, e.g. Restaurants.
Not sure how I missed this but there is a Place Search demo at the bottom of this page;
https://developers.google.com/places/web-service/

How to get a JSON file (or something similar) with lightning data from http://en.blitzortung.org?

I am currently working on my school project - Android app that informs you about strong lightning strikes near your house in real time.
There are some websites like blitzortung.org or lightningmaps.org (or other), any ideas how can I get nice output file from one of these sites, so that I can obtain geographical data, determine whether it is near your house or not, and send a push notification for user? Displaying the strikes on the map are not needed.
I am using an Android Studio, Visual Studio 2015 as well as MS SQL database.
Thanks
You can get complete source code for this from following URL
https://github.com/wuan/bo-android
It's using data from lightningmaps.org
You can give a try to Open Weather or check this answer.
For Push you can use FCM. Just google "How to implement GCM in android?" you will whole lot of help.
According to blitzortung forum:
Please remember that Blitzortung data may not be used for commercial
purposes. General operator data access info: login to your main
Blitzortung Org account, and click the 'compendium' link under
'project area'. If you haven't already, you might also see
http://www.lightningmaps.org/doc/intro

How to update content via Google Sites API?

My apologies if this has already been requested/answered before, but I'm having a hard time trying to find information on the web about this. I've been tasked to find a way to directly update the content of a Google Sites page (Such as a text box or image) using the API.
I've been looking about the web for examples of doing this using C#, and have not found much to go by. I have some experience with writing/calling REST and SOAP APIs, but I can't seem to work out what Google uses for its API.
I'm struggling as to how I approach this, as the few examples I have found don't really walk through the code, so they leave me little to understand in order to manipulate it to what I want to achieve. One site I did find was Sites API Demo
Does anybody have any examples, or able to provide a simple example of updating content on a Google Site?
I appreciate any help you can give.
Mark
I realise this is an old question, but I have successfully updated the content of a google sites page using the library provided here, and following the example in the wiki.
I compiled the source as a .dll and added it as a reference to my project.

amazon product advertising API Update issues

I'm trying to get into the Amazon advertizing API to use with one of my apps. I heard recently that there were changes and needed an AssociateTag (broughtin from the affiliate program)
After using samples from this link
http://aws.amazon.com/code/2480?_encoding=UTF8&queryArg=searchQuery&x=0&fromSearch=1&y=0&searchPath=code&searchQuery=Advertising
and
http://flyingpies.wordpress.com/2009/08/13/signing-amazon-product-advertising-api-cwcf-part-2/
I can't seem to use those samples anymore. after some digging online I found that I was supposed to add an AssociateTag to the itemSource request variable, but I created a dummy login to facilitate that andthe output is pretty much the same. can anyone help me with this?
I had the exact same issue as I based my application on the flyingpies.wordpress example and couldn't get it to work by adding in the Associate Tag Id and the latest web service>
I downloaded this example:
http://aws.amazon.com/code/Product-Advertising-API/2481
And made some small changes and got it all working...
The main one changing the namespace to:
http://webservices.amazon.com/AWSECommerceService/2011-08-01
Throughout all the code......
I think I may have updated the code in a couple of other places and can help you if these errors occur..

Access to Facebook?

As a little learning project, I'd like to make a little app that reads data from a facebook users status updates. It's been done millions of times before, I'm sure, but is there an API or something? Would I need to signup for some Facebook developers license or anything, or is it as easy as finding the API, and then simply coding to it?
I'd like to simply get friends Status Updates via my login... seems easy enough. :)
The Facebook Developer links posted above are good, but it might be useful to look at some examples.
The Facebook C# SDK, found here: http://facebooksdk.codeplex.com/, has samples in ASP.NET MVC. It's a pretty simple project, so it should be relatively easy to see how things work in practice.
You can create an app at http://developers.facebook.com/
Then, download the sample project, replace the AppId and AppSecret with values from your registered app, and see how it works.
You can start reading here: http://developers.facebook.com/docs/
And look in the forum discussions here: http://forum.developers.facebook.net/index.php
This post was helpful to me http://gathadams.com/2007/06/18/how-to-write-a-facebook-application-in-10-minutes/
Also keep in mind this last change made for FB team about Post for canvas http://developers.facebook.com/docs/canvas/post/
Good luck!

Categories