I noticed that my Mapstraction maps no longer worked, so I tried moving them
to v2 and kept getting an error (uncaught syntax error: unexpected token <)
I couldn''t solve. So I moved back to v1, but got a "Mapstraction
pollute
mode naming clash" error. I''ve got one of each now:
http://bethleedesign.com/review/maptlh.php is v1 using the mapstraction.js
file from http://mapstraction.com/doc/. It has the naming clash, but works
after that error is shown.
http://bethleedesign.com/review/mapbzn.php is v2.
Montana *is* sparse, but not quite this sparse.
At first I tried the sandbox method, which is using googlecode. Is that old
information? I am using the files from github. Anyway, same uncaught syntax
error.
I tried v1 syntax with the added "mxn", I that is not recognized.
var marker = new mxn.Marker( new LatLonPoint(45.660127,-111.04311)
);
marker.setInfoBubble("Museum of the Rockies -- all about
dinosaurs");
mapstraction.addMarker( marker );
So I''ve commented that out and left the v2 code.
Any clues?
Beth
Hello,
try to use the class mxn.LatLonPoint instead of LatLonPoint in your v2 code.
--
Saludos,
Pablo L?pez Escob?s
2010/8/26 Beth Lee <callibeth at gmail.com>
> I noticed that my Mapstraction maps no longer worked, so I tried moving
> them
> to v2 and kept getting an error (uncaught syntax error: unexpected token
<)
> I couldn''t solve. So I moved back to v1, but got a
"Mapstraction pollute
> mode naming clash" error. I''ve got one of each now:
>
> http://bethleedesign.com/review/maptlh.php is v1 using the mapstraction.js
> file from http://mapstraction.com/doc/. It has the naming clash, but works
> after that error is shown.
>
> http://bethleedesign.com/review/mapbzn.php is v2.
> Montana *is* sparse, but not quite this sparse.
>
> At first I tried the sandbox method, which is using googlecode. Is that old
> information? I am using the files from github. Anyway, same uncaught syntax
> error.
>
>
> I tried v1 syntax with the added "mxn", I that is not recognized.
> var marker = new mxn.Marker( new LatLonPoint(45.660127,-111.04311)
> );
> marker.setInfoBubble("Museum of the Rockies -- all about
> dinosaurs");
> mapstraction.addMarker( marker );
>
> So I''ve commented that out and left the v2 code.
>
> Any clues?
>
> Beth
>
> _______________________________________________
> 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/20100826/7439e213/attachment.htm>
In the v1 example you''ve commented out the surrounding self-executing
function i.e. near the start
//(function(){
and at the end
//})();
This is what is causing the alert to be shown.
Derek
2010/8/26 Pablo L?pez Escob?s <plopesc at gmail.com>
> Hello,
>
> try to use the class mxn.LatLonPoint instead of LatLonPoint in your v2
> code.
>
> --
> Saludos,
> Pablo L?pez Escob?s
>
>
> 2010/8/26 Beth Lee <callibeth at gmail.com>
>
> I noticed that my Mapstraction maps no longer worked, so I tried moving
>> them
>> to v2 and kept getting an error (uncaught syntax error: unexpected
token
>> <)
>> I couldn''t solve. So I moved back to v1, but got a
"Mapstraction pollute
>> mode naming clash" error. I''ve got one of each now:
>>
>> http://bethleedesign.com/review/maptlh.php is v1 using the
>> mapstraction.js
>> file from http://mapstraction.com/doc/. It has the naming clash, but
>> works
>> after that error is shown.
>>
>> http://bethleedesign.com/review/mapbzn.php is v2.
>> Montana *is* sparse, but not quite this sparse.
>>
>> At first I tried the sandbox method, which is using googlecode. Is that
>> old
>> information? I am using the files from github. Anyway, same uncaught
>> syntax
>> error.
>>
>>
>> I tried v1 syntax with the added "mxn", I that is not
recognized.
>> var marker = new mxn.Marker( new
LatLonPoint(45.660127,-111.04311)
>> );
>> marker.setInfoBubble("Museum of the Rockies -- all about
>> dinosaurs");
>> mapstraction.addMarker( marker );
>>
>> So I''ve commented that out and left the v2 code.
>>
>> Any clues?
>>
>> Beth
>>
>> _______________________________________________
>> 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/20100826/58f458a4/attachment.htm>
Thanks for the pointer, but no joy.
I?ve split the two methods into 2 files:
http://bethleedesign.com/review/mapbzn.php has the v1 syntax but with mxn, using
github js files.
http://bethleedesign.com/review/mapbzn2.php has the v2 syntax from the v2
sandbox, using github files.
Neither shows a map, and both show "uncaught syntax error: unexpected token
<" for each of the 3 included js files.
As I said earlier, when I include the js from mapstraction.com, I don''t
get the uncaught syntax error, but I do get a naming clash. And the map does
actually appear:
http://bethleedesign.com/review/maptlh.php
Beth
From: mapstraction-bounces at lists.mapstraction.com
[mailto:mapstraction-bounces at lists.mapstraction.com] On Behalf Of Pablo L?pez
Escob?s
Sent: Thursday, August 26, 2010 9:49 AM
To: mapstraction at lists.mapstraction.com
Subject: Re: [Mapstraction] Switching from v1 to v2
Hello,
try to use the class mxn.LatLonPoint instead of LatLonPoint in your v2 code.
--
Saludos,
Pablo L?pez Escob?s
I don''t see that? I had commented out entire approaches, but not the
function.
They''re split now, with no js commenting:
http://bethleedesign.com/review/mapbzn.php
http://bethleedesign.com/review/mapbzn2.php
Same results as before. It seems to be something to do with calling the new
script files. I don''t get the uncaught errors when I link to the old
mapstraction.js.
Beth
From: mapstraction-bounces at lists.mapstraction.com
[mailto:mapstraction-bounces at lists.mapstraction.com] On Behalf Of Derek
Fowler
Sent: Thursday, August 26, 2010 10:30 AM
To: mapstraction at lists.mapstraction.com
Subject: Re: [Mapstraction] Switching from v1 to v2
In the v1 example you''ve commented out the surrounding self-executing
function i.e. near the start
//(function(){
and at the end
//})();
This is what is causing the alert to be shown.
Derek
I tried v1 syntax with the added "mxn", I that is not recognized.
? ? ? ?var marker = new mxn.Marker( new LatLonPoint(45.660127,-111.04311)
);
? ? ? ?marker.setInfoBubble("Museum of the Rockies -- all about
dinosaurs");
? ? ? ?mapstraction.addMarker( marker );
So I''ve commented that out and left the v2 code.
Any clues?
Beth
_______________________________________________
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
The Mapstraction code doesn''t appear to be loaded. If you go straight to one of the JS files, you get HTML: http://bethleedesign.com/mapstraction/mxn-core.js On Thu, Aug 26, 2010 at 9:45 AM, Beth Lee <callibeth at gmail.com> wrote:> I don''t see that? I had commented out entire approaches, but not the > function. > They''re split now, with no js commenting: > > http://bethleedesign.com/review/mapbzn.php > > http://bethleedesign.com/review/mapbzn2.php > > Same results as before. It seems to be something to do with calling the new > script files. I don''t get the uncaught errors when I link to the old > mapstraction.js. > > > Beth > > From: mapstraction-bounces at lists.mapstraction.com > [mailto:mapstraction-bounces at lists.mapstraction.com] On Behalf Of Derek > Fowler > Sent: Thursday, August 26, 2010 10:30 AM > To: mapstraction at lists.mapstraction.com > Subject: Re: [Mapstraction] Switching from v1 to v2 > > In the v1 example you''ve commented out the surrounding self-executing > function i.e. near the start > > //(function(){ > > and at the end > > > //})(); > This is what is causing the alert to be shown. > > Derek > > > I tried v1 syntax with the added "mxn", I that is not recognized. > var marker = new mxn.Marker( new LatLonPoint(45.660127,-111.04311) > ); > marker.setInfoBubble("Museum of the Rockies -- all about > dinosaurs"); > mapstraction.addMarker( marker ); > > So I''ve commented that out and left the v2 code. > > Any clues? > > Beth > > _______________________________________________ > 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 > > _______________________________________________ > 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/20100826/6ddc4f21/attachment-0001.htm>
Argh. Thanks. Yes, I?ve fixed the typos, caused by me trying different fixes
and just mucking it up.
In mapbzn.php I get 3 errors ?
1. Uncaught ReferenceError: mxn is not defined mxn.cor.js: line 18
2. Uncaught SyntaxError: Unexpected token < mxn.google.js: line 1
3. Uncaught ReferenceError: LatLon Point is not defined. mapbzn.php:
line 35
In mapbzn2.php I get the same first 2 errors, but not the third.
Beth
From: mapstraction-bounces at lists.mapstraction.com
[mailto:mapstraction-bounces at lists.mapstraction.com] On Behalf Of Adam
DuVander
Sent: Thursday, August 26, 2010 10:52 AM
To: mapstraction at lists.mapstraction.com
Cc: allibeth at gmail.com
Subject: Re: [Mapstraction] Switching from v1 to v2
The Mapstraction code doesn''t appear to be loaded. If you go straight
to one
of the JS files, you get HTML:
http://bethleedesign.com/mapstraction/mxn-core.js
On Thu, Aug 26, 2010 at 9:45 AM, Beth Lee <callibeth at gmail.com> wrote:
I don''t see that? I had commented out entire approaches, but not the
function.
They''re split now, with no js commenting:
http://bethleedesign.com/review/mapbzn.php
http://bethleedesign.com/review/mapbzn2.php
Same results as before. It seems to be something to do with calling the new
script files. I don''t get the uncaught errors when I link to the old
mapstraction.js.
Beth
From: mapstraction-bounces at lists.mapstraction.com
[mailto:mapstraction-bounces at lists.mapstraction.com] On Behalf Of Derek
Fowler
Sent: Thursday, August 26, 2010 10:30 AM
To: mapstraction at lists.mapstraction.com
Subject: Re: [Mapstraction] Switching from v1 to v2
In the v1 example you''ve commented out the surrounding self-executing
function i.e. near the start
//(function(){
and at the end
//})();
This is what is causing the alert to be shown.
Derek
I tried v1 syntax with the added "mxn", I that is not recognized.
? ? ? ?var marker = new mxn.Marker( new LatLonPoint(45.660127,-111.04311)
);
? ? ? ?marker.setInfoBubble("Museum of the Rockies -- all about
dinosaurs");
? ? ? ?mapstraction.addMarker( marker );
So I''ve commented that out and left the v2 code.
Any clues?
Beth
_______________________________________________
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
_______________________________________________
Mapstraction mailing list
Mapstraction at lists.mapstraction.com
http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com