Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Assigning Map Markers to a minimum zoom level

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
hemmeter
Smarty Rookie


Joined: 23 Aug 2006
Posts: 12
Location: California

PostPosted: Wed Feb 13, 2008 11:25 pm    Post subject: Assigning Map Markers to a minimum zoom level Reply with quote

I have a scenario where a particular query might pull up ~2000 records. Adding 2000 individual markers to a map causes the page to load really slow.

What I'd like to do is the following. Please tell me how I might go about this or if you recommend some other approach.

- If a query is of a certain size, I will create "Summary Markers". Thus, there might be a single marker in Southern Cal where the Info Window says "50 records are located in this area. Zoom in to see them in detail."

- A user zooms into an area. Once they reach a certain zoom level, all of the individual markers that would have normally been in that area appear.

To do this, I'd need to add some kind of event logic (I think) based upon zoom changes and also be able to dynamically know what the lat/lon values are on the corners of the map and only show markers that are within that.

Make sense?

In short, I want my users to query only once, but have the results load dynamically based upon the zoom level and viewing area of the map.

Any help/guidance is appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP