fusiontablecell object retrieve the value from kml via fusion table - google-maps

currently I am work on the project by using polygons KML and fusion table
I have uploading the kml into fusion table and share it, by using the mao id, in my custom web page, they are display correct,
now I need add address search function in to custom page, my goal is display the kml polygon information and the search result information into one information window,
I could display the marker address info and I could by click to display the polygon info window, but they are separate and could not display in one inforwindow

Related

Google Maps V3 creating polygon from county name in XML data

Well I have run into a bit of a small problem and I am not sure how to approach this. I have this test map.
http://www.mesquiteweather.net/googlemap_poly.html
Which creates polygons based on data from this XML file.
http://www.mesquiteweather.net/xml/warnings.xml
It displays weather alerts/watches/warnings etc on the map from the data which makes the polygon that shows what area the alert is in and I have an array in another file that assigns the color. All that works great.
Here is my problem. The XML feed doesn't always display alerts with polygon cords that can be split to create latlng object to create the polygons, I will only get county names half the time so there may be alerts in the feed but they will never get displayed if there is no polygon cords. If you look at the feed for cap:polygon you'll see not all of them have it. Right above it though is areaDesc which is the county name. So is there an easy way to create a polygon base on the county name from that data and how?
I have been searching the web with no results. I did read about fusion tables but will that work and can I use that to draw the polygons based on the data from the feed then have fusion tables draw it out? I don't know, I am doing stuff with Google Maps I have never done before so I am out of my element and could use some guidance and assistance. Any suggestions or advice would be greatly welcomed so I can put this project to sleep.
-Thanks
You can use FusionTables to display a FusionTablesLayer with specific counties on it, and style those polygons dynamically (with up to 5 style rules).
FusionTable containing US counties
Selected counties
Example that displays the counties (using a FusionTablesLayer) on the map
Proof of concept, not sure this will be usable with this many counties.
Probably OK with a small number of counties (your original example)

Show data(numbers) instead of pins on google map

I want to show data (numbers) from database on the map, instead of just pointing the place and clicking on the pin to show data, I want it shown already where the pin is. I use this example to make the google map with pins: http://tips4php.net/2010/10/use-php-mysql-and-google-map-api-v3-for-displaying-data-on-map/
I cannot show images because I'm a new user, so here is an example of what I want to show on map, information about prices instead of usual pins: http://www.norc-imobiliare.ro
You may use the dynamic icons of the Image Charts -API. But this API is deprecated, it may(but must not) stop working in 2015.
The other options:
create an own serverside script that takes the strings(prices) as argument and delivers the desired image based on the input.
create a overlay instead of a marker, it may contain any HTML. e.g. infoBox would be usable.

Fusion Table Layer with polygons AND markers

Using Google Maps API v3
I have a map with the countries coloured using polygons from a Fusion Table Layer. When a polygon is clicked it opens the default Fusion Table info window which has been configured in the web interface.
Some of the countries can't be seen at certain zoom levels so I'd like these countries to have a polygon AND marker, which when clicked open the default Fusion Table info window. I did add a standard map marker but there is no way to open the Fusion Table info window when clicked.
I've read through the docs and looked at the examples but can't see how this is achieved. Is this possible?
Managed to get this working.
I created a second Fusion Table layer and instead of selecting the KML column I selected the Longitude column with a WHERE clause specifying the smaller countries. This renders a layer with markers on the smaller countries which sits on top of the polygon layer.
The only downside is that both the polygon and marker are both clickable which could open duplicate default Fusion Table info windows. Not a major problem though.
You can't access the "default FusionTables infowindow" from an external click event. You can query the FusionTable from your page and display an infowindow containing the same information on a click on a Google Maps API marker (or a sidebar entry).
Example (opening infowindow from sidebar click, not a marker, as you didn't provide an example)

How to extract location information from Google maps mashup?

There is a website that contains different placemarks embedded inside a Google maps mashup on its site. The placemark refers to a location that can be selected on the website.
Essentially every time the location is selected i can see a popup from the placemark showing a few attributes. When i view page source i could not find location information in lat/lon format.
In normal google maps browsing one can right click at a point to get Lat/Lon information but this functionality is disabled within the mashup.
Does anyone have an idea to overcome this limitation ? I have to scrape the name and location information of a few 100 placemarks from the website.

Creating a google map without giving the user a full list of locations

I'm using a Google Map to display a list of addresses across the country.
What troubles me is that anyone clicking "view source" can have the list, including coordinates and name :
placemarker(50.3161,4.93133,'store1', 'address1');
placemarker(48.6599,2.32982,'store2', 'address2');
placemarker(43.4512,5.41388,'store3', 'address3');
placemarker(48.8832,1.46008,'store4', 'address4');
...
Is there a way to display markers on the map while making it harder to extract the full list ?
obfuscate your code:
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3(9.b,4.e,\'c\',\'0\');3(6.a,2.7,\'8\',\'0\');3(d.f,5.k,\'i\',\'0\');3(6.j,1.g,\'h\',\'0\');',21,21,'address4|||placemarker|||48|32982|store2|50|6599|3161|store1|43|93133|4512|46008|store4|store3|8832|41388'.split('|'),0,{}))