×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Show all markers

Show all markers 13 years 11 months ago #10988

  • Hillary Carlip
  • Hillary Carlip's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi, great product! I've made some modifications, and have a few questions about modifications - any advice about what files would be best to modify to achieve these would be great!

I would like to have a "Show all markers" option that allows the user to see markers from all categories on the map.
I would like to auto-resize the image to a fixed height when uploaded because some users are uploading very large images.

Lastly, I was having some issues getting your auto lat/long function to work (it was adding things into incorrect fields, i.e. adding the town into the zip code box and other odd things) so I turned it off and am just using the "add hotspot" with no second map. But the users seem to be able to bad addresses or no address, blank titles, etc without any error prompt which results in hotspots added that don't show on the map. Is there any way to check for user errors with basic hotspot entry form? Otherwise I may have to come back and sort out the bugs from the second map feature.

Thanks for any help you can provide!

Show all markers 13 years 11 months ago #10998

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Wow, some times I wonder if the users aren't uniting to wish the same thing at the same time :D

Check this thread out:
compojoom.com/forum/27-hotspots/52-newbi...657-newest-locations

About the image resize - this is not possible right now. I've added it to the wishlist for version 1.2
dev.compojoom.com/issues/show/252

Right now there is no way to check for correctness of the information that the user enters. We are planning on a lot of improvements there in version 1.1 (planned for january).

About the wrong guessing of the street, zip code and so - read this:
compojoom.com/forum/27-hotspots/54-bug-r...ss-parsing-incorrect

Show all markers 13 years 11 months ago #10999

  • Hillary Carlip
  • Hillary Carlip's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Thanks for your quick reply. Don't know how I missed that first thread, I thought I scoured the forum, LOL! I'll follow the instructions to fix the address parsing. Look forward to the future versions! :)

Show all markers 13 years 11 months ago #11003

  • Hartmut Kunst
  • Hartmut Kunst's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 48
  • Thank you received: 0
Hi Daniel,

up to now the height of the container is dynamically, I have added 12 and it shows 12, however, sometimes only after 2nd attempt.

Next Question from my side, how to sort the hotspots, i.e. alphabetically?
I would like to use the zip-code for sorting.

Thanks for your attention

Best Regards
Hartmut

Show all markers 13 years 11 months ago #11016

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
In the latest hotspots function change the following line:
. ' AND gmlat != "" ORDER BY postdate DESC';
to
. ' AND gmlat != "" ORDER BY plz DESC';

Show all markers 13 years 11 months ago #11027

  • Hartmut Kunst
  • Hartmut Kunst's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 48
  • Thank you received: 0
Hello Daniel,

" latest hotspots function "

I'm sorry, probably I'm blocked somehow, but I cannot find this file..., could you specify this for the stupid users? :-)

Show all markers 13 years 11 months ago #11028

  • Hillary Carlip
  • Hillary Carlip's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0

Daniel Dimitrov wrote: Wow, some times I wonder if the users aren't uniting to wish the same thing at the same time :D

Check this thread out:
compojoom.com/forum/27-hotspots/52-newbi...657-newest-locations


Hello, I'm back! I looked at the thread you referenced and wanted to clarify that what I would like to do is show all markers for all categories on the map at once - so if there are four categories with four different marker icons, four different icons would show on a single map. I'm fine with limiting the number of markers to 50 so the map doesn't run slow. :) This could be a link somewhere, maybe in the sidebar or another map in another tab, whatever is the easiest method with the least amount of files to change. I started playing around with gethotspots.php - I'm thinking something like:
public function getAllHotspots() {
		$db = JFactory::getDBO();
		$query = "SELECT * FROM #__hotspots_marker WHERE published = '1'";
		$db->setQuery($query, 0, 50);
		$rows = $db->loadObjectList();
		return $rows;
	}

I'm just not sure what file you use to call the actual function? Does there also need to be something in hotspots.js without a category ID i.e.:
function getAllHotspots(){
	params = new Object();
	params.url =  hotspots_route+"index.php?option=com_hotspots&task=getAllHotspots&format=raw";
	params.method = 'get';
	params.update = 'allSpots';
 
	hotspotsAjax(params);
}

If you could let me know if I'm even going in the right direction that would be great, LOL! Thanks!

Show all markers 13 years 11 months ago #11035

  • Hartmut Kunst
  • Hartmut Kunst's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 48
  • Thank you received: 0

Daniel Dimitrov wrote: In the latest hotspots function change the following line:
Code:
. ' AND gmlat != "" ORDER BY postdate DESC';
to
Code:
. ' AND gmlat != "" ORDER BY plz DESC';


Daniel, I do not understand, which file you mean.

I've tried to find this code throughout the entire module, but unsuccessfully.

Can you give me a hint?

Best Regards
Hartmut

Show all markers 13 years 11 months ago #11048

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Guys, we should split the threads. In the future if you have 3 questions, then please start 3 separate threads.
@Hartmut - I'm referring to components/com_hotspots/models/gethotspots.php

@Fly - we've planned this. I'll do my best to get this functionality in the next version of hotspots. Right now I'm updating the component to use google maps api3, then I'll have to add subcategory options, make the add hotspot layout a little bit better and so on... Anyway - show all hotspots on the map is something that we have thought and plan to implement - it is more complicated then just editing few lines of code...

Show all markers 13 years 11 months ago #11065

  • Hartmut Kunst
  • Hartmut Kunst's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 48
  • Thank you received: 0

Daniel Dimitrov wrote: @Hartmut - I'm referring to components/com_hotspots/models/gethotspots.php


BINGO! It works!
Thanks a lot, Daniel, I'm happy for the time being!

(I don't know, why I did not find this entry :-( )

Best Regards
Hartmut
  • Page:
  • 1
Time to create page: 0.156 seconds