×

Notice

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

TOPIC: Hotspots 3.0 released

Hotspots 3.0 released 11 years 8 months ago #17095

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

I am glad that Hotspots 3.0 is finally ready to download. 900 hours of work is a lot of time. Congratulation for such great work!

I've been checking http://demo.compojoom.com/hotspots for test purposes and i have few questions:

1) The "server side boundary method" doesn't seen to be working there. Is it already implemented?

2) We talk about search results using a link here https://compojoom.com/forum/2-general-talk/15386-search-results-via-http-link Is it already implemented?

Hotspots 3.0 released 11 years 8 months ago #17116

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eliecer,
1) the demo is not updated yet... I hope to be able to update it during the weekend.

2) Yes, those are implemented.

+ I saw the remarks you made about the problems with the search on the dev. site. I'll release 3.0.1 next week and have those addressed.

Cheers,
Daniel

Hotspots 3.0 released 11 years 8 months ago #17135

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

1) I select NO to show the country, and still the country is showing on the right sliding tab.

2) Are you planning to implement MarkerClusterer like this http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/examples/simple_example.html or something similar?

I imported my database from my old website, and i've spent around 2 hours trying to find the explanation of why so many restaurants, parks, etc are missing from the map. And the answer is the way the 'server side boundary method' is implemented. Me, my clients, or anyone using my map, at least need to see that there is something else on the map. I can not be zooming in to every corner to see if there is more or not. Please, can you fix that?

3) Anytime I click on a category, i need to see all the markers attached to that category (centering all the markers on the screen)

4) I am trying to upload a new icon for a marker and all i am getting is an empty square.

5) I delete postal code and it continues showing up.

6) A comma is missing between address and city (InfoWindows)

7) When I search for 'restaurant downtown', the map is showing me all markers containing the word 'restaurant' and all markers containing the word 'downtown'. I need the results to show me the markers containing both words.

8.) When I make a second search, the first search results stay on map.

9) How to align address to the right in the Sliding Panel and InfoWindows?

Hotspots 3.0 released 11 years 8 months ago #17145

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eliecer,

1) Ok, will check this and fix it.

2) No. I had implemented the MarkerClusterer (900h...) and it doesn't do it for hotspots. MarkerClusterer is fine when you have your own small google app and you know that you'll never going to have more than 2000 markers, you don't need to show marker information on the right etc. It is for a known set of markers. In our case I have no idea how many markers you guys can have, that is why it doesn't fit the requirements.

I'm looking into a custom tile solution. We will generate transparent images on the server with points on them and we can layer those on the map. You will have the standard 20 hotspots + tiles that show where we have more locations... This will solve all confusion problems currently present on the map. In addition if we have the custom tiles we don't need to load another 20 markers when you move around - we'll load another 20 only if your current center changes. (just look at maps.google.com - they have a similar approach, but it seems that they use fusion tables - and I would also like to use fusion tables, but this would mean that each user will have to send his data to google and this doesn't seem as a good solution right now).

Something else I found the other day is the webgl canvaslayer: googlemapsmania.blogspot.fr/2012/07/goog...aslayer-library.html - it also has the ability to show 1000 of locations, but here we have the same problem -> how do you send so much data to the client. If I return just an array with lat and long coordinates I'll end up with few 1mb of data for 1000 spots... And this doesn't seem as a good solution.

So right now the custom tiles seem to be best suited. The tiles will be generated once on the server and they are cached both by the client and the server. So once generated the map should be extremely fast and we will generate new locations only if needed (new hotsptos added etc).

3. Well you can try to hack the code
media/com_hotspots/js/modules/categories.js
add
window.fireEvent('zoomToMarkers');
after
window.fireEvent('categoryClicked', this.get('data-id'));

This should zoom out the map each time you click a category.

4. I'll check it out

5. I'll check it out

6. I'll check it out

7. If you search for "restaurant downtown" -> the query should return all restaurants that have the string "restaurant downtown" in that order.

If you search for << restaurant downtown >> - without quotes it should return all hotspots that contain restaurant OR downtown anywhere in the text.

8. will check it out

9. you could try
.spots div {
display:block;
text-align: right;
}
 

