I have made a custom made map using Google maps, and have saved multiple places to my map with different colored pins, depending on what each house is available for that day. When I go to print out the map to distribute to people, all of my different types and colors of pins revert to the standard format. They do not do this until I hit print preview. Does anyone know of a way that I can fix this?
Related
First time asking a question so sorry if it's not well worded. I'm trying to display a placemark over every country with a custom icon for each (their flag), using a KML file. If i look at the file using google earth everything works fine but when its loaded on google map it only displays a small number of them (around 20). Does anyone know if there is a limit for custom icons on placemark? https://developers.google.com/kml/documentation/mapsSupport according to this i don't think so but im kinda lost.
All the links to the png imgs works.
I have a dataset with several hundred thousand lat/long points. I would like to render these points on a map for info-graphic purposes (as small dots or something similar).
This is not something that necessarily has to be interactive, or rendered in a browser. It's okay if it's just an image.
I know that attempting this with markers and Google maps would be tough... any other tools out there that would generate this type of map? Preferably free/open source?
Or, do you have a method to make this work with something like Google maps? I don't want to use a marker clusterer... I need to be able to see all of the points.
In short :)
Download and fire-up Quantum GIS
Add some background map (e.g. OSM WMS layer from http://129.206.228.72/cached/osm)
Have your data in a CSV file, in WKT format, and load it on top (using add delimited text layer)
Save as image
You might want to peek what stackexchange.com has on GIS, too.
So this might be a bit tricky to demonstrate, since the problem only appears occasionally and unpredictably--hopefully the problem shows up when you view this question (or, alternatively, has stopped appearing altogether!).
We have a Google Maps implementation on our site that displays paginated search results on a map. The current page's results appear as regular Google Maps markers (with custom icons--these work fine), but the other search results appear as smaller markers in a KML layer. An example:
http://www.redflagdeals.com/in/verdun/map/
The large markers are squarish pin images; the small markers are coloured dots. Blue and purple markers/dots simply refer to different types of content. In the KML file, we've specified two Styles, one for each content type. Other than the Icon reference, which points to the different pin images, the two elements are exactly the same. Here's an example generated KML file for reference:
http://www.redflagdeals.com/in/verdun/map/?do=map_kml&longitude=-73.56895400000002&latitude=45.457064&order=deal_price&dir=asc&category_filter=0&content_filter=0&tag_filter=0&keyword=&page=1&show=deal%20coupon
Most of the time, our map shows the large and small markers perfectly. Occasionally, though, some or all of the small pins show up without the custom icons, instead reverting to the generic blue Google marker image. Today, the custom minipins that show up in blue are broken, while the purple ones are all fine. Other times, both the blue and purple ones are broken.
The problem usually fixes itself, leaving us clueless as to the cause or the solution. The only theory I have is that we use a CDN to host our marker images, and occasionally we push a new version to the CDN while updating all the filenames simultaneously (as we have CDN version numbers in the URLs for our images). Maybe it's possible Google is requesting one or both of the small pin images right when we're pushing a new CDN version, getting a 404, and giving up immediately. But that would mean Google caches the KML images (or lack thereof) for quite a long time. Other than that, I have no ideas.
Is there anything we can do to prevent this problem from cropping up in the future?
see this post (Comment #4 specifically) explains caching of custom markers
http://code.google.com/p/gmaps-api-issues/issues/detail?id=3864
I've just tested this, the result is the following:
I'm sure Google caches both, the KML-file and the marker-images.
(Of course they do, otherwise they must load the files and create new tiles on every single request )
So when you change any marker-image, you must change the URLs of the marker-images inside the KML-file.
You also must change the URL of the KML-file inside your application(otherwise google will not recognize the modified image-URL's)
It's sufficient to append a random parameter to the URLs
I have a number of events in the US. I have addresses for these events, but it varies in accuracy. Some might be the full address, some might be just "Austin, Texas".
I'd like to plot these programatically on a map on a webpage with a marker as they'll change fairly regularly. The marker should be an internal link to the relevant row in the table of events lower down on the page.
The image doesn't need to be updated on the fly, just on the (say fortnightly occasions) when an event is added (e.g. a cached image is cleared and recreated)
Rather than use Google maps, I'd like to plot these on top of an image like this: http://0.tqn.com/d/geography/1/0/9/H/usa3.jpg
How would I go about putting markers on this image that correspond to the (rough) geolocation of these events?
Your best bet might be to use google maps and plot the locations and then just pull an image of the map - that way you can let google do all the work of placing the pins but not have to worry about people zooming, since it is a static image file.
Beyond that, you can type the locations into any mapping service to get a rough idea of the location and then place markers or dots on your map file in the same location. This would allow you to choose whatever image or color you want the icons/markers to be, since you will find and place them yourself.
How i can get kml file from Google Maps that contains route thru several points. Now i use this link http://maps.google.com/maps?f=d&hl=en&saddr=51.591016,-0.107382&daddr=51.359619,-0.147695&ie=UTF8&0&om=0&output=kml It work, but only for two points.
First, you should know that Google Maps and Google earth have different capabilities for displaying kml files. Google Earth has almost no limitations, you can author full mxd's to google earth with legends and everything, google maps, however, does not have nearly the same capability.
In google maps you are restricted to displaying 200 kml points on one page, this is because this application is server based and created using javascript, for performance purposes, you are limited to only 200 kml points per page. You might notice that the rest of your points are on different pages, unfortunatly you cannot view them all at the same time. One thing that you can do, Is serve up a url to your kml file (you can do this easily if you have an ftp account or with google my pages), then just enter the url into the search box, presto! all of your points will show up, only, you will not be able to route directions or edit any attributes, you can merely save to my maps and share the display of the points (again people will not be able to get directions from the points)
Serving up your kml to a url address is good practise, it will save you time, also you can use your own symbology, if you enter the url address in the upload area (as opposed to the search box) you will be able to keep your symbology, edit the attributes and get directions and all of that other fun stuff. You will however have the limitation of only being able to display 200 points per page.
Thus if you need to be able to have the user search for directions from your points, you can only have 200 points at a time :(
enter the url in the search box and all of your points will appear......but no directions..
Hope this helps.
For Reference:
http://econym.org.uk/gmap/kml.htm
http://code.google.com/apis/kml/documentation/kmlelementsinmaps.html