Displaying 20 results from an estimated 700 matches similar to: "removeEventListener and polylines"
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
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)
+++
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
2007 Jul 13
0
layers of polylines, events building up on map
Hi all,
Here''s my situation:
I have a little route creation app that lets a user create a route.
I''m using the mapstraction version of ym4r...
here is the workflow:
first page has a map displaying the start point of existing routes.
if they click "new route:
creates a route_object
clears all polylines in case there are any
clears all the markers and adds an onclick
2010 May 27
0
googlev3 addPolyline and core swapping
i''ve added the right code for addPolyline in googlev3 js
and changed a bit the swap function to insert markers and polyline and
change maptype too
sorry but i''ve put all the code on git cause i don''t know how to access svn
as committer for the moment
so please refer to git to get all the changes you could find usefull
@all: do you know if there''s a way to get
2009 May 15
1
[PATCH server] First round of (largely) cosmetic changes to flexchart.
Missing are capitalization/formatting of data type & function labels,
as well as addressing the unit labels for the y-axis.
---
src/flexchart/flexchart.mxml | 4 +
src/flexchart/org/ovirt/Constants.as | 17 +++
src/flexchart/org/ovirt/charts/BarChart.as | 155 ++++++++++++++++--------
src/flexchart/org/ovirt/charts/HostChart.as | 42 ++++++-
2009 Feb 02
0
Polyline toMicrosoft() change
Hi guys at mapstraction,
I made a change in the Polyline.toMicrosoft() function, in order to have
all the power that a VEShape has, for instance fill color. Below is the new
code, if you want to use it, change it, or whatever.
Cheers,
Beta
/**
* toMicrosoft returns a Microsoft polyline
* @returns a VEShape
*/
Polyline.prototype.toMicrosoft = function() {
var mpolyline;
var mpoints
2009 Mar 04
5
Detect polyline relationship to map bounds?
I''m working on a mapstraction implementation modeled after the radius
search feature. (http://mapstraction.com/demo-radius.php)
I''d like to recognize when the user extends the radius beyond the
visible edges of the map and adjust the zoom level. I''m not seeing
how to test this when redrawing the circle. I thought maybe I wanted
to use polylineCenterAndZoom()
2008 May 03
1
[Bug 15814] New: unable to view new york times feature
http://bugs.freedesktop.org/show_bug.cgi?id=15814
Summary: unable to view new york times feature
Product: swfdec
Version: git
Platform: Other
URL: http://www.nytimes.com/slideshow/2007/08/31/realestate/2
0070902_SKETCH_FEATURE.html
OS/Version: All
Status: NEW
Severity: normal
2009 Sep 14
1
Event listeners
Hello
I am new to Mapstraction so bear with me. I am trying to use Mapstraction V2, I need to call particular function when the map has loaded. I have tried
this.map.addEventListener(''load'', this.onMapReady, this)
unfortunately this does not seem to do the trick.
How would one go about achieving this, is there a place where i can access V2 examples? The sandbox only seems to
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,
2008 Jun 03
3
OpenSpace support for mapstraction
Attached is patch to provide support for OpenSpace in mapstraction. A demo
can be seen at http://yvonnesplants.co.uk/openspace_demo.html.
Note that OpenSpace 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
2009 Apr 12
0
Adding an eventhandler for click, but still be able to zoom in with doubleclick
Hello all,
I am using Mapstraction in Zoph (http://www.zoph.org), and although it
works very well (thanks to all for their efforts!), I am running into
one little problem:
On one page, I am allowing a user to add / edit a marker on a page, by
clicking on the map. I do this by adding an eventhandler:
mapstraction.addEventListener(''click'', clickmap);
However, this causes
2023 Mar 26
0
Inconsistency in grid::grid.polyline
Hi
The general "evolution" of grid.*() functions (that I have written) have
tended towards the grid.polyline() style ...
grid.*(...) {
grid.draw(*Grob(...))
}
With my thinking at least heading towards: if you are calling grid.*(),
then you want to actually draw something; if you want to just create a
description of something to draw, then you want to call *Grob().
In other
2018 Jan 30
0
Calculating angle of a polyline
I like to use complex numbers for 2-dimensional geometry. E.g.,
> polyAngles2
function (xV, yV)
{
stopifnot((length(xV) == length(yV)) && (length(xV) >= 3))
z <- complex(re = xV, im = yV)
c(NA, diff(Arg(diff(z))), NA) # radians, positive is counter-clockwise
}
> x <- c(0:3)
> y <- c(0,0,1,1)
> polyAngles2(x,y) / pi * 180
[1] NA 45 -45 NA
Bill
2018 Jan 30
2
Calculating angle of a polyline
Assuming your polyline is defined by two vectors, one for the x
coordinates, one for the y coordinates, you can try the following
library(NISTunits)
polyangles <- function(xV,yV) {
stopifnot( (length(xV)==length(yV)) && (length(xV) >= 3))
v <- function(i) { c( xV[i]-xV[i-1], yV[i]-yV[i-1])}
vlen <- function(v) { sqrt(sum(v*v)) }
lV <- rep(NA_real_,length(xV))
for
2018 Jan 30
0
Calculating angle of a polyline
A polyline by definition has many angles, so your question is ill-formed. And this is a question about math, not R, so is off topic here. I suggest reading Wikipedia.
--
Sent from my phone. Please excuse my brevity.
On January 29, 2018 11:10:02 PM PST, javad bayat <j.bayat194 at gmail.com> wrote:
>Dear R users
>I am trying to find a formula to calculate the angle of a polyline. Is
2005 Sep 06
0
Revised shapefiles package
Now available on CRAN is a revised version of the shapefiles package for
reading and writing shapefiles in R. New additions, courtesy of others,
include the ability to convert a simple R data frame of points,
polylines or polygons to a shp format list, which can then be written
out to a shapefile with write.shp. There is also a function to convert
the read.shp shp format list to a simple data
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 -
2017 Oct 31
0
Wine release 2.20
The Wine development release 2.20 is now available.
What's new in this release (see below for details):
- Improved event support in MSHTML.
- Preloader support on ARM64.
- Interpolation modes in Direct3D.
- Improved metafile support in GdiPlus.
- Initial version of Kerberos5 Authentication Package.
- OLE clipboard cache improvements.
- Various bug fixes.
The source is available