|
|
#1 |
|
Junior Member
Join Date: Aug 2005
Posts: 63
|
(Not sure whether this belongs here or rather too library)
I'm currently writing an addon which should display data on the map. (Kind of a navigation system). However, there are different Maps to display data on: The minimap, the default world map but also custom map addons like Cartographer3 (which has a standalone frame) and more (AlphaMap, GatherHud in a way too) and probably even more I do not know of. Furthermore I am developing one myself. On the other hand, there are even more addons which provide map data. The problem: I don't want to explicit support each map display addon in my datasource, nor would I want to do it the other way. I think it would be nice to have a way for a display addon to globally announce: "I know some interesting points which map display addons might want to display" so that display addons can look there and discover what data is available. In a way, this sounds similiar to the LDB concept. I'd like to hear your opinions on some aspects, mainly: Are there enough display addons in use so it makes sense to do it? Is there already another (better) way to do so? Have you similiar problems and solved them? |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Aug 2005
Posts: 63
|
Currently i think an LDB like approach would probably be best.
For example one could make a new LDB type with properties like
Why four coords? The idea is, that the size of the icon should depend on the display. If we zoom out, we might see much more icons which are therefore much closer. If we define our width to be measured in coords they can easily be scaled down aswell. Some feedback would be nice, there is no use in defining an api only I will use. |
|
|
|
|
|
#3 |
|
Amazing Member
Join Date: Dec 2006
Location: Lyon, France
Posts: 1,639
|
I think creating one LDB datasource per map point would create too much LDB datasources. There are a lots of addon out there that iterates over all LDB objects.
__________________
Author of Squire, Inline Aura and several other addons. If you have a problem and you think the solution involves using a regular expression, then you have two problems. |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Aug 2005
Posts: 63
|
Yes, overnight I came to the same conclusion.
Also, gathering nodes do not tend to change to often (i.e. we could probably ignore the updates there. Still, what do you think of using this for dynamic points, like for example waypoints (wich should probably be far less)? Another question: Why do LDB displays iterate over them? As far as I understand, this makes only sense during init (for those that already exist) and then the display will listen to callbacks? Another idea: We could probably create on LDB object per type of node (peacebloom, felweed,...) or even one for a group (herb, ore, gas, fishing, ...), which would reduce the total amount of them. If we use the first one, we would probably define "itemgroup", which shares common attributes like width, height, icon, tooltip, name and only defines a set of coordinate pairs for the actual positions. |
|
|
|
|
|
#5 |
|
Legendary Member
Join Date: May 2006
Location: Arizona
Posts: 3,379
|
better to have a lib that you can register your DB of points with that the display addons can then use via a common api.
but don't use LDB proper, take the code and rename it so that the minimap points to traffic on LDB's turf ![]()
__________________
Author of GuildCraft, SickOfClickingDailies, and CursorCooldown "I was there in the beginning... and things were very different back then" --An Echo from a time before. |
|
|
|
|
|
#6 |
|
Amazing Member
Join Date: Dec 2006
Location: Lyon, France
Posts: 1,639
|
A standalone library would be more useful. It should provides some query methods, e.g. IteratePoints(continent, zone) and the likes.
__________________
Author of Squire, Inline Aura and several other addons. If you have a problem and you think the solution involves using a regular expression, then you have two problems. |
|
|
|
|
|
#7 |
|
Hero Member
Join Date: Sep 2006
Posts: 608
|
don't we already have this lib in form of Astrolabe?
|
|
|
|
|
|
#8 |
|
Legendary Member
Join Date: May 2006
Location: Arizona
Posts: 3,379
|
IIRC, astrolabe puts pins on the map and manages position there of. It didn't do DB management or storage.
__________________
Author of GuildCraft, SickOfClickingDailies, and CursorCooldown "I was there in the beginning... and things were very different back then" --An Echo from a time before. |
|
|
|
|
|
#9 |
|
Amazing Member
Join Date: Dec 2006
Location: Lyon, France
Posts: 1,639
|
Is Astrolabe supported by the map addons ?
__________________
Author of Squire, Inline Aura and several other addons. If you have a problem and you think the solution involves using a regular expression, then you have two problems. |
|
|
|
|
|
#10 |
|
Hero Member
Join Date: Apr 2006
Posts: 764
|
Map addons don't need to 'support' anything. Everything just works fine if everybody follows basic best practices.
|
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
All times are GMT. The time now is 09:00 AM.
WowAce Forums






