Displaying 11 results from an estimated 11 matches for "addoverlay".
2009 Dec 13
0
r65 committed - Use the GeoCommons addOverlay method
Revision: 65
Author: ajturner
Date: Sun Dec 13 11:10:04 2009
Log: Use the GeoCommons addOverlay method
http://code.google.com/p/mapstraction/source/detail?r=65
Modified:
/trunk/source/mxn.geocommons.core.js
/trunk/tests/index.htm
=======================================
--- /trunk/source/mxn.geocommons.core.js Sun Dec 13 11:10:00 2009
+++ /trunk/source/mxn.geocommons.core.js Sun Dec 13 1...
2008 May 20
1
AddOverlay for GeoRss Feeds, GeoRSS support
...nt = new LatLonPoint(37.4041960114344,-122.008194923401);
> // display the map centered on a latitude and longitude (Google zoom
> levels)
> mapstraction.setCenterAndZoom(myPoint, 3);
> mapstraction.addControls({zoom: ''large''});
>
> mapstraction.addOverlay("http://api.flickr.com/services/feeds/groups_pool.gne?id=322338 at N20&format=rss_200&georss=1");
> </script>
>
>
> Regards
>
>
>
>
>
--
Andrew Turner
mobile: 248.982.3609
andrew at mapufacture.com 42.2774N x 83.7611W
http://highearthorbit....
2009 Apr 09
1
Problem including panoramino with google
Hi,
i cannot make panoramino work with my google map...
I tried
mapstraction.addOverlay(new GLayer("com.panoramio.all"));
and this
mapstraction.addOverlay("com.panoramio.all");
But all i can have is a 400 error response.
I also need wikipedia data, but i get the same error code.
Can someone help me ?
--
Pascal
2008 Jan 03
3
GeoRSS support and Openstreetmap
Hi,
is geoRSS overlay supported with openstreetmap ?
I can''t get it to work.
Google maps georss
http://blogs.intermedia.uib.no/motel/experiments/bergenGeoRSS.html
Openstreetmap georss
http://blogs.intermedia.uib.no/motel/experiments/bergenOSMGeoRSS.html
As you can see, nothing shows in the openstreetmap example.
Regards
--
Rune Baggetun
2007 Mar 08
1
map not displayed after Ajax.updater request
...map = new GMap2(document.getElementById("map_div"));
map.setCenter(new GLatLng(47.7500161647,-2.916641656),
8);GEvent.addListener(map,"click",function processMoveEndEvent
() { var centerPoint = map.getCenter(); if (map.getZoom() <= 18)
{ processNewMapMovement()} });
map.addOverlay(contact);
map.addOverlay(reference);map.addControl(new GSmallMapControl());
}
});
</script>
but that''s all.... no map displayed ... why any clue ?
I already used it in other parts of my app without any problem, but
never from an Ajax request... is it the key point ?
thanks fo...
2007 Mar 09
0
(no subject)
I am trying to use the clusterer as stated in the README ( plugin is
running well ...)
and I got an error when displaying the map...
addDescriptionToMarker is not defined
(no name)()22 (line 169)
(no name)()ym4r-gm.js (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 : "...
2008 Jun 03
3
OpenSpace support for mapstraction
...pace seems sometimes to have a problem with links clicked
from email. If you get an error ''HTTP referrer not valid'' then open a new
browser window and paste in the link and it should be ok.
The following features are not supported:
declutterMarkers()
showRoute()
addImageOverlay()
addOverlay()
addTileLayer()
toggleTileLayer()
Polyline.show() and hide()
Marker.setInfoDiv(), setDraggable(), setHoverIcon(), setShadowIcon(),
openBubble()
Map type control (if requested in addControls() this provides ability to
switch on/off layers and markers)
setMapType() and getMapType()
Everything else...
2007 Jan 18
1
Clusterer generating javascript syntax error
...raries,
including clusterer and mapstraction, and then displaying the map with
something like:
<%= session[:gmap].div(:width => 600, :height => 400) %>
However, I get this Javascript error when I view my page:
illegal character
30map.setCenter(new
GLatLng(38.134557,-95.537109),4);map.addOverlay(#<Ym4r::MapstractionPlugin::Clusterer:0x9b3d608>);map.addControl(new
GLargeMapControl());
It seems pretty obvious that a Ruby object reference is somehow
getting inserted into the generated Javascript. Removing the clusterer
lines from my controller solves the problem. Any idea what''...
2007 Mar 09
0
Clusterer
...(document.getElementById("map_div"));
167 map.setCenter(new GLatLng(47.7377071331,-2.9257965088),10);
168 map.setCenter(new GLatLng(47.7377071331,-2.9257965088),
10);GEvent.addListener(map,"click",function processMoveEndEvent()
{ var centerPoint = map.getCenter(); });
169 map.addOverlay(new Clusterer([addDescriptionToMarker
(addInfoWindowTabsToMarker(new GMarker(new GLatLng
(47.6666508055,-2.9833339433),{title : "aad725",icon : icon_contact}),
[new GInfoWindowTab("Membre","pas de nom<br />aad725<br />Membre
depuis : Ven, 03 Mar 2007 16:07:...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...}
},
setCenterAndZoom: function(point, zoom) {
@@ -61,22 +85,17 @@
addMarker: function(marker, old) {
var map = this.maps[this.api];
var pin = marker.toProprietary(this.api);
-
- // TODO: Add provider code
-
+ map.addOverlay(pin);
return pin;
},
removeMarker: function(marker) {
var map = this.maps[this.api];
-
- // TODO: Add provider code
+ map.removeOverlay(marker.proprietary_marker);
},
removeAllMarkers: function() {
- var...
2007 Oct 16
3
can''t define custom GIcon
Hi,
I am having trouble getting custom GIcons to display. Here is the code in
my controller:
@map = GMap.new("map_div")
@map.control_init(:large_map => true,:map_type => true)
@map.icon_global_init(GIcon.new(:image => "images/APBox-20.png
"),"ap_none")
infoString = "Friendly Name: "+result.friendly_name+