Go Back   WowAce Forums > Addon Chat > Addon Ideas
Addon Ideas Present your ideas for new addons.

Reply
 
Thread Tools
Old 3 Weeks Ago   #1
Graveeater
Junior Member
 
Join Date: Aug 2005
Posts: 63
Default Map display addons and map data sources

(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?
Graveeater is offline   Reply With Quote
Old 2 Weeks Ago   #2
Graveeater
Junior Member
 
Join Date: Aug 2005
Posts: 63
Default Re: Map display addons and map data sources

Currently i think an LDB like approach would probably be best.
For example one could make a new LDB type with properties like
  • type = "map icon"
  • continent, zone, x1, y1, x2, y2
  • from display: icon, icon[RGBA], iconCoords
  • maybe tooltip support (suppose that would not be good for alphamap)

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.
Graveeater is offline   Reply With Quote
Old 2 Weeks Ago   #3
Adirelle
Amazing Member
 
Adirelle's Avatar
 
Join Date: Dec 2006
Location: Lyon, France
Posts: 1,639
Default Re: Map display addons and map data sources

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.
Adirelle is offline   Reply With Quote
Old 2 Weeks Ago   #4
Graveeater
Junior Member
 
Join Date: Aug 2005
Posts: 63
Default Re: Map display addons and map data sources

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.
Graveeater is offline   Reply With Quote
Old 2 Weeks Ago   #5
OrionShock
Legendary Member
 
OrionShock's Avatar
 
Join Date: May 2006
Location: Arizona
Posts: 3,379
Default Re: Map display addons and map data sources

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.
OrionShock is offline   Reply With Quote
Old 2 Weeks Ago   #6
Adirelle
Amazing Member
 
Adirelle's Avatar
 
Join Date: Dec 2006
Location: Lyon, France
Posts: 1,639
Default Re: Map display addons and map data sources

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.
Adirelle is offline   Reply With Quote
Old 2 Weeks Ago   #7
yssaril
Hero Member
 
yssaril's Avatar
 
Join Date: Sep 2006
Posts: 608
Default Re: Map display addons and map data sources

don't we already have this lib in form of Astrolabe?
yssaril is offline   Reply With Quote
Old 2 Weeks Ago   #8
OrionShock
Legendary Member
 
OrionShock's Avatar
 
Join Date: May 2006
Location: Arizona
Posts: 3,379
Default Re: Map display addons and map data sources

Quote:
Originally Posted by yssaril View Post
don't we already have this lib in form of Astrolabe?
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.
OrionShock is offline   Reply With Quote
Old 2 Weeks Ago   #9
Adirelle
Amazing Member
 
Adirelle's Avatar
 
Join Date: Dec 2006
Location: Lyon, France
Posts: 1,639
Default Re: Map display addons and map data sources

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.
Adirelle is offline   Reply With Quote
Old 2 Weeks Ago   #10
Arrowmaster
Hero Member
 
Join Date: Apr 2006
Posts: 764
Default Re: Map display addons and map data sources

Map addons don't need to 'support' anything. Everything just works fine if everybody follows basic best practices.
Arrowmaster is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:58 AM.