[Google Maps API v3] Re: How do create drop shadow for custom map marker icon?

2010-12-14 Thread CroNiX
There is a shadow property for markers. http://code.google.com/apis/maps/documentation/javascript/reference.html#MarkerOptions On Dec 14, 10:31 am, mp- wrote: > I'm using the new functionality of Animation (bouncing) found in > Google Maps JavaScript API v3. > > http://code.google.com/apis/maps/d

[Google Maps API v3] Re: How to make right menu(of maps.google.com) using google maps api v3?

2010-12-14 Thread CroNiX
Except in Firefox they disable the option to allow javascript to create a contextmenu...by default...making contextmenus just about useless. So any user using FF won't see your menu unless they manually go and allow that in the settings. Options -> Content -> Allow Javascript (Advanced) -> Allow S

[Google Maps API v3] Re: Style InfoWindow with Jquery UI

2010-12-09 Thread CroNiX
I'll tell you what I do. I don't use the info window. I use a projection map to get the pixel coordinates of the marker where I want the "info window" to show up and use my own markup, using jquery to then hide/show/position it. You have much more control anyway. Like I don't like the map to scro

[Google Maps API v3] Re: Using KML link from fusion table as source for markers, keeping custom icons.

2010-12-08 Thread CroNiX
> You can use any of the 200 markers shown > here:http://www.google.com/fusiontables/DataSource?snapid=99003 Interesting, there's a swastika icon on the left of that page, and its called "temple_jp"? On Dec 7, 11:20 pm, Nick Doiron wrote: > Google's answer on marker types > (http://www.google.c

[Google Maps API v3] Re: Triggering Marker to open InfoWindow

2010-12-07 Thread CroNiX
google.maps.event.addListener(markerObject, 'click', function(e){ alert('clicked'); }); or, to trigger an event that has a listener already attached from like jQuery, $('#some-link').click(function(e){ e.preventDefault(); google.maps.event.trigger(markerObject, 'click'); }); Check out t

[Google Maps API v3] Re: Custom Icons with different default icon

2010-12-07 Thread CroNiX
Do you have some sort of test condition to determine when to use which icon? var customIcon = (some test if DUI) ? 'arrestlist/markers/dui.png' : 'arrestlist/markers/bluesq3.png'; var marker = new google.maps.Marker({ map: map, position: point, icon: customIcon

[Google Maps API v3] Re: TOU question regarding branding

2010-12-06 Thread CroNiX
difference between the 2). On Dec 6, 6:27 pm, "geocode...@gmail.com" wrote: > On Dec 6, 6:20 pm, CroNiX wrote: > > > I understand and agree with the necessity for not removing the google > > branding from a map. > > > I am wondering if there is any sort of ex

[Google Maps API v3] TOU question regarding branding

2010-12-06 Thread CroNiX
I understand and agree with the necessity for not removing the google branding from a map. I am wondering if there is any sort of exception for creating an "overview" map, like google uses on the main map page (maps.google.com), since they are of the exact same map? Leave the main map alone with

[Google Maps API v3] Re: I'm looking for just a map of my city...

2010-12-06 Thread CroNiX
Start googling for shape files for your city. You can convert them to a polygon. I would start with your government. In the US, we can get most of this data from the USGS for our country, or others that make use of it. On Dec 6, 5:45 pm, freak wrote: > i would prefer the exact shape of my city

[Google Maps API v3] Re: Scaling markers with zoom

2010-11-26 Thread CroNiX
Another option might be to have different sized icons, and at different zoom levels you can loop through your markers and change the icon to a smaller/larger one. On Nov 25, 12:23 am, dbrb2 wrote: > I will look into the markerManager - cheers > > Wrt size, I was trying to find a medium between to

[Google Maps API v3] Re: Scaling markers with zoom

2010-11-24 Thread CroNiX
Do your markers need to be that big? You might also look into the MarkerClusterer. It won't scale your icons, but it will "group" icons that are touching until zoomed in far enough that they don't touch then they show up normally. On Nov 24, 5:13 pm, dbrb2 wrote: > From what I have read both he

[Google Maps API v3] Re: Centering map on each markers, one after the other

2010-11-24 Thread CroNiX
Not sure if it would work, but you could try a panTo(marker) and maybe listen for the dragend event (this is the part Im not sure about because I don't know if this fires on a panTo event because the "user" isn't dragging the map) to fire off your next marker creation/panTo and so on. On Nov 24, 1

[Google Maps API v3] Re: MarkerManager will not load

2010-11-23 Thread CroNiX
Never used markerManager, but I see you create 2 markers but are only adding the 2nd marker to the manager mgr.addMarker(marker2,0,17); try adding the first one you created too. On Nov 23, 4:33 pm, ozgalosch wrote: > The correct file. > >  index.html > 1KViewDownload -- You received this messa

[Google Maps API v3] Re: How can i periodically load the XML file into the map page

2010-11-23 Thread CroNiX
Sounds like a job for ajax. On Nov 22, 11:45 pm, Chathura Gunasekara wrote: > My xml file updates with the changes to the data base how can I update > the map when the xml changes. I am following the > articleshttp://code.google.com/apis/maps/articles/phpsqlajax_v3.html > can any one please help

[Google Maps API v3] Re: KML doesn't display

2010-11-23 Thread CroNiX
Durrr you're right. I got used to this xml parser plugin and it didn't trigger for some reason and I only saw the raw points with no xml markup. I apologize. On Nov 22, 2:09 pm, "geocode...@gmail.com" wrote: > On Nov 22, 11:32 am, CroNiX wrote: > > > This

[Google Maps API v3] Re: KML doesn't display

2010-11-22 Thread CroNiX
This: http://www.koolbusiness.com/kml is not a kml file. On Nov 22, 10:41 am, Niklasro wrote: > Hello > My KML markers don't display. Could you help troubleshooting where the > failure is? The address to the map ishttp://www.koolbusiness.com > Thanks in advance > Niklas R -- You received this m

[Google Maps API v3] Re: Google Maps API 3 overlay, need to get the projection

2010-11-21 Thread CroNiX
}, tileSize: new google.maps.Size(256, 256), isPng: true }); into your initialize function. I think I was right initially. You are using overlay.getProjection() here, but you don't initialize it as an google.maps.OverlayView() object until your initialize() function, which

