Pergunta

I am working on an application where I need to mark location of a person on India map using longitude/latitude. I will be using javascript (jQuery/D3) to do this. I have an svg map of India (http://upload.wikimedia.org/wikipedia/commons/6/69/India_states_and_union_territories_map.svg) which I will be using as base map. How can I go about marking a GPS location (For Eg 25°46'27"N 75°24'1"E) on this map ? Also how do I know if this map is Mercator Projection map ?

Thanks and regards, Vikalp Jain

Foi útil?

Solução

The map you want to use doesn't have any geographic information attached to it, i.e. you would have to translate geocoordinates to map coordinates manually. You might be better off using a GeoJSON file with data for India in it.

Have a look at the examples at the D3 wiki to get an idea how to do that.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top