Skip to main content
Bumped by Community user
Removed Q1 & Q3 to focus on Q2
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

I am new to mapping and displaying data on maps. I was trying to display markers on a map where each marker represents a point of interest on my map. Using leaflet it is quite straight forward to add such markers.

My concern is what happens if I have many (lets say 400,000) such points spread (or actually clustered) around the world.

I was thinking that it would be nice if I could get the data from my server based on tiles, i.e. if I could provide an API from my server that will return per tile (JSON) data and this data would be available for my to render on the map (or on the tile) using some form of "tileDataAdded" and "tileDataRemoved".

On the server side if the zoom level is too low I can just return the number of relevant points in the time (possibly with some average latlang) to allow some form of clustering display and if there is reasonable amount of data then it can be returned at its raw form.

SoIs there something like this that is already built or does my Q's are:thinking that I should create some DataLayer class that implements ILayer makes some sense?

  1. Being new to this area - I would like to know if this sounds reasonable at all?

  2. Is is there something like this that is already built? Or does my thinking that I should create some DataLayer class that implements ILayer makes some sense?

  3. Is there any other aspect of this issue that I should consider?

I am new to mapping and displaying data on maps. I was trying to display markers on a map where each marker represents a point of interest on my map. Using leaflet it is quite straight forward to add such markers.

My concern is what happens if I have many (lets say 400,000) such points spread (or actually clustered) around the world.

I was thinking that it would be nice if I could get the data from my server based on tiles, i.e. if I could provide an API from my server that will return per tile (JSON) data and this data would be available for my to render on the map (or on the tile) using some form of "tileDataAdded" and "tileDataRemoved".

On the server side if the zoom level is too low I can just return the number of relevant points in the time (possibly with some average latlang) to allow some form of clustering display and if there is reasonable amount of data then it can be returned at its raw form.

So my Q's are:

  1. Being new to this area - I would like to know if this sounds reasonable at all?

  2. Is is there something like this that is already built? Or does my thinking that I should create some DataLayer class that implements ILayer makes some sense?

  3. Is there any other aspect of this issue that I should consider?

I am new to mapping and displaying data on maps. I was trying to display markers on a map where each marker represents a point of interest on my map. Using leaflet it is quite straight forward to add such markers.

My concern is what happens if I have many (lets say 400,000) such points spread (or actually clustered) around the world.

I was thinking that it would be nice if I could get the data from my server based on tiles, i.e. if I could provide an API from my server that will return per tile (JSON) data and this data would be available for my to render on the map (or on the tile) using some form of "tileDataAdded" and "tileDataRemoved".

On the server side if the zoom level is too low I can just return the number of relevant points in the time (possibly with some average latlang) to allow some form of clustering display and if there is reasonable amount of data then it can be returned at its raw form.

Is there something like this that is already built or does my thinking that I should create some DataLayer class that implements ILayer makes some sense?

Edited title, spelling, improved formatting, removed unnecessary thanks
Source Link

serving Serving data based on tiles

I am new to mapping and displaying data on maps. I I was trying to display markers on a map where each marker represents a point of interest on my map. Using leaflet it is quite straight forward to add such markers.

myMy concern is what happens if I have many (lets say 400,000) such points spread (or actually clustered) around the world.

I was thinking that it would be nice if I could get the data from my server based on tiles, i.e. if I could provide an API from my server that will return per tile (JSON) data and this data would be available for my to render on the map (or on the tile) using some form of "tileDataAdded" and "tileDataRemoved".

On the server side if the zoom level is too low I can just return the number of relevant points in the time (possibly with some average latlang) to allow some form of clustering display and if there is reasonable amount of data then it can be returned at its raw form.

soSo my Q's are:

  1. Being new to this area - I would like to know if this sound reasonable at all?

    Being new to this area - I would like to know if this sounds reasonable at all?

  2. Is is there something like this that is already built? or does my thinking that I should create some DataLayer class that implements ILayer makes some sense?

    Is is there something like this that is already built? Or does my thinking that I should create some DataLayer class that implements ILayer makes some sense?

  3. Is there any other aspect of this issue that I should consider?

    Is there any other aspect of this issue that I should consider?

thanks

serving data based on tiles

I am new to mapping and displaying data on maps. I was trying to display markers on a map where each marker represents a point of interest on my map. Using leaflet it is quite straight forward to add such markers.

my concern is what happens if I have many (lets say 400,000) such points spread (or actually clustered) around the world.

I was thinking that it would be nice if I could get the data from my server based on tiles, i.e. if I could provide an API from my server that will return per tile (JSON) data and this data would be available for my to render on the map (or on the tile) using some form of "tileDataAdded" and "tileDataRemoved".

On the server side if the zoom level is too low I can just return the number of relevant points in the time (possibly with some average latlang) to allow some form of clustering display and if there is reasonable amount of data then it can be returned at its raw form.

so my Q's are:

  1. Being new to this area - I would like to know if this sound reasonable at all?
  2. Is is there something like this that is already built? or does my thinking that I should create some DataLayer class that implements ILayer makes some sense?
  3. Is there any other aspect of this issue that I should consider?

thanks

Serving data based on tiles

I am new to mapping and displaying data on maps. I was trying to display markers on a map where each marker represents a point of interest on my map. Using leaflet it is quite straight forward to add such markers.

My concern is what happens if I have many (lets say 400,000) such points spread (or actually clustered) around the world.

I was thinking that it would be nice if I could get the data from my server based on tiles, i.e. if I could provide an API from my server that will return per tile (JSON) data and this data would be available for my to render on the map (or on the tile) using some form of "tileDataAdded" and "tileDataRemoved".

On the server side if the zoom level is too low I can just return the number of relevant points in the time (possibly with some average latlang) to allow some form of clustering display and if there is reasonable amount of data then it can be returned at its raw form.

So my Q's are:

  1. Being new to this area - I would like to know if this sounds reasonable at all?

  2. Is is there something like this that is already built? Or does my thinking that I should create some DataLayer class that implements ILayer makes some sense?

  3. Is there any other aspect of this issue that I should consider?

Source Link
epeleg
  • 111
  • 2

serving data based on tiles

I am new to mapping and displaying data on maps. I was trying to display markers on a map where each marker represents a point of interest on my map. Using leaflet it is quite straight forward to add such markers.

my concern is what happens if I have many (lets say 400,000) such points spread (or actually clustered) around the world.

I was thinking that it would be nice if I could get the data from my server based on tiles, i.e. if I could provide an API from my server that will return per tile (JSON) data and this data would be available for my to render on the map (or on the tile) using some form of "tileDataAdded" and "tileDataRemoved".

On the server side if the zoom level is too low I can just return the number of relevant points in the time (possibly with some average latlang) to allow some form of clustering display and if there is reasonable amount of data then it can be returned at its raw form.

so my Q's are:

  1. Being new to this area - I would like to know if this sound reasonable at all?
  2. Is is there something like this that is already built? or does my thinking that I should create some DataLayer class that implements ILayer makes some sense?
  3. Is there any other aspect of this issue that I should consider?

thanks