0

There are a lot of POIS in the database with fileds id name address lon lat.

When we tried to query some points for a given bounding box, it is simple to build the accordingly sql and get the results, however we found that the distribution of the result are not desired(see the left image below):

enter image description here

While we want the results of every page distributed evenly in the view port like the image in the right.

Is this possible?

  • What is actually being displayed in the result - the bounding box extent or the extent of the result? If the bounding box, point distribution is going to depend on the proximity of the points themselves within the box. If you want things to always spread out and 'fill' the view as on the right, you need to select by bounding box and then get the extent of the resulting selection to use as the view extent. – Chris W Feb 14 '15 at 21:11
  • I know your meaning, first select points by the condition and then calculate the bounding box of the result set, and then set the view port to fit the bbox, however the zoom level can not be increased more, in the above example, both of them are at the 20 zoom. – giser Feb 26 '15 at 0:17
  • If that's the case I don't think there's a solution if you're already at max zoom/scale; the points are simply too close together for the maximum scale/resolution available. If you can indicate the software/API/etc. you are using, someone with expertise in it might know of or be able to suggest a workaround. – Chris W Feb 26 '15 at 0:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.