I use Primefaces GMAP. All streets in Crimea names are in Ukrane language, but I need them in Russian. I tried to set map's language to ru
(src="//maps.googleapis.com/maps/api/js?language=ru")
but it didn't help. Someone could help me? On google.com/maps site all this streets are in Russian.
Gmaps will use user's preferred language in browser. Although, if you require you can override default setting (not recommended in general use case).
Here's a link to localization docs.
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?language=ru">
Related
I wish to use the results of the Google translation that results from right clicking on a web page in Chrome, as opposed to using the API. These results I will use as part of a web language learning tool. I have read this page: https://cloud.google.com/translate/attribution about adding a logo, and have also read the HTML markup requirements at https://cloud.google.com/translate/markup.
My question is as these terms and conditions pages are referring to the API, do they also apply to using the translation results of using the Chrome menu item? I could use the API but this is much simpler for my temporary need.
Yes, when you're using the Google Translate Tool in a page by using the right-click, you can see that it send a request to the Google Translate API.
In definition, you have to add Google Attribution.
I guess for a personal website or non-commercial use it might not be that big of an issue but still, it will avoid future ones.
When using the API the images in some situations are outdated compared to what is provided in the public Google Maps interface.
Is there anything we can do about this?
Regards
Jeremy
No, there isn't anything you can do about that, other than possibly to select different versions of the Maps API or to select the "visual refresh" in the API.
The Maps API and the Google Maps site don't use the same map tiles and imagery. Much is common between the two, and they tend to sync up over time, but it will always vary as new releases of each come out.
I am using Google Map service. Now I integrated Google Map Direction into my application, but all direction instructions are English.
Anyone know the way to translate it into other languages? (e.g Vietnamese). You can see the site: maps.google.com, when you use your own language, all the direction instructions are translated into your language. That's what I need.
Thanks :)
The directions service will either use the browser's configured language or you can specify the language to use when loading the API.
From the API docs:
Textual directions will be provided using the browser's preferred
language setting, or the language specified when loading the API
JavaScript using the language parameter. (For more information, see
Localization.)
Just specify your language using the language parameter when loading the API:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=en-US"></script>
See full list of supported languages here : https://developers.google.com/+/web/api/supported-languages
I'm interested in using OpenStreetMap in a web application developed using ASP.NET.
Anyone knows if there is a control, library or wrapper for using OpenStreetMap in ASP.NET? (C#, not using Javascript).
Thanks in advance.
I'm not sure whether they have any ASP specific tools, but Cloudmade have lots of tools & API you can use to get OpenStreetMap into your app. It's mostly done on the client though through JavaScript, so I don't think you'll find much in the way of C# tools.
I could be wrong though...
BruTile is a C# library for displaying a slippy map. It can be used on the web, displaying via silverlight.
In my opinion a silverlight requirement is not a sensible choice for a public website, and not very sensible for internal use either from a long term perspective, so this isn't a great solution. But this is the only thing I'm aware of which matches what you're asking for.
"not using Javascript" is a curious restriction, since most embedded web maps use javascript. Perhaps you mean you don't want to work with any javascript, but the website can use it. In which case... I'm still not aware of any C# solution, but a library which wraps OpenLayers or one of the other alternatives, hiding all javascript development from you, would be very feasible. Someone should build such a thing! In the meantime, the javascript to display a slippy map is quite simple I promise :-)
The other approach might be a Static Map Image generating library which fetches tile images, stitches them into a single image and caches it locally for you to display in an <img> tag. Again such a thing would be very feasible (easy!?) to build with C#. Someone should do it! In the meantime you can link to one of those services (e.g the new one from MapQuest) directly from an <img> tag on your site. ...No javascript, and no C# either!
Is it possible to get cloudmade map tiles in English for area which are not in English by default?
For now it's not possible, but we will add multilangual support for CloudMade map styles in future.
Although you can customise some aspects of CloudMade's map tile rendering using their "style editor" tool, language options are not (yet) available
For efforts to achieve this within the wider OpenStreetMap community (rendering using the names data which is in the OpenStreetMap database for many place names) see the information on Map internationalization.
You can point to tile sources other than CloudMade's using the leaflet library, but note that serving map tiles is a little resource intensive so pointing your leaflet library at someone else's tile server for a high traffic website may not be welcome (terms of use & service guarantees vary)