All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gwtopenmaps.openlayers.client.MarkerImpl Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package org.gwtopenmaps.openlayers.client;

import org.gwtopenmaps.openlayers.client.util.JSObject;


/**
 * 
 * @author Erdem Gunay
 * @author Michel Vitor - Intec
 */
class MarkerImpl {

	
	public static native JSObject create(JSObject lonlat)/*-{
		return new $wnd.OpenLayers.Marker(lonlat);
	}-*/;
	public static native void setIcon(JSObject self,JSObject icon)/*-{
	     self.icon = icon;
	     self.events= new $wnd.OpenLayers.Events(self,self.icon.imageDiv,null);     
    }-*/;
	public static native void setLonLat(JSObject self,JSObject lonlat)/*-{
        self.lonlat = lonlat;
    }-*/;
	public static native JSObject create(JSObject lonlat, JSObject icon)/*-{
		return new $wnd.OpenLayers.Marker(lonlat, icon);
	}-*/;

	public static native JSObject getLonLat(JSObject self)/*-{
		return self.lonlat;
	}-*/;
	public static native void setImageUrl(JSObject self, String imageUrl)/*-{
          self.icon.url = imageUrl;
    }-*/;
	public static native JSObject getIcon(JSObject self)/*-{
		return self.icon;
	}-*/;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy