Displaying 20 results from an estimated 300 matches similar to: "How to use getCenter"
2009 Jan 21
7
Panning map to a point vs. setCenter
Several map providers have functions to pan to a location, as opposed
to the direct setCenter call. Panning animates the move from one point
to another. To implement this in mapstraction, I created a panCenter
function.
I don''t know how to go about committing the change to svn, or who
decides whether my naming convention is worthy, but I thought I''d
share the function
2009 May 31
7
[mapstraction commit] r11 - Added functionality to automatically load scripts needed.
Author: robert.moran
Date: Sun May 31 11:13:23 2009
New Revision: 11
Modified:
trunk/source/mxn.core.js
trunk/source/mxn.js
trunk/source/mxn.yahoo.core.js
trunk/tests/index.htm
Log:
Added functionality to automatically load scripts needed.
Allowed mapstraction default constructor to have provider omitted (will use
first loaded provider).
Minor change to yahoo implementation -
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
Author: duvander
Date: Sun May 31 17:34:27 2009
New Revision: 12
Modified:
trunk/source/mxn.cloudmade.core.js
Log:
Implemented most Cloudmade functions. Still requires image, tile and
KML/GeoRSS overlays
Modified: trunk/source/mxn.cloudmade.core.js
==============================================================================
--- trunk/source/mxn.cloudmade.core.js (original)
+++
2010 Aug 30
4
Implementation of openBubble for openlayers
Hello,
I''m back with another problem, the method Marker.openBubble isn''t
implemented yet. I tried to hack a solution but I encountered some problems.
When the popup is created in the toProprietary method from Marker in
mxn.openlayers.core.js, I keep a reference on it with a this.infoPopup =
popup.
Later in the openBubble method, I do :
2007 Jul 25
1
regarding polylines
hi all, i am experimenting with ym4r mapstraction, i am using yahoo api
, when i tried polylines , its not showing up.. the code is
var map;
window.onload = addCodeToFunction(window.onload,function() {
map = new Mapstraction("map_div","yahoo");
map.setCenterAndZoom(new LatLonPoint(37.3853,-122.0172
),12);map.addSmallControls();
map.addMarkerGroup(new
2010 Apr 30
6
addListener
I am trying to use the marker method addlistener(). A simplified version
of what I''m trying to do:
var map;
var marker;
map = new mxn.Mapstraction(''myMap'',''google'');
map.setCenterAndZoom(new mxn.LatLonPoint(45.559242,-122.636467),
15);
marker = new mxn.Marker(new mxn.LatLonPoint(45.559242,
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+
2007 Mar 08
1
map not displayed after Ajax.updater request
In my layout header I inserted the standard helper : GMap.header
I built the map in my controller , I build either a standard table
or a map and display it in the corresponding partial
the map is built without any problem with the icons and markers
( @map is correct...)
@map = GMap.new("map_div")
...
@map.icon_global_init(GIcon.new(:image =>
2009 Nov 19
5
speaking about mxn at #geomob
Fellow mapstractors,
I''m speaking about mapstraction tonight at a London neogeo event - #geomob
http://gmdlondon.ning.com/events/geomob-november
basically I''ll jus be explaining what mxn is, how ift can be used, and a
brief history of the project and trying to encourage more people to
contribute.
My slides are here:
http://www.slideshare.net/lokku/mapstraction-2537688
let me
2009 Oct 22
6
Mapstraction V2 Geocoder?
Hey all,
I''m wondering about your thoughts on upgrading the Geocoder to use
Mapstraction V2. Currently it uses the old syntax (i.e., for
LatLonPoint, etc.):
http://mapstraction.appspot.com/#geocoding
Moving from V1 to V2 is fairly simple changes to the code. However, I
wonder whether we want to update the way the geocoder is structured,
as well? Some options:
1) Roll geocoding
2008 Jun 20
2
map24 help
Hi Mapstraction Experts,
I am trying to do some shortest path routing for a project with
university of utah and uc berkeley.I am trying to use the map24 api using
the mapstraction api but i tried a lot and cant fix this error
"Map24.loadAPI is not a function".Any help on this is greatly
appreciated.This below is the code.(Note:mapstraction works excellent with
google and yahoo)
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
2008 Aug 25
4
ViaMichelin Maps Support
Hi, I''m Adriano from Rome, Italy.
I would like to know if is there in project any support for the ViaMichelin
API''s.
Thank you
Regards
Adriano Massi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20080825/6eb6dfe1/attachment.htm>
2008 May 20
1
AddOverlay for GeoRss Feeds, GeoRSS support
On Mon, May 19, 2008 at 4:36 PM, Pierre Romieux <promieux at gmail.com> wrote:
> Hi,
>
> Sorry for this email, but I need your help. I''m testing Mapstraction and I
> have problems with GeoRss. I''m not able to link the GeoRss markers.
> I have copied the sample with full code but nothing. The markers layer are
> not added to my page. All js are ok.
2012 Mar 30
1
Popups not appearing for leaflet using mxn 2.0.18
Good day,
I''m trying out the new Leaflet provider using the 2.0.18 release.
Unfortunately, I haven''t been able to get a marker bubble (popup) to
appear after clicking on the marker. I think my use of Mapstraction is
correct as I see a popup appear for the googlev3, ovi, and openlayers
providers when I switch with no other changes to my code.
Is there a step I''m
2007 Jan 18
1
Clusterer generating javascript syntax error
Hi all,
I''m using Ym4r with the Clusterer. The GMaps code in my controller
looks something like this:
# geo is an array of lon/lat points
session[:gmap] = GMap.new(''map_div'')
session[:gmap].control_init(:large_map => true,:map_type => true)
session[:gmap].center_zoom_init([38.134557,-95.537109],4)
markers = Array.new
2009 Jan 19
2
Can I use my own map
Hy guys, I was reading some information about your great service and I
wanted to know one thing.
It''s not clear if using mapstraction is possible to use my own maps (I
create my own tiles I would like to visualize) or if just a service that
wraps existing services. I f I can use my own maps, I wanted to know if you
can give me a link or something that can be useful to get started with it!
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
2010 May 21
7
Provider API versioning
Hi folks,
Wondering whether I can get a quick show of hands from those of you who use
OpenLayers. The latest version of the API has some refinements for adding
the OSM layers which it would be good to take advantage of. If anyone who
uses OpenLayers is planning to upgrade from Mapstraction v1 to v2 would it
be acceptable to have to upgrade OpenLayers too? That''s assuming you
2009 Jan 08
20
Mapstraction V2 Architecture Demo
Hi all,
I''ve been fiddling with some mapstraction architecture ideas and before I
lose my mind (caller, calleee, apply, arguments, pop!), I wanted to share my
progress.
Please see here for details:
http://www.thegecko.org/mapstractionv2/
I''m by no means a javascript guru, so I would appreciate any feedback you
may have :)
Kind regards,
Rob
-------------- next part