Regards,
Daniel

Hotspots 3.0 released 11 years 8 months ago #17146

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Thanks Daniel for the quick reply, and I am sorry to be a pain in the #$%$$$.

About:

#2) Then you will be replacing the markers with dots. Is it not better just to show t he markers? At the end you are replacing one image with another image, and the marker's image is already loaded, an extra image will represent few extra Kbs to load into the map.

#7) the search between " is a good feature. About the second one, I prefer to change the OR with AND. I want to show results containing both words, and not ONE or THE OTHER ONE. What part of the code I have to change to get this results?

And one more thing:
The link containing search results is not working. When I search inside the map, the address bar is showing a link containing the search elements, but if I copy and paste that link into another tab, I am getting weird results.

Hotspots 3.0 released 11 years 8 months ago #17147

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
2) There is a big difference between the image with dots and markers.

If I want to show the markers - I need to have the coordinates. This means -> ajax request to the server -> the request returns the coordiantes and draw them on the map. Drawing the markers on the map is a resource intensive task. If you have 10000 markers you need to go through that array get lat and lng and then draw the image on the map - slow... (and as I said for 10000 markers you'll have between 6 and 10MB of data...)

Where image on the other side is just 1 request and no javascript processing and the size of a tile is around 4kb...

7) You have to modify the search function in components/com_hotsptos/models/hotspot.php line 179 and 180
            .  '('.implode(' OR ', $search) .')'
            . (count($and) ? ' AND (' . implode(' OR ' , $and) . ')' : '')

You can replace the OR with an AND but this won't have the desired output as the $search and $and arrays contain country, street, zip etc...
This would make the query loook for desctription LIke 'restaurant' and description like 'downtown' and street like 'restaurant' AND...

You'll need to mofify that function to be where description like ... AND description like ... OR street like ... etc.

I'll leave you the pleasure to play around with SQL... If you can't make it let me know and I'll write the query for you.
Kind regards,
Daniel

Hotspots 3.0 released 11 years 8 months ago #17152

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
About:

9) How to align address to the right in the Sliding Panel and InfoWindows?

Your code:
.spots div {
display:block;
text-align: right;
}

doesn't work.

I checked the infowindow with Firebug,and it looks like:
<div id="marker_adress">
<h2>Lake Okanagan Resort</h2>
2751 Westside Rd N Kelowna
</div>

In what file the infowindows is built?
I am thinking to place the address inside a div, something like:
<div id="marker_adress">
<h2>Lake Okanagan Resort</h2>
<div align="right">2751 Westside Rd N Kelowna</div>
</div>

Hotspots 3.0 released 11 years 8 months ago #17153

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

Yes, you were right about the solution for #7. The code doesn't have the desired output. :-(

If you don't mind, I would love to pass you the pleasure to play around with SQL. :-)
After 45 minutes 'the pleasure' has become a headache.

Hotspots 3.0 released 11 years 8 months ago #17154

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Here are the latest changes I did to the menu today:
img1.uploadscreenshot.com/images/orig/8/21803060538-orig.png

I fixed all the problems with settings for zip, country etc...

You can find it here: compojoom.com/downloads/developer-releas...y-stuff/dev-hotspots

I'll look into the infowindows and search tomorrow and will let you know.

Kind regards,
Daniel

Hotspots 3.0 released 11 years 8 months ago #17155

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
At the backend, hotspots is still generating postal codes automatically.

Hotspots 3.0 released 11 years 8 months ago #17156

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
it looks like it's geocoding automatically, because it's messing with the city as well. Not reading the value from the database at all.

Hotspots 3.0 released 11 years 8 months ago #17160

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eliecer,
I don't understand what you mean. If you move the marker around -> then of course it is automatically going to fill the street, city, zip etc...

If you remove the check from "sticky marker" you should not experience this behavior. Can you please explain again what exactly the problem is.

Thanks,
Daniel

Hotspots 3.0 released 11 years 8 months ago #17161

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
let's say that i create a marker with all the information: name, description, address, location, etc. Then I removed the postal code and I save it.

If I try to edit the information again (anything except the address), the postal code is showing up again. The field containing the postal code is empty in the database.

