Hi All, I''m just about to start work on refactoring our website software from using Google Maps API to use Mapstraction v2. After initial investigation there are several features that we use in Google that are not currently supported by Mapstraction. For example we use the move events to do some work when the user has panned the map. I don''t really want to take a code dump offline and extend it for my own needs as I would rather contribute to the overall project and also reap the benefits of future contributions. However I am a little unclear where to start I can''t view the http://mapstraction.com/trac/wiki or the http://mapstraction.com/trac/roadmap or more importantly http://mapstraction.com/trac/wiki/SubversionAccess due to python script errors. I am a little unclear how I would take the source from the online repository and then submit any modifications back. Can anyone point me in the correct direction please? I am developing on XP with VS2005 in a corporate environment and use different CM tools. (so which subversion client is best to use in this environment?) Please reply direct if required as I don''t want to clog the list up unless it helps others too. thanks. sam -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100115/13802d47/attachment.htm>
Hi Sam, The repository, issue tracker etc for Mapstraction v2 is on Google Code... http://code.google.com/p/mapstraction <http://code.google.com/p/mapstraction>The documentation on the Mapstraction site refers to v1. v2 is in quite a state of flux at the moment, there is no "stable" build available and so there''s no associated published documentation either. Currently, the only way to get at a proper build is to check the source out using an SVN client (Tortoise SVN<http://tortoisesvn.tigris.org/>is a good one for Windows) and to run the Ant build.xml which will generate both min''d javascript files and HTML documentation. Having said that there aren''t significant changes to the API other than where events are concerned. With regard to your comment - both v1 and v2 support the"moveend" event and v2 supports a lot more besides e.g. markerAdded, markerClicked etc although you bind to v2 events in a different way. Hope this answers your questions. Derek 2010/1/15 <nojunksam at email2me.net>> > Hi All, > > I''m just about to start work on refactoring our website software from using > Google Maps API to use Mapstraction v2. After initial investigation there > are several features that we use in Google that are not currently supported > by Mapstraction. For example we use the move events to do some work when the > user has panned the map. I don''t really want to take a code dump offline and > extend it for my own needs as I would rather contribute to the overall > project and also reap the benefits of future contributions. > > However I am a little unclear where to start > > I can''t view the http://mapstraction.com/trac/wiki or the > http://mapstraction.com/trac/roadmap or more importantly > http://mapstraction.com/trac/wiki/SubversionAccess due to python script > errors. > > I am a little unclear how I would take the source from the online > repository and then submit any modifications back. Can anyone point me in > the correct direction please? > > I am developing on XP with VS2005 in a corporate environment and use > different CM tools. (so which subversion client is best to use in this > environment?) > Please reply direct if required as I don''t want to clog the list up > unless it helps others too. > > thanks. > > sam > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > >-- Derek Fowler m. +44 (0) 7966 512 369 e. dezfowler at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100115/067388bf/attachment.htm>
I''ve been trying to use the events sample for V2 in the sandbox, I assume this is still coded for V1. If you are trying to use events with v2 this is the same I made. Can someone update the sample? var marker; var mapstraction; function initialize() { mapstraction = new mxn.Mapstraction(''map_canvas'',null,true); mapstraction.setCenterAndZoom(new mxn.LatLonPoint(50.404196,-2.008194), 7); mapstraction.click.addHandler( function(event, source, args) { var loc = args.location; text = "<p>Lat: " + String(loc.lat) + " Lon: " + loc.lon + "</p>"; marker = new mxn.Marker(loc); marker.setLabel(text); marker.setInfoBubble(text); mapstraction.addMarker(marker); marker.openBubble(); }, this); mapstraction.changeZoom.addHandler(function(){ alert(''changeZoom'')}, this); mapstraction.endPan.addHandler(function(){ alert(''endPan'')}, this); } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100201/75dcf220/attachment.htm>
Nojunksam, you were my rescue! I need event handling in my mapstraction project and was desperately testing the defunct examples of the sandbox for half an hour. Since they fail silently due to exception handling, I had no clue where the error was. Luckily your post clarified everything! Mapstraction appspot maintainers PLEASE UPDATE THE EVENTS SECTION SOON! Franz 2010/2/1 <nojunksam at email2me.net>> > I''ve been trying to use the events sample for V2 in the sandbox, I assume > this is still coded for V1. If you are trying to use events with v2 this is > the same I made. Can someone update the sample? > > var marker; > var mapstraction; > function initialize() { > mapstraction = new mxn.Mapstraction(''map_canvas'',null,true); > mapstraction.setCenterAndZoom(new > mxn.LatLonPoint(50.404196,-2.008194), 7); > > mapstraction.click.addHandler( > function(event, source, args) { > var loc = args.location; > text = "<p>Lat: " + String(loc.lat) + " Lon: " + loc.lon + > "</p>"; > marker = new mxn.Marker(loc); > marker.setLabel(text); > marker.setInfoBubble(text); > mapstraction.addMarker(marker); > marker.openBubble(); > }, this); > mapstraction.changeZoom.addHandler(function(){ alert(''changeZoom'')}, > this); > mapstraction.endPan.addHandler(function(){ alert(''endPan'')}, this); > } > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100218/c56e91bc/attachment.htm>