Displaying 7 results from an estimated 7 matches for "iconanchor".
2009 Nov 06
0
r54 committed - ...
...ore.js Fri Oct 9 07:48:43 2009
+++ /trunk/source/mxn.googlev3.core.js Fri Nov 6 07:21:27 2009
@@ -299,10 +299,41 @@
toProprietary: function() {
var options = {};
+
+ // do we have an Anchor?
+ var ax = 0; // anchor x
+ var ay = 0; // anchor y
+
+ if (this.iconAnchor) {
+ ax = this.iconAnchor[0];
+ ay = this.iconAnchor[1];
+ }
+ var gAnchorPoint = new google.maps.Point(ax,ay);
+
if (this.iconUrl) {
- options.icon = new google.maps.MarkerImage(this.iconUrl);
- if (typeof(this.iconS...
2007 Mar 09
0
(no subject)
...line 67)
[Break on this error] map.addOverlay(new GMarker(new GLatLng
(47.7377071331,-2.9257965088),{title : "aa...
here is the generated script...
<script type="text/javascript">
var icon_contact = addOptionsToIcon(new GIcon(),{image : "/images/
gm_contact.png",iconAnchor : new GPoint(10,34),shadow : "/images/
gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize : new
GSize(37,34),iconSize : new GSize(20,34)});
var icon_reference = addOptionsToIcon(new GIcon(),{image : "/images/
gm_reference.png",iconAnchor : new GPoint(10,34),shadow...
2007 Mar 09
0
Clusterer
...center_zoom_init([@user.user_lat, @user.user_lng],zl)
@map.overlay_init(@marker_myself)
here is the generated script (with the line numbers)
<script type="text/javascript">
161 var icon_contact = addOptionsToIcon(new GIcon(),{image : "/images/
gm_contact.png",iconAnchor : new GPoint(10,34),shadow : "/images/
gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize : new
GSize(37,34),iconSize : new GSize(20,34)});
162 var icon_reference = addOptionsToIcon(new GIcon(),{image : "/
images/gm_reference.png",iconAnchor : new GPoint(10,34),sha...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...var pt = this.location.toProprietary(this.api);
+ var options = {};
+
+ if (this.iconUrl) {
+ var cicon = new CM.Icon();
+ cicon.image = this.iconUrl;
+ if (this.iconSize) {
+ cicon.iconSize = new CM.Size(this.iconSize[0], this.iconSize[1]);
+ if (this.iconAnchor) {
+ cicon.iconAnchor = new CM.Point(this.iconAnchor[0],
this.iconAnchor[1]);
+ }
+ }
+ if (this.iconShadowUrl) {
+ cicon.shadow = this.iconShadowUrl;
+ if (this.iconShadowSize) {
+ cicon.shadowSize = new CM.Size(this.iconShadowSize[0],
th...
2007 Oct 16
3
can''t define custom GIcon
...e GMarker constructor,
everything works properly. When I do, the map loads, but the marker isn''t
displayed, and none of the map controls appear either. The error I am
getting in Firebug is:
b has no properties.
The error occurs on this line:
z.prototype.rb=function(){var a=this,b=a.ta.iconAnchor,c=a.Zc=a.c.h(a.F),d=
a.Th=new n(c.x-b.x,c.y-b.y-a.Z),e=new n(d.x+a.Z/2,d.y+a.Z/2
);return{divPixel:c,position:d,shadowPosition:e}};
which is line 805 in main.js.
Has anybody else experienced this problem, or see what I am doing wrong?
Any help would be appreciated.
Thanks,
Simon
--------------...
2006 Jan 07
4
GIS Image coordinates / markers?
Hey everyone,
Is there Rails support for something like Google Maps, but using my
own images/maps?
Basically, I''d like to have my own maps/images, be able to drop
markers on them, center on certain attributes etc.
- Nic
2007 Mar 08
1
map not displayed after Ajax.updater request
...le="border:solid 2px grey; margin:1em auto;
width:340px; height:340px;text-align;">
<script type="text/javascript">
var icon_contact = addOptionsToIcon(new GIcon(),{iconSize : new GSize
(20,34),shadowSize : new GSize(37
,34),image : "/images/gm_contact.png",iconAnchor : new GPoint
(10,34),shadow : "/images/gm_shadow.png"
,infoWindowAnchor : new GPoint(9,2)});
..........
var map;
window.onload = addCodeToFunction(window.onload,function() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_div"));
map.setCenter(new GLa...