简体   繁体   English

具有Lat / Lon支持的世界地图

[英]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. 显示所有办公室的点。

  • JVectorMap is built with JS, but does not support Lat/Lon, as far as I can see JVectorMap是用JS构建的,但据我所知,它不支持Lat / Lon
  • SVG World Map is built with jQuery, but no Lat/Lon, it only supports clicking countries SVG World Map是使用jQuery构建的,但没有Lat / Lon,它只支持点击国家/地区
  • This question (and this gist ) uses D3 to draw a map possibly with Lat/Lon dots 这个问题 (和这个要点 )使用D3绘制可能带有Lat / Lon点的地图
  • Vis4 contains 100+ projections, and possibly supports lat/lon Vis4包含100多个投影,可能支持lat / lon
  • GerbenRobijn has an equirect map with lat/lon support GerbenRobijn有一个带有lat / lon支持的equirect地图

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM