Examples of Google Maps in Seaside

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Examples of Google Maps in Seaside

jgfoster
As a follow-up to our recent workshop at Santa Fe, I've put a  
Monticello package up at http://seaside.gemstone.com/ss/ 
GoogleMaps.html. This is based very closely on http://code.google.com/apis/maps/documentation/examples/ 
  in that it has hard-coded JavaScript. No effort yet in making a true  
OO library that provides Smalltalk objects to manage the underlying  
maps. Mostly, this is a research effort to discover what capabilities  
are being exposed by the examples and put them in Smalltalk classes.

If you want to be added as a developer on the repository, let me know.

James Foster
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Examples of Google Maps in Seaside

Mariano Martinez Peck


On Mon, Apr 6, 2009 at 11:12 AM, James Foster <[hidden email]> wrote:
As a follow-up to our recent workshop at Santa Fe, I've put a Monticello package up at http://seaside.gemstone.com/ss/GoogleMaps.html. This is based very closely on http://code.google.com/apis/maps/documentation/examples/ in that it has hard-coded JavaScript. No effort yet in making a true OO library that provides Smalltalk objects to manage the underlying maps. Mostly, this is a research effort to discover what capabilities are being exposed by the examples and put them in Smalltalk classes.

If you want to be added as a developer on the repository, let me know.

I need something like this :)

Is this compatible with squeak/pharo?

Thanks in advance,

Mariano
 

James Foster
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Examples of Google Maps in Seaside

jgfoster
On Apr 7, 2009, at 4:22 PM, Mariano Martinez Peck wrote:

On Mon, Apr 6, 2009 at 11:12 AM, James Foster <[hidden email]> wrote:
As a follow-up to our recent workshop at Santa Fe, I've put a Monticello package up at http://seaside.gemstone.com/ss/GoogleMaps.html. This is based very closely on http://code.google.com/apis/maps/documentation/examples/ in that it has hard-coded JavaScript. No effort yet in making a true OO library that provides Smalltalk objects to manage the underlying maps. Mostly, this is a research effort to discover what capabilities are being exposed by the examples and put them in Smalltalk classes.

If you want to be added as a developer on the repository, let me know.

I need something like this :)

Is this compatible with squeak/pharo?

It should be fine in Squea/Pharo, though I'm doing my development in GemStone and haven't recently tested everything in Squeak. Feel free to let me know if you find problems. Just load the Monticello package...

James

Thanks in advance,

Mariano 

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Examples of Google Maps in Seaside

Timothy James Ziebart
James Foster wrote:
On Apr 7, 2009, at 4:22 PM, Mariano Martinez Peck wrote:

On Mon, Apr 6, 2009 at 11:12 AM, James Foster <[hidden email]> wrote:
As a follow-up to our recent workshop at Santa Fe, I've put a Monticello package up at http://seaside.gemstone.com/ss/GoogleMaps.html. This is based very closely on http://code.google.com/apis/maps/documentation/examples/ in that it has hard-coded JavaScript. No effort yet in making a true OO library that provides Smalltalk objects to manage the underlying maps. Mostly, this is a research effort to discover what capabilities are being exposed by the examples and put them in Smalltalk classes.

If you want to be added as a developer on the repository, let me know.

I need something like this :)

Is this compatible with squeak/pharo?

It should be fine in Squea/Pharo, though I'm doing my development in GemStone and haven't recently tested everything in Squeak. Feel free to let me know if you find problems. Just load the Monticello package...

James

Thanks in advance,

Mariano 

