[英]World map with Lat/Lon support
I need a vector world map in JS/Flash that supports display of dots based on their lat/lon coordinates. 我需要JS / Flash中的矢量世界地图,它支持基于纬度/经度坐标显示点。 I need to use this for a office locator, for a company with offices around the world.
我需要将它用于办公室定位器,以及在世界各地设有办事处的公司。 The idea is you click on the office in the list, and the map navigates to the dot of that office.
想法是你点击列表中的办公室,地图导航到该办公室的点。 Dots are displayed for all offices.
显示所有办公室的点。
How do I engineer a map to support Lat/Lon coordinates, and convert X/Y to Lat/Lon (convert mouse coordinates to Lat/Lon), and convert Lat/Lon to X/Y (convert Geo-marker to a dot on the map) 如何设计地图以支持Lat / Lon坐标,并将X / Y转换为Lat / Lon(将鼠标坐标转换为Lat / Lon),并将Lat / Lon转换为X / Y(将地理标记转换为点地图)
All of the decent map packages have a "Lat/Lon support". 所有体面的地图包都有“Lat / Lon支持”。 The help page for your first example, JVectorMap, describes two functions:
第一个示例的帮助页面JVectorMap描述了两个函数:
latLngToPoint Converts coordinates expressed as latitude and longitude to the coordinates in pixels on the map.
latLngToPoint将表示为纬度和经度的坐标转换为地图上以像素为单位的坐标。
pointToLatLng Converts cartesian coordinates into coordinates expressed as latitude and longitude.
pointToLatLng将笛卡尔坐标转换为以纬度和经度表示的坐标。
The 'setFocus' in the same package can accept either lat/lon or x, y coordinates. 同一个包中的'setFocus'可以接受lat / lon或x,y坐标。
I fail to see a problem. 我没有看到问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.