If I don't want the postal code, then I will have to remove it again, and this is happening anytime I just open the marker's information in the backend.

Hotspots 3.0 released 11 years 8 months ago #17162

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
the new dev release should fix this + few other bugs.
compojoom.com/downloads/developer-releas...y-stuff/dev-hotspots

Daniel

Hotspots 3.0 released 11 years 8 months ago #17193

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eliecer,
I think that you'll be extremely happy to see the recent development progress. (at least I am :))
demo.compojoom.com/dev/index.php/hotspots#!/catid=4

Zoom out - now you'll always know where to zoom in :). There are still few things to polish, but version 3.1 should be ready for release next week.

Cheers,
Daniel

Hotspots 3.0 released 11 years 8 months ago #17197

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

Yes, it looks better.

- there is a message all over the map saying '1 points in tile (535,351) etc,etc,etc'. This supposed to be in that way?

- i am still thinking that it's better to show or the dots or the markers. What if for certain level of zoom the map shows the dots, and for certain level of zoom the map start to show the markers. A question from a customer: "why my location has a dot, and the other one has a marker? I paid you to be in the directory."

Hotspots 3.0 released 11 years 8 months ago #17204

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eliecer

1) - of course not :) This is just for development purposes...

2) Noted. What you are also supposed to have in version 3 is a list limit. 20, 50, 100. You can set it to 100 and 100 markers from each category will be shown with their icons on the map. If you grow beyond this point I'm afraid that the dots are going to be your only real option.

And when you start to zoom in, you'll see mostly real markers because in your current zoom level you don't have that much...

Cheers,
Daniel

Hotspots 3.0 released 11 years 8 months ago #17223

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eliecer,
Here is an example of a modified search query that will search for both restaurant and downtown in the description.
Go to components/com_hotsptos/models/hotspot.php starting from line 160 modify the code to this:
} else {
            $words = explode(' ', $sentence);
            foreach ($words as $word) {
                $searchWord		= $db->Quote('%'.$db->escape($word, true).'%', false);
 
                $andSearch['description'][] = 'm.description LIKE ' . $searchWord;
                $andSearch['description_small'][] = 'm.description LIKE ' . $searchWord;
 
                $search[] = 'm.name LIKE ' . $searchWord;
//                $search[] = 'm.description LIKE ' . $searchWord;
//                $search[] = 'm.description_small LIKE ' . $searchWord;
                $search[] = 'm.plz LIKE ' . $searchWord;
                $search[] = 'c.cat_name LIKE ' . $searchWord;
                $search[] = 'm.street LIKE ' . $searchWord;
                $search[] = 'm.country LIKE ' . $searchWord;
                $search[] = 'm.town LIKE ' . $searchWord;
            }
        }
 
            $query = 'SELECT SQL_CALC_FOUND_ROWS m.id AS hotspots_id, m.*,c.* FROM ' . $db->quoteName('#__hotspots_marker') . 'AS m'
			. ' LEFT JOIN ' . $db->quoteName('#__hotspots_categorie') . 'AS c'
			. ' ON m.catid = c.id '
			. ' WHERE ('
            .  '('.implode(' OR ', $search) .')'
            . ' AND (' . implode(' AND ', $andSearch['description']) . ')'
            . ' AND (' . implode(' AND ', $andSearch['description_small']) . ')'
            . (count($and) ? ' AND (' . implode(' OR ' , $and) . ')' : '')
			. ')'
			. ' AND (m.published = 1 AND c.published = 1 )'
			. ' ORDER BY m.name ASC';

if you enter restaurant downtown -> the query will look for
name || street || cat_name etc that contains either downtown or restaurant
AND description || description_small that contains both restaurant and downtown.

Hope that this helps.
Daniel

Hotspots 3.0 released 11 years 6 months ago #17917

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

I just tried the code (i had my whole website on hold)

It doesn't work.

What I need is:
- if people search for: restaurant downtown. I want the results to contain both word in any part of the information attached to the markers.
- if people search for: "french fries" using quotation marks, I want the results to contain both words, one word beside the other one in any part of the information attached to the markers.
  • Page:
  • 1
Time to create page: 0.158 seconds