You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Bruno Busco (JIRA)" <ji...@apache.org> on 2009/12/15 18:20:18 UTC
[jira] Created: (OFBIZ-3348) Showing multiple geopoints on a map
Showing multiple geopoints on a map
-----------------------------------
Key: OFBIZ-3348
URL: https://issues.apache.org/jira/browse/OFBIZ-3348
Project: OFBiz
Issue Type: Improvement
Components: framework
Reporter: Bruno Busco
Priority: Minor
Attachments: OFBIZ-3348 geoChart.patch
As discussed on the ML I need to show several geoPoint markers on a single map.
I searched for some helping tools in the framework and found the <screen name="geoLocation">
and the relative <request-map uri="geoLocation">
Unfortunately this can only be used to show on a Google Map a single geoPoint record providing its geoPointId.
In my application I have a sort of "event" entity.
Each event has the LAT and LON coordinates of where the event took place and I need to show on a map all the query-selected events.
In the attached patch there is an implementation of a "geoChart" framework screen that takes as input a geoChart map containing:
geoChart
- dataSourceId -> select the map system to be used (google, yahoo etc.) I do not like this mane. I think I will rename to mapProviderId but it is how it is named right now
- width
- height -> map dimensions
- center -> the center point of the map
- points -> the points array to be showed on the map
In the patch there are also some example screens (in the example application) to show how it works.
I think that the suggested screen is more general and can replace the actual one.
BTW:
1) Why the dataSourceId is in the GeoPoint entity ?
I think the GeoPointEntity should be independent of what map provider (if any) will be used to show it.
2) A further improvement to this will be to add an heatmap mode (just started looking at this code: http://code.google.com/p/jheatmap/) that can be used when points will be too many or whenever an average distribution is only required (but this will be another page).
I submit this patch in order to have a first review by you.
Thank you,
Bruno
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-3348) Showing multiple geopoints on a map
Posted by "Bruno Busco (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790995#action_12790995 ]
Bruno Busco commented on OFBIZ-3348:
------------------------------------
They don't define exactly the same coordinates for the same point?
That's interesting!
And how can this be used if the coordinated come from a GPS?
If one of the map provider introduce an error this should be compensated when placing the GepPoint on that map, not on the database.
Don't you think so?
> Showing multiple geopoints on a map
> -----------------------------------
>
> Key: OFBIZ-3348
> URL: https://issues.apache.org/jira/browse/OFBIZ-3348
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Bruno Busco
> Priority: Minor
> Attachments: OFBIZ-3348 geoChart.patch
>
>
> As discussed on the ML I need to show several geoPoint markers on a single map.
> I searched for some helping tools in the framework and found the <screen name="geoLocation">
> and the relative <request-map uri="geoLocation">
> Unfortunately this can only be used to show on a Google Map a single geoPoint record providing its geoPointId.
> In my application I have a sort of "event" entity.
> Each event has the LAT and LON coordinates of where the event took place and I need to show on a map all the query-selected events.
> In the attached patch there is an implementation of a "geoChart" framework screen that takes as input a geoChart map containing:
> geoChart
> - dataSourceId -> select the map system to be used (google, yahoo etc.) I do not like this mane. I think I will rename to mapProviderId but it is how it is named right now
> - width
> - height -> map dimensions
> - center -> the center point of the map
> - points -> the points array to be showed on the map
> In the patch there are also some example screens (in the example application) to show how it works.
> I think that the suggested screen is more general and can replace the actual one.
> BTW:
> 1) Why the dataSourceId is in the GeoPoint entity ?
> I think the GeoPointEntity should be independent of what map provider (if any) will be used to show it.
> 2) A further improvement to this will be to add an heatmap mode (just started looking at this code: http://code.google.com/p/jheatmap/) that can be used when points will be too many or whenever an average distribution is only required (but this will be another page).
> I submit this patch in order to have a first review by you.
> Thank you,
> Bruno
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-3348) Showing multiple geopoints on a map
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790954#action_12790954 ]
Jacques Le Roux commented on OFBIZ-3348:
----------------------------------------
Bruno,
Questions/Answers
# Because
** there are different rendering system
** (for now?) they don't define exactly the same coordinates for the same point. So to be accurate we introduced dataSourceId.
> Showing multiple geopoints on a map
> -----------------------------------
>
> Key: OFBIZ-3348
> URL: https://issues.apache.org/jira/browse/OFBIZ-3348
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Bruno Busco
> Priority: Minor
> Attachments: OFBIZ-3348 geoChart.patch
>
>
> As discussed on the ML I need to show several geoPoint markers on a single map.
> I searched for some helping tools in the framework and found the <screen name="geoLocation">
> and the relative <request-map uri="geoLocation">
> Unfortunately this can only be used to show on a Google Map a single geoPoint record providing its geoPointId.
> In my application I have a sort of "event" entity.
> Each event has the LAT and LON coordinates of where the event took place and I need to show on a map all the query-selected events.
> In the attached patch there is an implementation of a "geoChart" framework screen that takes as input a geoChart map containing:
> geoChart
> - dataSourceId -> select the map system to be used (google, yahoo etc.) I do not like this mane. I think I will rename to mapProviderId but it is how it is named right now
> - width
> - height -> map dimensions
> - center -> the center point of the map
> - points -> the points array to be showed on the map
> In the patch there are also some example screens (in the example application) to show how it works.
> I think that the suggested screen is more general and can replace the actual one.
> BTW:
> 1) Why the dataSourceId is in the GeoPoint entity ?
> I think the GeoPointEntity should be independent of what map provider (if any) will be used to show it.
> 2) A further improvement to this will be to add an heatmap mode (just started looking at this code: http://code.google.com/p/jheatmap/) that can be used when points will be too many or whenever an average distribution is only required (but this will be another page).
> I submit this patch in order to have a first review by you.
> Thank you,
> Bruno
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (OFBIZ-3348) Showing multiple geopoints on a map
Posted by "Bruno Busco (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Busco closed OFBIZ-3348.
------------------------------
Resolution: Fixed
Committed in trunk rev. 892579
> Showing multiple geopoints on a map
> -----------------------------------
>
> Key: OFBIZ-3348
> URL: https://issues.apache.org/jira/browse/OFBIZ-3348
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Bruno Busco
> Priority: Minor
> Attachments: OFBIZ-3348 geoChart.patch
>
>
> As discussed on the ML I need to show several geoPoint markers on a single map.
> I searched for some helping tools in the framework and found the <screen name="geoLocation">
> and the relative <request-map uri="geoLocation">
> Unfortunately this can only be used to show on a Google Map a single geoPoint record providing its geoPointId.
> In my application I have a sort of "event" entity.
> Each event has the LAT and LON coordinates of where the event took place and I need to show on a map all the query-selected events.
> In the attached patch there is an implementation of a "geoChart" framework screen that takes as input a geoChart map containing:
> geoChart
> - dataSourceId -> select the map system to be used (google, yahoo etc.) I do not like this mane. I think I will rename to mapProviderId but it is how it is named right now
> - width
> - height -> map dimensions
> - center -> the center point of the map
> - points -> the points array to be showed on the map
> In the patch there are also some example screens (in the example application) to show how it works.
> I think that the suggested screen is more general and can replace the actual one.
> BTW:
> 1) Why the dataSourceId is in the GeoPoint entity ?
> I think the GeoPointEntity should be independent of what map provider (if any) will be used to show it.
> 2) A further improvement to this will be to add an heatmap mode (just started looking at this code: http://code.google.com/p/jheatmap/) that can be used when points will be too many or whenever an average distribution is only required (but this will be another page).
> I submit this patch in order to have a first review by you.
> Thank you,
> Bruno
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-3348) Showing multiple geopoints on a map
Posted by "Bruno Busco (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791031#action_12791031 ]
Bruno Busco commented on OFBIZ-3348:
------------------------------------
I normally use Google latitude from my cell phone and it shows my position on the map, both on the cell itself and both on a remote computer, without appreciable error.
So I would say that google map has a correct GPS position rendering.
I would take google as a reference and, for any (yet not implemented) other map service look for an adjustement.
Did you have a chance to give a look to the patch?
> Showing multiple geopoints on a map
> -----------------------------------
>
> Key: OFBIZ-3348
> URL: https://issues.apache.org/jira/browse/OFBIZ-3348
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Bruno Busco
> Priority: Minor
> Attachments: OFBIZ-3348 geoChart.patch
>
>
> As discussed on the ML I need to show several geoPoint markers on a single map.
> I searched for some helping tools in the framework and found the <screen name="geoLocation">
> and the relative <request-map uri="geoLocation">
> Unfortunately this can only be used to show on a Google Map a single geoPoint record providing its geoPointId.
> In my application I have a sort of "event" entity.
> Each event has the LAT and LON coordinates of where the event took place and I need to show on a map all the query-selected events.
> In the attached patch there is an implementation of a "geoChart" framework screen that takes as input a geoChart map containing:
> geoChart
> - dataSourceId -> select the map system to be used (google, yahoo etc.) I do not like this mane. I think I will rename to mapProviderId but it is how it is named right now
> - width
> - height -> map dimensions
> - center -> the center point of the map
> - points -> the points array to be showed on the map
> In the patch there are also some example screens (in the example application) to show how it works.
> I think that the suggested screen is more general and can replace the actual one.
> BTW:
> 1) Why the dataSourceId is in the GeoPoint entity ?
> I think the GeoPointEntity should be independent of what map provider (if any) will be used to show it.
> 2) A further improvement to this will be to add an heatmap mode (just started looking at this code: http://code.google.com/p/jheatmap/) that can be used when points will be too many or whenever an average distribution is only required (but this will be another page).
> I submit this patch in order to have a first review by you.
> Thank you,
> Bruno
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OFBIZ-3348) Showing multiple geopoints on a map
Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791022#action_12791022 ]
Jacques Le Roux commented on OFBIZ-3348:
----------------------------------------
* At 1st place they should give the exact same coordinate. But apparently they don't (why I'm not sure)
* Not sure how to qualify an error here :(
* I'm not sure how his could be compensated, maybe it's related to their renderers also...
* We should also care that one day (normally 2013) Galileo should be available (I mean not only GPS)
> Showing multiple geopoints on a map
> -----------------------------------
>
> Key: OFBIZ-3348
> URL: https://issues.apache.org/jira/browse/OFBIZ-3348
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Bruno Busco
> Priority: Minor
> Attachments: OFBIZ-3348 geoChart.patch
>
>
> As discussed on the ML I need to show several geoPoint markers on a single map.
> I searched for some helping tools in the framework and found the <screen name="geoLocation">
> and the relative <request-map uri="geoLocation">
> Unfortunately this can only be used to show on a Google Map a single geoPoint record providing its geoPointId.
> In my application I have a sort of "event" entity.
> Each event has the LAT and LON coordinates of where the event took place and I need to show on a map all the query-selected events.
> In the attached patch there is an implementation of a "geoChart" framework screen that takes as input a geoChart map containing:
> geoChart
> - dataSourceId -> select the map system to be used (google, yahoo etc.) I do not like this mane. I think I will rename to mapProviderId but it is how it is named right now
> - width
> - height -> map dimensions
> - center -> the center point of the map
> - points -> the points array to be showed on the map
> In the patch there are also some example screens (in the example application) to show how it works.
> I think that the suggested screen is more general and can replace the actual one.
> BTW:
> 1) Why the dataSourceId is in the GeoPoint entity ?
> I think the GeoPointEntity should be independent of what map provider (if any) will be used to show it.
> 2) A further improvement to this will be to add an heatmap mode (just started looking at this code: http://code.google.com/p/jheatmap/) that can be used when points will be too many or whenever an average distribution is only required (but this will be another page).
> I submit this patch in order to have a first review by you.
> Thank you,
> Bruno
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (OFBIZ-3348) Showing multiple geopoints on a map
Posted by "Bruno Busco (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Busco updated OFBIZ-3348:
-------------------------------
Attachment: OFBIZ-3348 geoChart.patch
> Showing multiple geopoints on a map
> -----------------------------------
>
> Key: OFBIZ-3348
> URL: https://issues.apache.org/jira/browse/OFBIZ-3348
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Bruno Busco
> Priority: Minor
> Attachments: OFBIZ-3348 geoChart.patch
>
>
> As discussed on the ML I need to show several geoPoint markers on a single map.
> I searched for some helping tools in the framework and found the <screen name="geoLocation">
> and the relative <request-map uri="geoLocation">
> Unfortunately this can only be used to show on a Google Map a single geoPoint record providing its geoPointId.
> In my application I have a sort of "event" entity.
> Each event has the LAT and LON coordinates of where the event took place and I need to show on a map all the query-selected events.
> In the attached patch there is an implementation of a "geoChart" framework screen that takes as input a geoChart map containing:
> geoChart
> - dataSourceId -> select the map system to be used (google, yahoo etc.) I do not like this mane. I think I will rename to mapProviderId but it is how it is named right now
> - width
> - height -> map dimensions
> - center -> the center point of the map
> - points -> the points array to be showed on the map
> In the patch there are also some example screens (in the example application) to show how it works.
> I think that the suggested screen is more general and can replace the actual one.
> BTW:
> 1) Why the dataSourceId is in the GeoPoint entity ?
> I think the GeoPointEntity should be independent of what map provider (if any) will be used to show it.
> 2) A further improvement to this will be to add an heatmap mode (just started looking at this code: http://code.google.com/p/jheatmap/) that can be used when points will be too many or whenever an average distribution is only required (but this will be another page).
> I submit this patch in order to have a first review by you.
> Thank you,
> Bruno
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (OFBIZ-3348) Showing multiple geopoints on a map
Posted by "Bruno Busco (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OFBIZ-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Busco reassigned OFBIZ-3348:
----------------------------------
Assignee: Bruno Busco
> Showing multiple geopoints on a map
> -----------------------------------
>
> Key: OFBIZ-3348
> URL: https://issues.apache.org/jira/browse/OFBIZ-3348
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Bruno Busco
> Assignee: Bruno Busco
> Priority: Minor
> Attachments: OFBIZ-3348 geoChart.patch
>
>
> As discussed on the ML I need to show several geoPoint markers on a single map.
> I searched for some helping tools in the framework and found the <screen name="geoLocation">
> and the relative <request-map uri="geoLocation">
> Unfortunately this can only be used to show on a Google Map a single geoPoint record providing its geoPointId.
> In my application I have a sort of "event" entity.
> Each event has the LAT and LON coordinates of where the event took place and I need to show on a map all the query-selected events.
> In the attached patch there is an implementation of a "geoChart" framework screen that takes as input a geoChart map containing:
> geoChart
> - dataSourceId -> select the map system to be used (google, yahoo etc.) I do not like this mane. I think I will rename to mapProviderId but it is how it is named right now
> - width
> - height -> map dimensions
> - center -> the center point of the map
> - points -> the points array to be showed on the map
> In the patch there are also some example screens (in the example application) to show how it works.
> I think that the suggested screen is more general and can replace the actual one.
> BTW:
> 1) Why the dataSourceId is in the GeoPoint entity ?
> I think the GeoPointEntity should be independent of what map provider (if any) will be used to show it.
> 2) A further improvement to this will be to add an heatmap mode (just started looking at this code: http://code.google.com/p/jheatmap/) that can be used when points will be too many or whenever an average distribution is only required (but this will be another page).
> I submit this patch in order to have a first review by you.
> Thank you,
> Bruno
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.