Zoom optimizations

2 views
Skip to first unread message

Harri

unread,
May 9, 2011, 11:56:35 AM5/9/11
to Cartagen
Hi,

Is there an option to avoid the zoom optimizations. I use quite narrow
zoom limit (1.2) but it doesn't show all elements unless I zoom in
very much, which I would like not to do.

Br,

Harri

Jeffrey Warren

unread,
May 16, 2011, 12:26:30 PM5/16/11
to cartag...@googlegroups.com
You can tweak them in the code, but one as-yet unimplemented improvement was to have a zoom-level visibility range for each  feature type, based on tags or bounding box size, in GSS. This is a tough problem technically. 

have been thinking of cleaning up Cartagen for a 2.0 release which would separate the JS layer from the server side and include many extra features and optimizations. But alas I find myself without a great deal of time to do so. 

Jeff


--
You received this message because you are subscribed to the Google Groups "Cartagen" group.
To post to this group, send email to cartag...@googlegroups.com.
To unsubscribe from this group, send email to cartagen-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cartagen-dev?hl=en.


Harri

unread,
May 17, 2011, 9:03:06 AM5/17/11
to Cartagen
If I just would like to turn it off, which method I should look into?

Harri

unread,
May 19, 2011, 7:18:20 AM5/19/11
to Cartagen
Ok, I solved it.

One needs to change line 7996 in cartagen.js from
this.keys.keys().each(function(key) {
to
this.hash.keys().each(function(key) {

With this solutions it does some unnecessary calculations, but it
worked for me.

Harri

Jeffrey Warren

unread,
May 19, 2011, 3:30:40 PM5/19/11
to cartag...@googlegroups.com
cool, glad you were able to figure it out!!

Is your map online, and would you mind posting a link? I'd love to see it.

Jeff

acme123

unread,
Jun 25, 2011, 9:00:09 AM6/25/11
to Cartagen
Here's one request for that as-yet unimplemented zoom-level visibility
feature :) That would be a huge help.

Are you available for commercial work for customizations, by any
chance?

Andy
Reply all
Reply to author
Forward
0 new messages