fjanon / timemap

Automatically exported from code.google.com/p/timemap
MIT License
0 stars 0 forks source link

Allow mapCenter to take a point object #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now, to set mapCenter, you need to actually create an mxn.LatLonPoint. 
You should be able to set a lat/lon point object instead:

options: {
  mapCenter: {
    lat: 3.0,
    lon: 10.0
  }
}

It's possible that given the simplicity of the LatLonPoint class, this would 
work already - I'd need to test. But it would be preferable to not rely on the 
Mapstraction internals always accepting this.

Original issue reported on code.google.com by nick.rab...@gmail.com on 18 Jan 2011 at 7:56

GoogleCodeExporter commented 9 years ago
now in trunk, with test.

Original comment by nick.rab...@gmail.com on 2 Feb 2011 at 7:50