javascript - Leaflet.js with a non real world map! Coordinates -
i'm working on creating map of day z (the game) leaflet js , want able plot items on map using in game coordinate system see http://dayz.ollieb.net
in game top left coordinate 000 000, 001, 001 units of 10 represent grid 010, 010 top left "grid" (similar ordinance survey).
how create method convert provided coordinate systems (either points or latlong) work on way. need go 000, 000 (top left) 145, 130 (bottom right). having trouble using lat/long curves compensate projection , points (x/y) seem change per computer!
how can take in game point , create marker on map @ point? presumably need tell leaflet.js "number" top left , bottom right of map somehow?
sorry lack of understanding, have read through docs , can't see mentioned!
see example here: http://dabrothas.net/sei/daisy/index.asp?mode=mark&z=3&x=-109.2294921875&y=73.49222029152183
i'm leaflet author.
check out following issues code examples on setting non-world crs: https://github.com/leaflet/leaflet/issues/210 https://github.com/leaflet/leaflet/pull/676
i plan refactoring of projection logic 0.4 release make such things easier , more natural, stay tuned!
Comments
Post a Comment