[Google Maps API v3] Re: Google Maps API 3 overlay, need to get the projection

2010-11-21 Thread CroNiX
scratch that. I hate reading code in these forums. On Nov 21, 1:38 pm, CroNiX wrote: > Try changing your overlay declaration from > var overlay; > to > var overlay = new google.maps.OverlayView(); > overlay.setMap(map); > overlay.draw = function () { >

[Google Maps API v3] Re: Google Maps API 3 overlay, need to get the projection

2010-11-21 Thread CroNiX
Try changing your overlay declaration from var overlay; to var overlay = new google.maps.OverlayView(); overlay.setMap(map); overlay.draw = function () { if (!this.ready) { this.ready = true; google.maps.event.trigger(this, 'ready'); } }; On Nov 21, 7:27 am, so0ly wrote: >

[Google Maps API v3] Re: How to modify lat/lng just slightly

2010-11-20 Thread CroNiX
Instead of a marker for each, why not put the people at the same location in the same infowindow? One location, one infoWindow (containing multiple entries for people). On Nov 19, 3:58 pm, Jeremy Blaney wrote: > Hi all, > > On my website I have a map that pinpoints each user's approximate > loca

[Google Maps API v3] Re: Get size of icon

2010-11-20 Thread CroNiX
, that is interesting indeed. However, that would mean that I'd need > an event fired for every marker. But maybe there's another way of > getting to that object/information... It's weird that they (obviously) > have the information but don't expose it... Thanks!

[Google Maps API v3] Re: a bit of marker guidance please

2010-11-19 Thread CroNiX
Check out the MarkerClusterer http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries On Nov 19, 2:52 pm, Morgana wrote: > Hi folks, > > I'm new to JS and to Google maps, so go easy on me! (although not new > to coding) > > I'm rapidly get my head around it, but one thing that I c

[Google Maps API v3] Re: Get size of icon

2010-11-19 Thread CroNiX
er, 'click', function() { var pb = this.pixelBounds; var iconX = Math.abs(pb.l) + Math.abs(pb.q); var iconY = Math.abs(pb.n) + Math.abs(pb.o); alert('Width: ' + iconX + ', Height: ' + iconY); }); On Nov 19, 2:18 pm, CroNiX wrote: > Is it the pix

[Google Maps API v3] Re: Get size of icon

2010-11-19 Thread CroNiX
Is it the pixel coordinates you are after for the anchor location? This might help. var containerHelper = null;//set in global space //call this somewhere in your map init function to create an overlay that you can use to translate the coordinates function init_helper_container(){ contain

[Google Maps API v3] Re: dragging marker with set up boundary

2010-11-19 Thread CroNiX
I assume you have a bounds object that you are checking against? Maybe try adding the new point to it. boundsObject.extend(newPoint) so this new point will be within the bounds. Hard to say with no code to look at. On Nov 19, 5:03 am, Chris wrote: > I've got a map set up with a boundary around m

[Google Maps API v3] Re: V3 multiple KML layer issues

