Bing and map culture (language for labels)
Hello,
I have a problem with the data being displayed from Bing. Its always in english :(
However, when I visit Bing maps directly, my maps are in french.
Thus, my client wants to have the Bing maps within the HTML 5 viewer interface in french.
But for the life of me, I cannot find that setting anywhere in Geocortex. I even tried to hack the site xaml file directly, but to no avail.
http://msdn.microsoft.com/en-us/library/ff701709.aspx details the culture parameter that can be passed to the Bing maps REST interface.
What is the tag I need to add or what is the modification I need to do in the site xaml file to sepcify the map culture for a Bing map?
Thank you
Jeff
-
In the hopes that, this will help someone, here is what can be done.
As of version 1.3.1, there is not place in Essential to supply the culture to be used when displaying Bing Maps data.
Well, while this is true to some extent, you still can supply that information.
There is actually 2 ways to do it.
Way 1:
Edit the site.xaml file, and add the following string at the end of your key file
<Map FullExtent="-9441501.73378248,5591521.49311574,-5684468.9195105,8722382.17167573" InitialExtent="-9441501.73378248,5591521.49311574,-5684468.9195105,8722382.17167573">
<MapServices>
<MapService ConnectionString="mapStyle=AerialWithLabels;key=YouBingMapsKeyGoesHere;culture=fr-CA " DefaultAllowSymbolization="true" DisplayName="AerialWithLabels" Function="Operational" ID="1" IncludeInLayerList="true" IsExpanded="true" Opacity="1" OverrideTemporalSettings="false" PasswordEncrypted="false" ProviderInvariantName="Geocortex.Gis.Services.Bing" SearchNonTextFields="true" SupportedImageHeight="0" SupportedImageWidth="0" UseHttpAuthentication="false" Visible="true" />
</MapServices>
</Map>Way 2:
In essentials, when you are prompted to enter your key to connect to Bing Maps, simply add the culture at the end of the key, like so:
YouBingMapsKeyGoesHere;culture=fr-CA
You may, of course, replace fr-CA by your own culture. Please see http://msdn.microsoft.com/en-us/library/hh441729.aspx for a list of valid cultures.
Hope this helps.
Jeff
0
Please sign in to leave a comment.
Comments
1 comment