[MapQuery] goto function
Volker Mische
volker.mische at gmail.com
Mon Jul 25 05:29:18 EDT 2011
Hi Steven,
ok, so I zoom into a location and you set the zoom of the map center. I
don't like "center" that much, it's kind of a "no name" function to me,
without context it's not really clear to me what it does.
Though I don't like "location" well enough and we didn't get any other
propositions. So I'm happy to change it to "center" when more people
(like you and Drew) prefer it.
Cheers,
Volker
On 07/25/2011 01:30 AM, Steven M. Ottens wrote:
> I like center, you can center on a point or on a box and center(zoom)
> makes slightly more sense then location(zoom)
>
> I will miss goto() though ;)
>
> Op 7/18/2011 2:40 AM, Drew Wells schreef:
>> Here's one from left field, how about center(), if goto does what I
>> think it does. It's a getter/setter and pseudo aligns with some OL
>> stuff related to the concept. I think they use map.setCenter,
>> map.getCenter.
>>
>> -Drew
>>
>> On Sun, Jul 17, 2011 at 8:36 PM, Volker Mische
>> <volker.mische at gmail.com <mailto:volker.mische at gmail.com>> wrote:
>>
>> Hi all,
>>
>> I just found out that "goto" is a future reserved word in
>> ECMAScript 3 but not in ECMAScript 5. This means we can use it in
>> the future ;)
>>
>> This is probably also the reason why so many minifiers crash on
>> the goto function. Although I really like the name, we might
>> should think about changing the name. I have two propositions
>> (feel free to add your own).
>>
>> 1. go
>>
>> Rename "goto" to "go". It doesn't clash with any (future) reserved
>> word and is even shorter
>>
>> 2. loc/location
>>
>> Rename it to "location," or if that's too long just "loc". We
>> don't use any abbreviations at the moment (we use "position", and
>> not "pos"). So "location" would be more consistent. I actually
>> prefer "location" over "go". The reason is that the current "goto"
>> acts as a getter and as a setter, but "goto" is a verb. It makes
>> way more sense to use a subject for things you can set and get
>> (some might call it a resource). You can set a location and get a
>> location, but how to you get a "goto"?
>>
>> Cheers,
>> Volker
>> _______________________________________________
>> MapQuery mailing list
>> MapQuery at lists.osgeo.org <mailto:MapQuery at lists.osgeo.org>
>> http://lists.osgeo.org/mailman/listinfo/mapquery
>>
>>
>>
>>
>> _______________________________________________
>> MapQuery mailing list
>> MapQuery at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapquery
>
>
>
> _______________________________________________
> MapQuery mailing list
> MapQuery at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapquery
More information about the MapQuery
mailing list