Adam DuVander
2010-Jan-27 04:14 UTC
[Mapstraction] "API ID not available" error in toProprietary()
Hi all, An exception is bubbling up to core whenever the toProprietary() function is called. This appears to happen in all providers. To see it in action, add this line... var yahoopt = mapstraction.getCenter().toProprietary(); ... at the bottom of the initialize function in the Sandbox: http://mapstraction.appspot.com/ Any ideas? --Adam --- Adam DuVander I like maps: http://mapscripting.com I like simple: http://adamduvander.com
Derek Fowler
2010-Jan-27 08:14 UTC
[Mapstraction] "API ID not available" error in toProprietary()
toProprietary() takes an API ID as its first argument. Any of the mxn types that you can create independent of a map don''t have an intrinsic API ID the way the main Mapstraction type does. When you add one of these to a map the map object calls toProprietary() passing in its current API ID; if you call toProprietary() yourself you need to supply the ID. The provider code doesn''t show this additional argument - it''s on the proxy method of the core type only. The invoker code uses it to pass the call on to the correct implementation and strips it off the arguments before it gets there. Derek 2010/1/27 Adam DuVander <mapstraction at duvander.com>> Hi all, > > An exception is bubbling up to core whenever the toProprietary() function > is called. This appears to happen in all providers. > > To see it in action, add this line... > var yahoopt = mapstraction.getCenter().toProprietary(); > > ... at the bottom of the initialize function in the Sandbox: > http://mapstraction.appspot.com/ > > Any ideas? > --Adam > --- > Adam DuVander > I like maps: http://mapscripting.com > I like simple: http://adamduvander.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/20100127/a9341426/attachment.htm>
Adam DuVander
2010-Jan-27 17:09 UTC
[Mapstraction] "API ID not available" error in toProprietary()
Aha! That makes sense and even familiar (I searched the list!) We should find some way to make that clearer. Maybe a comment in the provider function? --- Adam DuVander I like maps: http://mapscripting.com I like simple: http://adamduvander.com On Jan 27, 2010, at 12:14 AM, Derek Fowler wrote:> toProprietary() takes an API ID as its first argument. Any of the > mxn types that you can create independent of a map don''t have an > intrinsic API ID the way the main Mapstraction type does. When you > add one of these to a map the map object calls toProprietary() > passing in its current API ID; if you call toProprietary() yourself > you need to supply the ID. > > The provider code doesn''t show this additional argument - it''s on > the proxy method of the core type only. The invoker code uses it to > pass the call on to the correct implementation and strips it off the > arguments before it gets there. > > Derek > > 2010/1/27 Adam DuVander <mapstraction at duvander.com> > Hi all, > > An exception is bubbling up to core whenever the toProprietary() > function is called. This appears to happen in all providers. > > To see it in action, add this line... > var yahoopt = mapstraction.getCenter().toProprietary(); > > ... at the bottom of the initialize function in the Sandbox: > http://mapstraction.appspot.com/ > > Any ideas? > --Adam > --- > Adam DuVander > I like maps: http://mapscripting.com > I like simple: http://adamduvander.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
Derek Fowler
2010-Jan-27 17:18 UTC
[Mapstraction] "API ID not available" error in toProprietary()
I''m actually in the process of adding a ton of comments, including that one. May be able to finish it up and check it in tonight. Derek 2010/1/27 Adam DuVander <mapstraction at duvander.com>> Aha! That makes sense and even familiar (I searched the list!) We should > find some way to make that clearer. Maybe a comment in the provider > function? > > > --- > Adam DuVander > I like maps: http://mapscripting.com > I like simple: http://adamduvander.com > > On Jan 27, 2010, at 12:14 AM, Derek Fowler wrote: > > toProprietary() takes an API ID as its first argument. Any of the mxn >> types that you can create independent of a map don''t have an intrinsic API >> ID the way the main Mapstraction type does. When you add one of these to a >> map the map object calls toProprietary() passing in its current API ID; if >> you call toProprietary() yourself you need to supply the ID. >> >> The provider code doesn''t show this additional argument - it''s on the >> proxy method of the core type only. The invoker code uses it to pass the >> call on to the correct implementation and strips it off the arguments before >> it gets there. >> >> Derek >> >> 2010/1/27 Adam DuVander <mapstraction at duvander.com> >> Hi all, >> >> An exception is bubbling up to core whenever the toProprietary() function >> is called. This appears to happen in all providers. >> >> To see it in action, add this line... >> var yahoopt = mapstraction.getCenter().toProprietary(); >> >> ... at the bottom of the initialize function in the Sandbox: >> http://mapstraction.appspot.com/ >> >> Any ideas? >> --Adam >> --- >> Adam DuVander >> I like maps: http://mapscripting.com >> I like simple: http://adamduvander.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 >> > >-- 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/20100127/7a2dca1d/attachment.htm>