Callum Macdonald
2009-Nov-03 00:26 UTC
[Mapstraction] Mapstraction documentation & addJson
Hola, Is there any documentation in addition to this? http://mapstraction.com/doc/ Some of the documentation seems a little sparse. I''ve tried to read the code in a few places to piece it together, but my javascript skills aren''t always up to the task. How does the addJson function work? What format of json data does it expect? Is there a spec somewhere? As I read mxn.core.js line 922[1], the addJson function always uses a specific file[2] as the map marker. When I try that file in my browser I get a 404. Is this a bug? I can file an issue on the bug tracker, wanted to ask here first in case I''m missing something. Is there documentation anywhere on the state of v2? I read[3] that it''s in use in production, but it also appears[4] that some pieces are missing. Thanks to the devs for creating a great piece of code. Being able to write my mapping code once and use it on multiple platforms is huge. Warmly - Callum. [1] http://code.google.com/p/mapstraction/source/browse/trunk/source/mxn.core.js#922 [2] http://boston.openguides.org/markers/AQUA.png [3] http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/2009-October/000562.html [4] http://tinyurl.com/v2issues =Callum Macdonald US Cell: +1 585 201 1120 Desk: +44 845 126 0875 Skype: callum.macdonald www.callum-macdonald.com
Hello Callum It would appear from the code that the addJson function takes in GeoJSON format. I have been working on adding more functionality and hope to contribute it back. I am not a javascript guru but perhaps the community will be able to fine tune the code.> From: lists.mapstraction.com at callum-macdonald.com > To: mapstraction at lists.mapstraction.com > Date: Mon, 2 Nov 2009 19:26:38 -0500 > Subject: [Mapstraction] Mapstraction documentation & addJson > > Hola, > > Is there any documentation in addition to this? > http://mapstraction.com/doc/ > > Some of the documentation seems a little sparse. I''ve tried to read the > code in a few places to piece it together, but my javascript skills > aren''t always up to the task. > > How does the addJson function work? What format of json data does it > expect? Is there a spec somewhere? > > As I read mxn.core.js line 922[1], the addJson function always uses a > specific file[2] as the map marker. When I try that file in my browser I > get a 404. Is this a bug? I can file an issue on the bug tracker, wanted > to ask here first in case I''m missing something. > > Is there documentation anywhere on the state of v2? I read[3] that it''s > in use in production, but it also appears[4] that some pieces are > missing. > > Thanks to the devs for creating a great piece of code. Being able to > write my mapping code once and use it on multiple platforms is huge. > > Warmly - Callum. > > [1] > http://code.google.com/p/mapstraction/source/browse/trunk/source/mxn.core.js#922 > [2] http://boston.openguides.org/markers/AQUA.png > [3] > http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/2009-October/000562.html > [4] http://tinyurl.com/v2issues > > => Callum Macdonald > > US Cell: +1 585 201 1120 > Desk: +44 845 126 0875 > Skype: callum.macdonald > www.callum-macdonald.com > > > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com_________________________________________________________________ Find the right PC with Windows 7 and Windows Live. http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20091104/ddaa526c/attachment.htm>
Callum Macdonald
2009-Nov-12 17:39 UTC
[Mapstraction] Mapstraction documentation & addJson
Hola, Awesome, thanks for that info, it really moved me forward. The addJSON function seems a little broken. I rewrote it called addGeoJSON. It''s simpler and adds support for LineString as well as Polygon. I''ve tested it a little and it seems to work. Patch attached. I''ll post separately on the other issues I''m having. Warmly - Callum. On Wed, 2009-11-04 at 18:10 +0000, jokie36688 Tom wrote:> Hello Callum > > > It would appear from the code that the > addJson function takes in GeoJSON format. I have been working on > adding more functionality and hope to contribute it back. I am not a > javascript guru but perhaps the community will be able to fine tune > the code. > > > > From: lists.mapstraction.com at callum-macdonald.com > > To: mapstraction at lists.mapstraction.com > > Date: Mon, 2 Nov 2009 19:26:38 -0500 > > Subject: [Mapstraction] Mapstraction documentation & addJson > > > > Hola, > > > > Is there any documentation in addition to this? > > http://mapstraction.com/doc/ > > > > Some of the documentation seems a little sparse. I''ve tried to read > the > > code in a few places to piece it together, but my javascript skills > > aren''t always up to the task. > > > > How does the addJson function work? What format of json data does it > > expect? Is there a spec somewhere? > > > > As I read mxn.core.js line 922[1], the addJson function always uses > a > > specific file[2] as the map marker. When I try that file in my > browser I > > get a 404. Is this a bug? I can file an issue on the bug tracker, > wanted > > to ask here first in case I''m missing something. > > > > Is there documentation anywhere on the state of v2? I read[3] that > it''s > > in use in production, but it also appears[4] that some pieces are > > missing. > > > > Thanks to the devs for creating a great piece of code. Being able to > > write my mapping code once and use it on multiple platforms is huge. > > > > Warmly - Callum. > > > > [1] > > > http://code.google.com/p/mapstraction/source/browse/trunk/source/mxn.core.js#922 > > [2] http://boston.openguides.org/markers/AQUA.png > > [3] > > > http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/2009-October/000562.html > > [4] http://tinyurl.com/v2issues > > > > => > Callum Macdonald > > > > US Cell: +1 585 201 1120 > > Desk: +44 845 126 0875 > > Skype: callum.macdonald > > www.callum-macdonald.com > > > > > > > > _______________________________________________ > > Mapstraction mailing list > > Mapstraction at lists.mapstraction.com > > > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > > ______________________________________________________________________ > Find the right PC with Windows 7 and Windows Live. Learn more.=Callum Macdonald US Cell: +1 585 201 1120 Desk: +44 845 126 0875 Skype: callum.macdonald www.callum-macdonald.com -------------- next part -------------- A non-text attachment was scrubbed... Name: mxn.core.js.patch Type: text/x-patch Size: 2448 bytes Desc: not available URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20091112/65be1efc/attachment.bin>