Topic on Extension talk:Maps

'America' puts a point in Europe...

10
Varlin (talkcontribs)

When trying to display a simple point centered on America, with {{#display_map:locations=America|service=leaflet}}, the point is placed somewhere on Europe.

Kghbln (talkcontribs)
Varlin (talkcontribs)
Kghbln (talkcontribs)

Indeed, but even if I use Europe I get another result. I appears that it points to Paris, which would be an incorrect result even for Europe.

Jeroen De Dauw (talkcontribs)

You can use coordinates instead of "America" to precisely put the marker. "America" is rather vague, especially for a marker, so no wonder the geocoding services are giving you different results.

Jeroen De Dauw (talkcontribs)

Btw you can omit "locations="

Varlin (talkcontribs)

In my case "America" is not a hard coded input but is obtained from a database containing keywords (countries, continents...), so I can't put coordinates.

Jeroen De Dauw (talkcontribs)

I could add a new configuration setting to Maps that allows you to specify a map of place names and associated coordinates. This would then be used instead of geocoding for place names present in the map. In other words, you'd be able to specify which coordinates would be used for "America". Would this solve your problem?

Varlin (talkcontribs)

Yes it would.

Jeroen De Dauw (talkcontribs)