Maybe I''m missing something, and this is entirely possible, but there seems to be something significantly broken in the Leaflet support for Mapstraction. Taking the simplest possible use case of "add a map and put a push pin on it" I''ve put together a simple test case which, for me at least, demonstrates this. The code which does this simplistic test case looks like this ... <script type="text/javascript"> function do_map (provider) { var map_id = provider + "-map"; var id = document.getElementById (map_id); var map = new mxn.Mapstraction (id, provider); var coords = new mxn.LatLonPoint (51.4323671964,-0.348236560822); map.setCenterAndZoom (coords, 13); var marker = new mxn.Marker (coords); map.addMarker (marker); } nokia.Settings.set ("appId", "xxx"); nokia.Settings.set ("authenticationToken", "xxx"); cloudmade_key = "xxx"; microsoft_key = "xxx"; do_map (''nokia''); do_map (''openlayers''); do_map (''googlev3''); do_map (''cloudmade''); do_map (''microsoft7''); do_map (''leaflet''); </script> ... and works as expected for my port of Nokia Maps, for OpenLayers, for Google, for CloudMade and for Bing. But whilst I get a Leaflet map I also get the following error in the console Error: iconUrl not set in Icon options (see the docs). ... yet according to Leaflet''s documentation, you don''t need an Icon URL if you''re not using a custom icon. And in mxn.leaflet.core.js, iconUrl should only be set if explicitly set via Marker.setIcon or via Marker.addData. So what am I missing? Or do I just need more coffee? The demo, plus source (via view source) is up here: http://maps.vicchi.org/map-headers.html G -- gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | www.garygale.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20120731/0923543b/attachment.htm>
Which version of Leaflet are you using. I had the impression it was still pre-release and being worked on so it''s entirely possible they changed something which broke the adapter. Derek On 31 July 2012 14:18, Gary Gale <gary at vicchi.org> wrote:> Maybe I''m missing something, and this is entirely possible, but there > seems to be something significantly broken in the Leaflet support for > Mapstraction. > > Taking the simplest possible use case of "add a map and put a push pin on > it" I''ve put together a simple test case which, for me at least, > demonstrates this. > > The code which does this simplistic test case looks like this ... > > <script type="text/javascript"> > function do_map (provider) { > var map_id = provider + "-map"; > var id = document.getElementById (map_id); > var map = new mxn.Mapstraction (id, provider); > var coords = new mxn.LatLonPoint (51.4323671964,-0.348236560822); > map.setCenterAndZoom (coords, 13); > var marker = new mxn.Marker (coords); > map.addMarker (marker); > } > > nokia.Settings.set ("appId", "xxx"); > nokia.Settings.set ("authenticationToken", "xxx"); > > cloudmade_key = "xxx"; > microsoft_key = "xxx"; > do_map (''nokia''); > do_map (''openlayers''); > do_map (''googlev3''); > do_map (''cloudmade''); > do_map (''microsoft7''); > do_map (''leaflet''); > </script> > > ... and works as expected for my port of Nokia Maps, for OpenLayers, for > Google, for CloudMade and for Bing. But whilst I get a Leaflet map I also > get the following error in the console > > Error: iconUrl not set in Icon options (see the docs). > > ... yet according to Leaflet''s documentation, you don''t need an Icon URL > if you''re not using a custom icon. And in mxn.leaflet.core.js, iconUrl > should only be set if explicitly set via Marker.setIcon or via > Marker.addData. > > So what am I missing? Or do I just need more coffee? > > The demo, plus source (via view source) is up here: > http://maps.vicchi.org/map-headers.html > > G > > -- > gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | > www.garygale.com > > > _______________________________________________ > 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/20120805/dde9942c/attachment.htm>
Can''t tell at the moment. On holiday with no laptop and only a tenuous data connection. The version should be in the page source of the URL in my original post; but I''ll check it when I get back home to a broadband connection. -Gary Sent from my iPhone On 5 Aug 2012, at 13:41, Derek Fowler <dezfowler at gmail.com> wrote:> Which version of Leaflet are you using. I had the impression it was still pre-release and being worked on so it''s entirely possible they changed something which broke the adapter. > > Derek > > On 31 July 2012 14:18, Gary Gale <gary at vicchi.org> wrote: > Maybe I''m missing something, and this is entirely possible, but there seems to be something significantly broken in the Leaflet support for Mapstraction. > > Taking the simplest possible use case of "add a map and put a push pin on it" I''ve put together a simple test case which, for me at least, demonstrates this. > > The code which does this simplistic test case looks like this ... > > <script type="text/javascript"> > function do_map (provider) { > var map_id = provider + "-map"; > var id = document.getElementById (map_id); > var map = new mxn.Mapstraction (id, provider); > var coords = new mxn.LatLonPoint (51.4323671964,-0.348236560822); > map.setCenterAndZoom (coords, 13); > var marker = new mxn.Marker (coords); > map.addMarker (marker); > } > > nokia.Settings.set ("appId", "xxx"); > nokia.Settings.set ("authenticationToken", "xxx"); > > cloudmade_key = "xxx"; > microsoft_key = "xxx"; > > do_map (''nokia''); > do_map (''openlayers''); > do_map (''googlev3''); > do_map (''cloudmade''); > do_map (''microsoft7''); > do_map (''leaflet''); > </script> > > ... and works as expected for my port of Nokia Maps, for OpenLayers, for Google, for CloudMade and for Bing. But whilst I get a Leaflet map I also get the following error in the console > > Error: iconUrl not set in Icon options (see the docs). > > ... yet according to Leaflet''s documentation, you don''t need an Icon URL if you''re not using a custom icon. And in mxn.leaflet.core.js, iconUrl should only be set if explicitly set via Marker.setIcon or via Marker.addData. > > So what am I missing? Or do I just need more coffee? > > The demo, plus source (via view source) is up here: http://maps.vicchi.org/map-headers.html > > G > > -- > gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | www.garygale.com > > > _______________________________________________ > 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 > _______________________________________________ > 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/20120805/dbb2086f/attachment.htm>
My code is using Leaflet 0.4 via http://cdn.leafletjs.com/leaflet-0.4/leaflet.js, released on 30/7/12. This looks like it''s the latest version. I''ve had a look through the commit history but can''t immediately see who contributed Leaflet support ... anyone know? As an aside, it might be worth doing (or trying to do) two things in future ... 1. When adding support for a new Maps API, say in the commit comment and/or source code comments what version has been tested against. 2. When merging commits, work out how to make the commit comment slightly more meaningful other than "merge pull request #n" ... just sayin'' G -- gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | www.garygale.com On 5 Aug 2012, at 15:51, Gary Gale wrote:> Can''t tell at the moment. On holiday with no laptop and only a tenuous data connection. The version should be in the page source of the URL in my original post; but I''ll check it when I get back home to a broadband connection. > > -Gary > > Sent from my iPhone > > On 5 Aug 2012, at 13:41, Derek Fowler <dezfowler at gmail.com> wrote: > >> Which version of Leaflet are you using. I had the impression it was still pre-release and being worked on so it''s entirely possible they changed something which broke the adapter. >> >> Derek >> >> On 31 July 2012 14:18, Gary Gale <gary at vicchi.org> wrote: >> Maybe I''m missing something, and this is entirely possible, but there seems to be something significantly broken in the Leaflet support for Mapstraction. >> >> Taking the simplest possible use case of "add a map and put a push pin on it" I''ve put together a simple test case which, for me at least, demonstrates this. >> >> The code which does this simplistic test case looks like this ... >> >> <script type="text/javascript"> >> function do_map (provider) { >> var map_id = provider + "-map"; >> var id = document.getElementById (map_id); >> var map = new mxn.Mapstraction (id, provider); >> var coords = new mxn.LatLonPoint (51.4323671964,-0.348236560822); >> map.setCenterAndZoom (coords, 13); >> var marker = new mxn.Marker (coords); >> map.addMarker (marker); >> } >> >> nokia.Settings.set ("appId", "xxx"); >> nokia.Settings.set ("authenticationToken", "xxx"); >> >> cloudmade_key = "xxx"; >> microsoft_key = "xxx"; >> >> do_map (''nokia''); >> do_map (''openlayers''); >> do_map (''googlev3''); >> do_map (''cloudmade''); >> do_map (''microsoft7''); >> do_map (''leaflet''); >> </script> >> >> ... and works as expected for my port of Nokia Maps, for OpenLayers, for Google, for CloudMade and for Bing. But whilst I get a Leaflet map I also get the following error in the console >> >> Error: iconUrl not set in Icon options (see the docs). >> >> ... yet according to Leaflet''s documentation, you don''t need an Icon URL if you''re not using a custom icon. And in mxn.leaflet.core.js, iconUrl should only be set if explicitly set via Marker.setIcon or via Marker.addData. >> >> So what am I missing? Or do I just need more coffee? >> >> The demo, plus source (via view source) is up here: http://maps.vicchi.org/map-headers.html >> >> G >> >> -- >> gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | www.garygale.com >> >> >> _______________________________________________ >> 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 >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > _______________________________________________ > 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/20120811/b3803717/attachment.htm>
On Sat, Aug 11, 2012 at 2:51 AM, Gary Gale <gary at vicchi.org> wrote:> My code is using Leaflet 0.4 via > http://cdn.leafletjs.com/leaflet-0.4/leaflet.js, released on 30/7/12. This > looks like it''s the latest version. I''ve had a look through the commit > history but can''t immediately see who contributed Leaflet support ... anyone > know? > > As an aside, it might be worth doing (or trying to do) two things in future > ... > > 1. When adding support for a new Maps API, say in the commit comment and/or > source code comments what version has been tested against. > > 2. When merging commits, work out how to make the commit comment slightly > more meaningful other than "merge pull request #n"I would also suggest within the implementation file itself to have a list of contributors. Who wants to raise their hand to be the next release master (or whatever they were called)?> > ... just sayin'' > > G > > -- > gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | > www.garygale.com > > On 5 Aug 2012, at 15:51, Gary Gale wrote: > > Can''t tell at the moment. On holiday with no laptop and only a tenuous data > connection. The version should be in the page source of the URL in my > original post; but I''ll check it when I get back home to a broadband > connection. > > -Gary > > Sent from my iPhone > > On 5 Aug 2012, at 13:41, Derek Fowler <dezfowler at gmail.com> wrote: > > Which version of Leaflet are you using. I had the impression it was still > pre-release and being worked on so it''s entirely possible they changed > something which broke the adapter. > > Derek > > On 31 July 2012 14:18, Gary Gale <gary at vicchi.org> wrote: >> >> Maybe I''m missing something, and this is entirely possible, but there >> seems to be something significantly broken in the Leaflet support for >> Mapstraction. >> >> Taking the simplest possible use case of "add a map and put a push pin on >> it" I''ve put together a simple test case which, for me at least, >> demonstrates this. >> >> The code which does this simplistic test case looks like this ... >> >> <script type="text/javascript"> >> function do_map (provider) { >> var map_id = provider + "-map"; >> var id = document.getElementById (map_id); >> var map = new mxn.Mapstraction (id, provider); >> var coords = new mxn.LatLonPoint (51.4323671964,-0.348236560822); >> map.setCenterAndZoom (coords, 13); >> var marker = new mxn.Marker (coords); >> map.addMarker (marker); >> } >> >> nokia.Settings.set ("appId", "xxx"); >> nokia.Settings.set ("authenticationToken", "xxx"); >> >> cloudmade_key = "xxx"; >> microsoft_key = "xxx"; >> do_map (''nokia''); >> do_map (''openlayers''); >> do_map (''googlev3''); >> do_map (''cloudmade''); >> do_map (''microsoft7''); >> do_map (''leaflet''); >> </script> >> >> ... and works as expected for my port of Nokia Maps, for OpenLayers, for >> Google, for CloudMade and for Bing. But whilst I get a Leaflet map I also >> get the following error in the console >> >> Error: iconUrl not set in Icon options (see the docs). >> >> ... yet according to Leaflet''s documentation, you don''t need an Icon URL >> if you''re not using a custom icon. And in mxn.leaflet.core.js, iconUrl >> should only be set if explicitly set via Marker.setIcon or via >> Marker.addData. >> >> So what am I missing? Or do I just need more coffee? >> >> The demo, plus source (via view source) is up here: >> http://maps.vicchi.org/map-headers.html >> >> G >> >> -- >> gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | >> www.garygale.com >> >> >> _______________________________________________ >> 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 > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >-- Andrew Turner mobile: 248.982.3609 andrew at fortiusone.com http://highearthorbit.com http://geocommons.com Helping build the Geospatial Web Introduction to Neogeography - http://oreilly.com/catalog/neogeography
If someone wants to help/aid/abet and/or point me to whatever testing and release process we have (if we have one at all) then consider my hand raised. I''m still on vacation this week so wouldn''t be able to commit any time until the latter part of next week at the earliest. G -- gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | www.garygale.com On 13 Aug 2012, at 16:03, Andrew Turner wrote:> On Sat, Aug 11, 2012 at 2:51 AM, Gary Gale <gary at vicchi.org> wrote: >> My code is using Leaflet 0.4 via >> http://cdn.leafletjs.com/leaflet-0.4/leaflet.js, released on 30/7/12. This >> looks like it''s the latest version. I''ve had a look through the commit >> history but can''t immediately see who contributed Leaflet support ... anyone >> know? >> >> As an aside, it might be worth doing (or trying to do) two things in future >> ... >> >> 1. When adding support for a new Maps API, say in the commit comment and/or >> source code comments what version has been tested against. >> >> 2. When merging commits, work out how to make the commit comment slightly >> more meaningful other than "merge pull request #n" > > I would also suggest within the implementation file itself to have a > list of contributors. > > Who wants to raise their hand to be the next release master (or > whatever they were called)? > >> >> ... just sayin'' >> >> G >> >> -- >> gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | >> www.garygale.com >> >> On 5 Aug 2012, at 15:51, Gary Gale wrote: >> >> Can''t tell at the moment. On holiday with no laptop and only a tenuous data >> connection. The version should be in the page source of the URL in my >> original post; but I''ll check it when I get back home to a broadband >> connection. >> >> -Gary >> >> Sent from my iPhone >> >> On 5 Aug 2012, at 13:41, Derek Fowler <dezfowler at gmail.com> wrote: >> >> Which version of Leaflet are you using. I had the impression it was still >> pre-release and being worked on so it''s entirely possible they changed >> something which broke the adapter. >> >> Derek >> >> On 31 July 2012 14:18, Gary Gale <gary at vicchi.org> wrote: >>> >>> Maybe I''m missing something, and this is entirely possible, but there >>> seems to be something significantly broken in the Leaflet support for >>> Mapstraction. >>> >>> Taking the simplest possible use case of "add a map and put a push pin on >>> it" I''ve put together a simple test case which, for me at least, >>> demonstrates this. >>> >>> The code which does this simplistic test case looks like this ... >>> >>> <script type="text/javascript"> >>> function do_map (provider) { >>> var map_id = provider + "-map"; >>> var id = document.getElementById (map_id); >>> var map = new mxn.Mapstraction (id, provider); >>> var coords = new mxn.LatLonPoint (51.4323671964,-0.348236560822); >>> map.setCenterAndZoom (coords, 13); >>> var marker = new mxn.Marker (coords); >>> map.addMarker (marker); >>> } >>> >>> nokia.Settings.set ("appId", "xxx"); >>> nokia.Settings.set ("authenticationToken", "xxx"); >>> >>> cloudmade_key = "xxx"; >>> microsoft_key = "xxx"; >>> do_map (''nokia''); >>> do_map (''openlayers''); >>> do_map (''googlev3''); >>> do_map (''cloudmade''); >>> do_map (''microsoft7''); >>> do_map (''leaflet''); >>> </script> >>> >>> ... and works as expected for my port of Nokia Maps, for OpenLayers, for >>> Google, for CloudMade and for Bing. But whilst I get a Leaflet map I also >>> get the following error in the console >>> >>> Error: iconUrl not set in Icon options (see the docs). >>> >>> ... yet according to Leaflet''s documentation, you don''t need an Icon URL >>> if you''re not using a custom icon. And in mxn.leaflet.core.js, iconUrl >>> should only be set if explicitly set via Marker.setIcon or via >>> Marker.addData. >>> >>> So what am I missing? Or do I just need more coffee? >>> >>> The demo, plus source (via view source) is up here: >>> http://maps.vicchi.org/map-headers.html >>> >>> G >>> >>> -- >>> gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | >>> www.garygale.com >>> >>> >>> _______________________________________________ >>> 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 >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> >> >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> > > > > -- > Andrew Turner > mobile: 248.982.3609 > andrew at fortiusone.com > http://highearthorbit.com > > http://geocommons.com Helping build the Geospatial Web > Introduction to Neogeography - http://oreilly.com/catalog/neogeography > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
On Mon, Aug 13, 2012 at 11:24 AM, Gary Gale <gary at vicchi.org> wrote:> If someone wants to help/aid/abet and/or point me to whatever testing and release process we have (if we have one at all) then consider my hand raised.This is something that we have only nominal pieces of but could build out as we do more of these. https://github.com/mapstraction/mxn/wiki/contributing https://github.com/mapstraction/mxn/wiki/Merging-Pull-Requests Fortunately I''m effectively building the case that Esri needs to support Mapstraction so likely I can get our team helping out on this as well. Ed had a good outline before: One technique I''ve seen work well in the perl world is that each month there is a launch king, he is in charge of doing a new launch on or near the 15th of the month. the benefit of this is - developers know when their submits will get live - launch kings will know when they are going to be launch king and can schedule it for months when they will have capactiy - it happens frequently - 12 times a year, so developers know when they submit, their work will actually get live. This has encouraged much more participation. - users see the project is active, thus are more likely to commit their attention to it - because it is monthly, the number of new submissions is rarely massive, each individual launch king doesn''t do that much work. So we started setting up Milestones but never did much more: https://github.com/mapstraction/mxn/issues/milestones> > I''m still on vacation this week so wouldn''t be able to commit any time until the latter part of next week at the earliest. > > G > > -- > gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | www.garygale.com > > On 13 Aug 2012, at 16:03, Andrew Turner wrote: > >> On Sat, Aug 11, 2012 at 2:51 AM, Gary Gale <gary at vicchi.org> wrote: >>> My code is using Leaflet 0.4 via >>> http://cdn.leafletjs.com/leaflet-0.4/leaflet.js, released on 30/7/12. This >>> looks like it''s the latest version. I''ve had a look through the commit >>> history but can''t immediately see who contributed Leaflet support ... anyone >>> know? >>> >>> As an aside, it might be worth doing (or trying to do) two things in future >>> ... >>> >>> 1. When adding support for a new Maps API, say in the commit comment and/or >>> source code comments what version has been tested against. >>> >>> 2. When merging commits, work out how to make the commit comment slightly >>> more meaningful other than "merge pull request #n" >> >> I would also suggest within the implementation file itself to have a >> list of contributors. >> >> Who wants to raise their hand to be the next release master (or >> whatever they were called)? >> >>> >>> ... just sayin'' >>> >>> G >>> >>> -- >>> gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | >>> www.garygale.com >>> >>> On 5 Aug 2012, at 15:51, Gary Gale wrote: >>> >>> Can''t tell at the moment. On holiday with no laptop and only a tenuous data >>> connection. The version should be in the page source of the URL in my >>> original post; but I''ll check it when I get back home to a broadband >>> connection. >>> >>> -Gary >>> >>> Sent from my iPhone >>> >>> On 5 Aug 2012, at 13:41, Derek Fowler <dezfowler at gmail.com> wrote: >>> >>> Which version of Leaflet are you using. I had the impression it was still >>> pre-release and being worked on so it''s entirely possible they changed >>> something which broke the adapter. >>> >>> Derek >>> >>> On 31 July 2012 14:18, Gary Gale <gary at vicchi.org> wrote: >>>> >>>> Maybe I''m missing something, and this is entirely possible, but there >>>> seems to be something significantly broken in the Leaflet support for >>>> Mapstraction. >>>> >>>> Taking the simplest possible use case of "add a map and put a push pin on >>>> it" I''ve put together a simple test case which, for me at least, >>>> demonstrates this. >>>> >>>> The code which does this simplistic test case looks like this ... >>>> >>>> <script type="text/javascript"> >>>> function do_map (provider) { >>>> var map_id = provider + "-map"; >>>> var id = document.getElementById (map_id); >>>> var map = new mxn.Mapstraction (id, provider); >>>> var coords = new mxn.LatLonPoint (51.4323671964,-0.348236560822); >>>> map.setCenterAndZoom (coords, 13); >>>> var marker = new mxn.Marker (coords); >>>> map.addMarker (marker); >>>> } >>>> >>>> nokia.Settings.set ("appId", "xxx"); >>>> nokia.Settings.set ("authenticationToken", "xxx"); >>>> >>>> cloudmade_key = "xxx"; >>>> microsoft_key = "xxx"; >>>> do_map (''nokia''); >>>> do_map (''openlayers''); >>>> do_map (''googlev3''); >>>> do_map (''cloudmade''); >>>> do_map (''microsoft7''); >>>> do_map (''leaflet''); >>>> </script> >>>> >>>> ... and works as expected for my port of Nokia Maps, for OpenLayers, for >>>> Google, for CloudMade and for Bing. But whilst I get a Leaflet map I also >>>> get the following error in the console >>>> >>>> Error: iconUrl not set in Icon options (see the docs). >>>> >>>> ... yet according to Leaflet''s documentation, you don''t need an Icon URL >>>> if you''re not using a custom icon. And in mxn.leaflet.core.js, iconUrl >>>> should only be set if explicitly set via Marker.setIcon or via >>>> Marker.addData. >>>> >>>> So what am I missing? Or do I just need more coffee? >>>> >>>> The demo, plus source (via view source) is up here: >>>> http://maps.vicchi.org/map-headers.html >>>> >>>> G >>>> >>>> -- >>>> gary at vicchi.org | twitter.com/vicchi | www.linkedin.com/in/garygale | >>>> www.garygale.com >>>> >>>> >>>> _______________________________________________ >>>> 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 >>> >>> _______________________________________________ >>> Mapstraction mailing list >>> Mapstraction at lists.mapstraction.com >>> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >>> >>> _______________________________________________ >>> Mapstraction mailing list >>> Mapstraction at lists.mapstraction.com >>> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >>> >>> >>> >>> _______________________________________________ >>> Mapstraction mailing list >>> Mapstraction at lists.mapstraction.com >>> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >>> >> >> >> >> -- >> Andrew Turner >> mobile: 248.982.3609 >> andrew at fortiusone.com >> http://highearthorbit.com >> >> http://geocommons.com Helping build the Geospatial Web >> Introduction to Neogeography - http://oreilly.com/catalog/neogeography >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com-- Andrew Turner mobile: 248.982.3609 andrew at fortiusone.com http://highearthorbit.com http://geocommons.com Helping build the Geospatial Web Introduction to Neogeography - http://oreilly.com/catalog/neogeography