how to create a dynamic hot spots using php? - php

i am stuck here please any one suggest me how to do this. i want like this http://www.finchatton.co.uk/. in this URL at top of the menu there is a link "COMPLETED DEVELOPMENTS". please click once. in this page click on one of the area in map. now we will get hot spots in map. so i have to create that spots dynamically.
anybody give an idea.
thanks.

That is done in Flash, it has nothing to do with PHP. PHP could probably be used to parse some data that Flash uses later...
EDIT: If you want the same functionality...
I suggest using Google maps API http://code.google.com/intl/lv/apis/maps/index.html
Just store the interest points in database with coords, then just fetch and display them on the google map.

Related

Use own map like Google map. Collect and process data when visitors click spots on map

I am doing a website project related with travel. I think a long time, searching on the web for a long time. However I still have no idea how to get started. I really need help.
A brief description of my travel project first.
I need to use my own map. It can be zoomed in or zoomed out like Google Map. On the map there are many scenery spots, like spot A, spot B, spot C, etc....
When visitors open the map, click on the spots, for example, spot Y, spot A, spot M, etc.... I need to get which spots they clicked on, group all data, and finally write the data into MySQL database.
Here's what I find up to now:
I find many jQuery plugins and tools, like OpenLayers, mapTiler, mapBox, etc.. They all use Google Map, Open Street Map, and other maps, but not allow to use own map.
I also find Gmap Image Cutter which can cut my large map into tiles and display on the web. However the map cannot be clicked on get the data as required.
My questions:
I can master PHP and jQuery.
Could someone give me some idea how to get started?
Which tool or plugins can best accomplish my projects?
Thanks
The Google Maps JavaScript API provides an OverlayView class for creating your own custom overlays.
Link to doc: https://developers.google.com/maps/documentation/javascript/customoverlays#subclass
Link to example: https://developers.google.com/maps/documentation/javascript/examples/overlay-hideshow
And last, but not least, Google Maps can be embedded into your website: https://developers.google.com/maps/documentation/embed/

Make a database search and show with google charts in drupal

I am new to DRUPAL switching from codeigniter. I have a project on drupal you can check the link here http://idcr.cprindia.org/database. Someone please suggess me how can make search + show output with maps on the given link (with proper ajax).
how to do this integration. I have an html which is using bootstrap. (i think that will create problem to existing website).
Good morning,
As far as I know, displaying a Google Chart is quite easy. You just have to add some Javascript code.
I suggest writing your own module. In this module I would create a block. First of all, you need to perform the database queries needed to gather the info you want to display. Second, you should use drupal_add_js() to invoke a function stored in a different JS file. You need to pass the chart info in the settings array.
Hope it helps.

In Google Maps is there a way to show a Box Info fixed in a corner?

I have a problem.
My current php project provides a Google Map at the users.
This map is managed by a javascript Script.
Now the problem: i need to insert in this map like an Infobox that contains informations about the map.
This box must be fixed in the corner, and not attacched in some point of the map.
But n the v3 APIs i dont see anything to make this.
Is possible with these APIs?
Thank you all.
Use the Controls piece of the API to create your info box and add it to the map. See the custom controls sample for an example. You can put whatever content you want in a div, and then place it on the map in one of the ControlPosition types.

google map api 3 choosing the type of places using overlays

I'm working on google map api 3 for android webview and manage to load the map and the markers dynamically from mysql database. I follow the tutorial here. Now I want to add a function that displays overlays on the map. Each overlay corresponds for a particular type of markers. ex: restaurants, gasoline stations etc. When users tap on that overlay, he/she can only see markers that was that type on the map. Now my problem is I don't know where to start. My idea is to change the php script:
SELECT * FROM markers WHERE type = type_of_desired_place
I don't know where to pass values from javascript to php. I want the markers to be updated if the users tap on that overlays.
Can someone help me? I'm new to google map. And if I'm wrong on some info, then please correct me. Thanks!
What you need is to use a MarkerManager , then once you have your pins in it, you need to have a trigger for the click on the overlay. Once this is down, you need to use Ajax to make new query to your Mysql server with new details for the info you want.
What i use is jQuery Ajax, you post the info with Ajax to a PHP page that will parse the request and return the proper data to recompile your pins.
I'm sorry i can't tell you every single details of the steps, but this is quit long to explain but if you start going in that direction you will get moving and be able to ask smaller steps at a time.
Good luck!

Building extensive google maps based application

I'm working now on google maps, I'm trying to build something not even half as extensive but something on the lines of http://wikimapia.org/. Ok I'm not going to be building the whole app haven't got that much time on my hands. However the application I'm working on has users signing up and they would be able to pin point and create locations on a google map which would be stored in my back-end database.
Plus there would be a search option whereby a user could search for a specific place and all list of matching entries would be displayed as an 'overlay' to the map and all places would be highlighted on the map.
Also if you've noticed how wikimapia works - you can add a place by virtually clicking and dragging on the map itself as opposed to adding in coordinates on some complicated form and the search is embedded within the map and not outside.
Now I have an idea of integrating basic google maps - no biggie there but this is not just a simple integration procedure. Does anyone have any idea what I need to do here.
I'm working on Php and using JQuery for javascripting.
Thanks for the response - however my query was different in this respect that my application is such that we would have users signing up and they would come and pint point and create new locations on the map so basically its not one user - all the coordinates would be entered by the users in a 'click your place on the map' kind of way and we would like to be able to overlay all those details upon the map as well as categorise like lets say - show all places on the map where theres a birthday party, or show all internet cafes on the map - i.e. all these details are entered by users.
Maybe I'm missing something here - but I'm looking to make a simplified watered down version of wikimapia here.
If you want to integrate with Google Maps, I think the best place to get started is the source: http://code.google.com/apis/maps/, specifically the documentation and API reference. Get yourself a key, drop one of the examples into your page and start tweaking.
For your points, you'll basically store coordinate information (lat/long), plus whatever information you want to display. You can even have custom map tiles (the pictures of the world), or custom map overlay tiles (transparent additions to the displayed world). It really is a quite flexible API for mapping things.
When you run into a specific issue, ask.

Categories