2010-11-18 Thread CroNiX
I get the same in FF. I get the airport icon but no poly's, click refresh and it works. Its possible the kml isn't finished retrieving the first time and the 2nd time its cached so it loads right up. Maybe put a delay to help ensure its loaded? Just a side note: I'd use a different color in your

[Google Maps API v3] Re: Internet Explorer doesn't download "http://maps.google.com/maps/api/js?sensor=false"

2010-11-18 Thread CroNiX
Is this every version of IE for windows/mac out there or is there a specific platform and version you are using that isn't working? On Nov 18, 7:22 am, Sebastián Caggiano wrote: > Hi, I'm having trouble with internet explorer since when I execute the > page (asp.net development service hosted) it

[Google Maps API v3] Re: Multiple Markers pulled from DB, open specified infoWindow

2010-11-18 Thread CroNiX
Its scary when you pull up a map example and its blocks from where you live :) Theres a few ways to do this. If you are only wanting to open the first one, try something like this. Add a 3rd parameter to your createMarker function to indicate whether to open this marker. Then in your app, set t

[Google Maps API v3] Re: google.maps.event.trigger and MarkerClusterer

2010-11-17 Thread CroNiX
most likely it is an issue of scope due to where you are initially declaring var markerCluster = new MarkerClusterer(map,allMarkers, {gridSize: 5, zoomOnClick: false}); It needs to be global. try doing: var markerCluster = null; at the very TOP of your code before you do anything else. Most like

[Google Maps API v3] Re: how to make html link when clicked, would open area of the map coordinates

2010-11-16 Thread CroNiX
Did you try setting up a proper event handler in the head of your document then instead of using [frowned upon] inline code? google.maps.event.addListener(document.getElementById('your_anchor_id'), 'click', function() { map.setCenter(new google.maps.LatLng(37.020098,-92.373047)); map.setZ

[Google Maps API v3] Re: how to make html link when clicked, would open area of the map coordinates

2010-11-16 Thread CroNiX
probably just: map.setCenter(new google.maps.LatLng(37.020098,-92.373047)); On Nov 16, 9:22 am, Yellow Lemon wrote: > Sorry that the text was translated by an interpreter > > Tell me please how to make html link when clicked, would open area of > the map coordinates. > > For example, in version 2

[Google Maps API v3] Detecting if polygon is in current bounds

2010-11-15 Thread CroNiX
Is there a more efficient way to detect if any part of a polygon is in the current map bounds than to cycle through the polygons' points and manually test each point or is there a better way? I did not see a native way to test a polygon like you can with a point using contains(). The docs say con

[Google Maps API v3] Re: Zoom in at point

2010-11-11 Thread CroNiX
http://code.google.com/apis/maps/documentation/javascript/reference.html#Map map.setCenter(latlng:LatLng); map.setZoom(zoom:number); or use map.panTo(latLng:LatLng); to animate the moving of the map to that point. On Nov 11, 2:46 pm, Pil wrote: > Is it possible to zoom in at a given point? > > L

[Google Maps API v3] Maps "public" usage question regarding a private backend

2010-11-11 Thread CroNiX
I understand that the maps must be publicly accessible. For the most part there is no problem with that, but how do you handle a backend (private) that uses the maps in order to be able to input data so that it can be seen by the public? For instance, a map of a state in the backend that allows t

[Google Maps API v3] Re: Default infowindow

2010-11-09 Thread CroNiX
Check out the v3 Demo Gallery: http://code.google.com/apis/maps/documentation/javascript/demogallery.html Specifically: http://gmaps-samples-v3.googlecode.com/svn/trunk/single-infowindow/single-infowindow.html On Nov 9, 12:20 am, nathanblogs wrote: > Hi, > > I am trying to add the default infow

[Google Maps API v3] Re: First Post - City Government Issues

2010-11-08 Thread CroNiX
I haven't tried this, but I bookmarked this page as I thought it might come in handy some day... http://efreedom.com/Question/1-3818016/Google-Maps-V3-Limit-Viewable-Area-Zoom-Level On Nov 5, 5:30 am, randomblink wrote: > Question for the group... > I work for City Government, as the Addressing

[Google Maps API v3] Re: Find boundary of collection of points

2010-10-30 Thread CroNiX
Thank you a million. I knew it was the terminology I was using while trying to search. On Oct 30, 2:26 am, Rossko wrote: > Magic wordhttp://en.wikipedia.org/wiki/Convex_hull > > Search for algorithms -- You received this message because you are subscribed to the Google Groups "Google Maps Jav

[Google Maps API v3] Find boundary of collection of points

2010-10-30 Thread CroNiX
If you have a set of gps coordinates, how do you find only the ones that make up the outer boundary? I have a lot of datasets that make up regions for a company, but there aren't any boundaries...just all of the individual points that make up the solid region. I want to figure out the outer bound