Google translate provides a very simple solution of adding a dropdown to translate an entire page:
https://www.w3schools.com/howto/howto_google_translate.asp
It looks like Bing used to provide a similar tool before it was merged into Microsoft's cloud service. Is this possible to do anymore with Microsoft? I only see them providing REST endpoints, would it be much more difficult to achieve the same thing?
Related
I'm currently working on a mapping project using the Google Maps JavaScript API.
But my application will be much more advanced then showing a single map and will eventually show multiple map "views" as well as options to manipulate the map using forms on the page.
I have used a couple different HTML 5 JavaScript frameworks such as Backbone.js, Angular.js as well as Ember.js for other projects but nothing has worked well with Google Maps.
I'm wondering if anyone would recommend using a particular JavaScript framework for working with Google Maps JavaScript v3 API.
Preferably something with an active plugin/module for Google Maps would work best. I have created my own special views in Backbone for Google Maps but it does not work as "well" as I want it to.
If you have a suggestion to use a different mapping API, other than GMaps, I would love to hear about it too.
There is also an ember-leaflet proyect, seems interesting but I did not taste it yet.
https://github.com/gabesmed/ember-leaflet
http://gabesmed.github.io/ember-leaflet/
Good luck
Turns out there are two really great approaches.
EmberJS + Leaflet http://gabesmed.github.io/ember-leaflet/
AngularJS + Leaflet http://tombatossals.github.io/angular-leaflet-directive/#!/
AngularJS + Google Maps http://nlaplante.github.io/angular-google-maps/#!/usage
I have decided to either use AngularJS or EmberJS with Leaflet, as the Leaflet API is much more robust than the Google Maps API. (imo)
Not a Google maps solution, but you said you'd love to hear about other possible mapping solutions. Well, ArcGIS has a Javascript API https://developers.arcgis.com/en/javascript/ that is directly coupled with the Dojo javascript framework, though they do have a light version of the API as well that still runs off a stripped down version of dojo, but is more aimed at allowing integration with other JS frameworks.
May or may not meet what you're wanting, but it's an option anyway and figured I'd pass it along. They have a number of samples and such so I'd suggest you go there and take a look rather than me trying to explain.
I second the ember-leaflet suggestion. You can use any map provider you want, through leaflet.
We are planning to develop a JavaScript API to expose some of our Java EE based services. We are doing this keeping Google Maps API
in mind. Can someone please suggested where we should start and the approaches that we need to follow to create a useful and
extensible JavaScript API? Any suggestion will be greatly helpful for us.
More than google maps, I think you should look at twitter which has a very nice REST API. (https://dev.twitter.com/docs/api) REST is the key of building your API.
Part from that, you should also think about generating API keys, so you have control about who is doing what with your services
Also that seems like a good reading to start:
http://blog.steveklabnik.com/posts/2011-07-03-nobody-understands-rest-or-http
Definitely look to make it a RESTful JSON Api and then you'll be able to use it for various purposes. APIs like twitter et. al. are good models (although there is a lot of back and forth about what is completely REST).
I'm a big fan of Mike Pearce's take on how to design good APIs: http://blog.mikepearce.net/2010/08/08/api-anti-patterns-how-not-to-write-a-restful-api/
I am trying to do some basic geocoding using the google maps API and a GWT dyanmic web project in Eclipse. For example, query the following URL:
http://maps.google.com/maps/geo?q=1600+Amphitheatre+Parkway,+Mountain+View,+CA&output=json&sensor=false
and get back the data for parsing. I am running into some confusion about whether it is better to set up a proxy or somehow use JSON with javascript (the 2 answers that I've come across to tutorials for). I have not been able to get either method working -- so I'm looking for some guidance. Thanks for your help in advance --
-Andrew
Why not just use the GWT Maps API? I think you can use the Geocoder class to do what you want.
I am looking for a piece of code, or even a list of all browsers' properties JavaScript can access so I can prepare my own stats system.
I'm not looking for anything that server-side parser can get (e.g. Agent, referrer, etc.).
I am not interested in external solutions like Google Analytics.
The reason for this is that I want to run it within company's Intranet and I require it to be internal solution.
Updated Answer...
You can run Google Analytics on your intranet too: http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55510
Original Answer...
Have you considered using Google Analytics?
It's got an impressive list of features, and even a Narrated Tour.
"Installation" is simple. Just copy/paste a small block of javascript into your website template.
(source: sizlopedia.com)
I believe I've found a solution:
Piwik
It looks very, very promising...
For Intranets, you might find some benefit in AwStats, or a similar application.
Piwik
Unica NetTracker (Online Demo)
Affinium NetInSight (Flash Demo | Online Demo)
AwStats
Webalizer
Can anyone recomend a good javascript lib for working with Google Maps or Live Maps(virtualearth )?
Is jQuery og Prototype something to consider?
I think I remember that asp.net ajax had some controls and hooks for working with virtual earth back in the day, but cant seem to find it any more.
Cheers
jQuery and Prototype are "general" JS frameworks (for lack of a better word), mostly aimed at manipulating the DOM/handling events etc. You want one of the Map APIs:
Google Maps API
Yahoo Maps JS API
Virtual Earth SDK
I've used both jQuery and Prototype. They both have their ups and downs, however I recently switched from Prototype to jQuery and have really been enjoying it.
Here is a link to the Google jQuery plugin.
Google's own Javascript Client Library can be used to interact with various google services, including maps.
I could have sworn this was already available. Looks like it isn't still. The Dojo toolkit might be the first to implement it, though. Look for developments here.