ImageMarker Plugin and how to use it

257 views
Skip to first unread message

Sasa Bogicevic

unread,
Nov 9, 2012, 5:49:26 AM11/9/12
to mixare-de...@googlegroups.com
I know It has been asked before and I completed tutorial on how to make imagemarker plugin but It just dont seem to work for me. I dont get any errors but custom images are just not there so I think it is something that I am overlooking so can anyone please just explain aftr you have finished plugin how you "connect " it with your app. I am calling mixare from intent and displaying my own data which is fine, I just want some fancy images instead of circles. Please go into details, and by the way it is for ANDROID. Thanks in advance, this is great opn source effort! Keep it going!

Abdullahi Egal

unread,
Nov 10, 2012, 9:12:29 AM11/10/12
to mixare-de...@googlegroups.com
Hi,

The ImageMarker has recently been added to mixare. So you don´t need plugins for it. The ImageMarker can be found in the marker package. 
And to use your that imagemarker you need to make sure that your JSON data matches the requirements of the DataHandler (PanoramioDataProcessor)
So your json either needs Panoramio in the url, or must contain photos in the JSON data. The PanoramioDataProcessor uses the following structure:

"count": 773840,"photos": [
{
"photo_id": 532693,
"photo_title": "Wheatfield in afternoon light",
"longitude": 11.280727,
"latitude": 59.643198,
"width": 500,
"height": 333,
"upload_date": "22 January 2007",
"owner_id": 39160,
"owner_name": "Snemann",
}, ...

Though alternatively you can use a custom dataprocessor with different requirements for matches.
Here is a custom dataprocessor made by me that converts a different JSON construction. https://github.com/abduegal/Arena-mixare/blob/master/src/org/mixare/plugin/ArenaProcessor.java
The ArenaProcessor uses Arena for both the url and the data match. And it uses the following JSON structure:
{
    "stats":"OK",
    "num_results":0,
    "results":[
    {
        "id":7041,
        "lat":51.92323,
        "lng":4.463539,
        "elevation":0,
        "title":"Verhaal 1",
        "distance":0.0,
        "has_detail_page":1,
        "webpage":"http://ad-arena.finalist.com/arena-server/item/show/4949/7073/rood.item",
        "object_type":"question",
        "object_url":"http://ad-arena.finalist.com/arena-server/images/red-question.png"
    }]
}
You can add it to the mixare core in the data package. But there is already a existing sample plugin of it, so you can change it to your liking: https://github.com/abduegal/mixare/tree/master/plugins/mixare-arena-processor-plugin

I hope this answered your question, and let me know if this helped you,
Sincerely,
Abdullahi Egal

Sasa Bogicevic

unread,
Nov 12, 2012, 5:33:12 AM11/12/12
to mixare-de...@googlegroups.com
Thanks a lot for your help I had downloaded some of the previous versions of mixare but now I am on the right track!


Eka Ariyansyah

unread,
Jan 5, 2015, 1:38:57 PM1/5/15
to mixare-de...@googlegroups.com
hi abdullahi, i have same problem. my mixare project cannot show the image marker. 
I've try what you say, but i still confuse, where i must adding 'arena'? you said that it must add at the end of url. which url? data object URL?
this is my JSON, i hope you can help me.

{
"status": "OK",
"num_results": 1,
"results":[
{
"id":"indoBungur1",
"lat":"-7.955175",
"lng":"112.631451",
"elevation":"0",
"title":"indomaret bungur",
"distance":"0",
"has_detail_page":"1",
"webpage":"http:\/\/www.mixare.org",
"object_type":"question",
"object_url":"http:\/\/climatology-app.hol.es\/kantin.png#arena"
}]

Aaron George

unread,
Jan 16, 2016, 4:42:47 PM1/16/16
to mixare-development
nil
Reply all
Reply to author
Forward
0 new messages