In my app (v2.0.15) and on the mapstraction demo the first time I load the page in Safari I get the error "Can''t find variable: mxn" and the map doesn''t load. http://mapstraction.appspot.com/ mapstraction.googlecode.com/svn/trunk/source/mxn.core.js:6ReferenceError: Can''t find variable: mxn I''ve seen a few old posts in the list archives about similar problems and it seems to be related to the loading order of the mapstraction scripts in webkit. It would appear that this is still an issue. Phill
This is really disappointing - the project looks great and I purchased the ''Map Scripting 101'' book to make best use of it, however if it doesn''t work properly in Safari then it''s a complete show-stopper for any serious mapping project. Is this a known issue that is being worked on and likely to be fixed in the near future? I really hope so as I''d like to make use of the project and not regret my book purchase. On 04/gen/2011, at 08.21, Phill wrote:> In my app (v2.0.15) and on the mapstraction demo the first time I load the page in Safari I get the error "Can''t find variable: mxn" and the map doesn''t load. > > http://mapstraction.appspot.com/ > mapstraction.googlecode.com/svn/trunk/source/mxn.core.js:6ReferenceError: Can''t find variable: mxn > > I''ve seen a few old posts in the list archives about similar problems and it seems to be related to the loading order of the mapstraction scripts in webkit. > It would appear that this is still an issue. > Phill > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
There''s an open issue for this, though the code examples seem to have been lost: https://github.com/mapstraction/mxn/issues#issue/21 Loading the mapstraction scripts explicitly in the correct order works. There is discussion of at least one other method here: http://lists.mapstraction.com/htdig.cgi/mapstraction-mapstraction.com/2010-May/000804.html -dylan- On Fri, Jan 7, 2011 at 12:01 AM, Phill <phill at bicispace.com> wrote:> This is really disappointing - the project looks great and I purchased the > ''Map Scripting 101'' book to make best use of it, however if it doesn''t work > properly in Safari then it''s a complete show-stopper for any serious mapping > project. > > Is this a known issue that is being worked on and likely to be fixed in the > near future? > > I really hope so as I''d like to make use of the project and not regret my > book purchase. > > > On 04/gen/2011, at 08.21, Phill wrote: > > > In my app (v2.0.15) and on the mapstraction demo the first time I load > the page in Safari I get the error "Can''t find variable: mxn" and the map > doesn''t load. > > > > http://mapstraction.appspot.com/ > > mapstraction.googlecode.com/svn/trunk/source/mxn.core.js:6ReferenceError: > Can''t find variable: mxn > > > > I''ve seen a few old posts in the list archives about similar problems and > it seems to be related to the loading order of the mapstraction scripts in > webkit. > > It would appear that this is still an issue. > > Phill > > _______________________________________________ > > 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/20110107/2c69d869/attachment.htm>
Pablo López Escobés
2011-Jan-07 16:23 UTC
[Mapstraction] Webkit - can''t find variable: mxn
You can merge and compress all the necesarry scripts. Then, you won''t have problems with the load of scripts Regards Pablo L?pez 2011/1/7 Dylan Kuhn <dylankkuhn at gmail.com>> There''s an open issue for this, though the code examples seem to have been > lost: https://github.com/mapstraction/mxn/issues#issue/21 > > Loading the mapstraction scripts explicitly in the correct order works. > There is discussion of at least one other method here: > http://lists.mapstraction.com/htdig.cgi/mapstraction-mapstraction.com/2010-May/000804.html > > -dylan- > > > On Fri, Jan 7, 2011 at 12:01 AM, Phill <phill at bicispace.com> wrote: > >> This is really disappointing - the project looks great and I purchased the >> ''Map Scripting 101'' book to make best use of it, however if it doesn''t work >> properly in Safari then it''s a complete show-stopper for any serious mapping >> project. >> >> Is this a known issue that is being worked on and likely to be fixed in >> the near future? >> >> I really hope so as I''d like to make use of the project and not regret my >> book purchase. >> >> >> On 04/gen/2011, at 08.21, Phill wrote: >> >> > In my app (v2.0.15) and on the mapstraction demo the first time I load >> the page in Safari I get the error "Can''t find variable: mxn" and the map >> doesn''t load. >> > >> > http://mapstraction.appspot.com/ >> > >> mapstraction.googlecode.com/svn/trunk/source/mxn.core.js:6ReferenceError: >> Can''t find variable: mxn >> > >> > I''ve seen a few old posts in the list archives about similar problems >> and it seems to be related to the loading order of the mapstraction scripts >> in webkit. >> > It would appear that this is still an issue. >> > Phill >> > _______________________________________________ >> > 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 > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20110107/269108ea/attachment.htm>
Thanks, I think I''ll load the scripts explicitly for the time-being then combine + compress for production usage. Would be good if this worked out-of-the-box to avoid putting off other new users. On 07/gen/2011, at 17.23, Pablo L?pez Escob?s wrote:> You can merge and compress all the necesarry scripts. Then, you won''t have problems with the load of scripts > > Regards > Pablo L?pez > > 2011/1/7 Dylan Kuhn <dylankkuhn at gmail.com> > There''s an open issue for this, though the code examples seem to have been lost: https://github.com/mapstraction/mxn/issues#issue/21 > > Loading the mapstraction scripts explicitly in the correct order works. There is discussion of at least one other method here: http://lists.mapstraction.com/htdig.cgi/mapstraction-mapstraction.com/2010-May/000804.html > > -dylan- > > > On Fri, Jan 7, 2011 at 12:01 AM, Phill <phill at bicispace.com> wrote: > This is really disappointing - the project looks great and I purchased the ''Map Scripting 101'' book to make best use of it, however if it doesn''t work properly in Safari then it''s a complete show-stopper for any serious mapping project. > > Is this a known issue that is being worked on and likely to be fixed in the near future? > > I really hope so as I''d like to make use of the project and not regret my book purchase. > > > On 04/gen/2011, at 08.21, Phill wrote: > > > In my app (v2.0.15) and on the mapstraction demo the first time I load the page in Safari I get the error "Can''t find variable: mxn" and the map doesn''t load. > > > > http://mapstraction.appspot.com/ > > mapstraction.googlecode.com/svn/trunk/source/mxn.core.js:6ReferenceError: Can''t find variable: mxn > > > > I''ve seen a few old posts in the list archives about similar problems and it seems to be related to the loading order of the mapstraction scripts in webkit. > > It would appear that this is still an issue. > > Phill > > _______________________________________________ > > 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 > > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
I''m surprised this is still an issue. Will have to look at it ASAP. Derek On 8 January 2011 05:10, Phill <phill at bicispace.com> wrote:> Thanks, I think I''ll load the scripts explicitly for the time-being then > combine + compress for production usage. > Would be good if this worked out-of-the-box to avoid putting off other new > users. > > On 07/gen/2011, at 17.23, Pablo L?pez Escob?s wrote: > > > You can merge and compress all the necesarry scripts. Then, you won''t > have problems with the load of scripts > > > > Regards > > Pablo L?pez > > > > 2011/1/7 Dylan Kuhn <dylankkuhn at gmail.com> > > There''s an open issue for this, though the code examples seem to have > been lost: https://github.com/mapstraction/mxn/issues#issue/21 > > > > Loading the mapstraction scripts explicitly in the correct order works. > There is discussion of at least one other method here: > http://lists.mapstraction.com/htdig.cgi/mapstraction-mapstraction.com/2010-May/000804.html > > > > -dylan- > > > > > > On Fri, Jan 7, 2011 at 12:01 AM, Phill <phill at bicispace.com> wrote: > > This is really disappointing - the project looks great and I purchased > the ''Map Scripting 101'' book to make best use of it, however if it doesn''t > work properly in Safari then it''s a complete show-stopper for any serious > mapping project. > > > > Is this a known issue that is being worked on and likely to be fixed in > the near future? > > > > I really hope so as I''d like to make use of the project and not regret my > book purchase. > > > > > > On 04/gen/2011, at 08.21, Phill wrote: > > > > > In my app (v2.0.15) and on the mapstraction demo the first time I load > the page in Safari I get the error "Can''t find variable: mxn" and the map > doesn''t load. > > > > > > http://mapstraction.appspot.com/ > > > > mapstraction.googlecode.com/svn/trunk/source/mxn.core.js:6ReferenceError: > Can''t find variable: mxn > > > > > > I''ve seen a few old posts in the list archives about similar problems > and it seems to be related to the loading order of the mapstraction scripts > in webkit. > > > It would appear that this is still an issue. > > > Phill > > > _______________________________________________ > > > 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 > > > > > > _______________________________________________ > > 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 >-- 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/20110123/fd362aa6/attachment.htm>