_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Hi James,
when loading the latest into pharo (#10213) the installer complains about a missing class: BinaryFloat.  Unable to load definition BinaryFloat>>gmAsString

Haven't  been able to determine if the class is part of any other package.  Any suggestions would help. 
Thank you.

Tim

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Examples of Google Maps in Seaside

jgfoster
On Apr 8, 2009, at 9:49 AM, Timothy James Ziebart wrote:

Hi James,
when loading the latest into pharo (#10213) the installer complains about a missing class: BinaryFloat.  Unable to load definition BinaryFloat>>gmAsString

Haven't  been able to determine if the class is part of any other package.  Any suggestions would help. 
Thank you.

Tim

Good catch! BinaryFloat is in GemStone but not in Squeak. I've moved the method up to Number to avoid this problem. Try loading GoogleMaps-jgf.12.mcz and let me know.

James

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Examples of Google Maps in Seaside

Timothy James Ziebart
James Foster wrote:
On Apr 8, 2009, at 9:49 AM, Timothy James Ziebart wrote:

Hi James,
when loading the latest into pharo (#10213) the installer complains about a missing class: BinaryFloat.  Unable to load definition BinaryFloat>>gmAsString

Haven't  been able to determine if the class is part of any other package.  Any suggestions would help. 
Thank you.

Tim

Good catch! BinaryFloat is in GemStone but not in Squeak. I've moved the method up to Number to avoid this problem. Try loading GoogleMaps-jgf.12.mcz and let me know.

James

_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

That solved but I get the following error in syntax:

GMTestLatLng other testNothing

testNothing more expected ->_gmAsString

    | gLatLng string |
    gLatLng := GLatLng
        latitude: 45
        longitude: -122.
    string := gLatLng gmAsString.
    self assert: string = 'new GLatLng(45,-122)'.

Tim

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Examples of Google Maps in Seaside

Frank Shearar
Timothy James Ziebart wrote:

> James Foster wrote:
>> On Apr 8, 2009, at 9:49 AM, Timothy James Ziebart wrote:
>>>>
>>> Hi James,
>>> when loading the latest into pharo (#10213) the installer complains
>>> about a *missing class: BinaryFloat.  Unable to load definition
>>> BinaryFloat>>gmAsString*.
>>>
>>> Haven't  been able to determine if the class is part of any other
>>> package.  Any suggestions would help.
>>> Thank you.
>>>
>>> Tim
>>
>> Good catch! BinaryFloat is in GemStone but not in Squeak. I've moved
>> the method up to Number to avoid this problem. Try loading
>> GoogleMaps-jgf.12.mcz and let me know.
>>
>> James
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>  
>
> That solved but I get the following error in syntax:
>
> GMTestLatLng other testNothing
>
> testNothing more expected ->_gmAsString
>
>     | gLatLng string |
>     gLatLng := GLatLng
>         latitude: 45
>         longitude: -122.
>     string := gLatLng gmAsString.
>     self assert: string = 'new GLatLng(45,-122)'.
Remove the _ from the method name. Perhaps you can copy the code to a
method called testNothingGmAsString, and then remove the original method?

frank
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Examples of Google Maps in Seaside

jgfoster

On Apr 8, 2009, at 11:43 AM, Frank Shearar wrote:

> Timothy James Ziebart wrote:
>>
>>
>> That solved but I get the following error in syntax:
>>
>> GMTestLatLng other testNothing
>>
>> testNothing more expected ->_gmAsString
>>
>>   | gLatLng string |
>>   gLatLng := GLatLng
>>       latitude: 45
>>       longitude: -122.
>>   string := gLatLng gmAsString.
>>   self assert: string = 'new GLatLng(45,-122)'.
> Remove the _ from the method name. Perhaps you can copy the code to  
> a method called testNothingGmAsString, and then remove the original  
> method?
>
> frank

Yes, GemStone allows underscore in method names. Try GoogleMaps-jgf.
14.mcz.

Jamse

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Examples of Google Maps in Seaside

Mariano Martinez Peck


On Wed, Apr 8, 2009 at 3:52 PM, James Foster <[hidden email]> wrote:

On Apr 8, 2009, at 11:43 AM, Frank Shearar wrote:


Timothy James Ziebart wrote:


That solved but I get the following error in syntax:

GMTestLatLng other testNothing

testNothing more expected ->_gmAsString

 | gLatLng string |
 gLatLng := GLatLng
     latitude: 45
     longitude: -122.
 string := gLatLng gmAsString.
 self assert: string = 'new GLatLng(45,-122)'.
Remove the _ from the method name. Perhaps you can copy the code to a method called testNothingGmAsString, and then remove the original method?

frank

Yes, GemStone allows underscore in method names. Try GoogleMaps-jgf.14.mcz.


Nice!!! It works perfect now. Thanks a lot James. I will use it for a informal tourism webpage I am making :)

Cheers and thanks for sharing this with us.

Mariano
 

Jamse


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside